mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.developing rainbow
git-svn-id: svn://ultimatepp.org/upp/trunk@3671 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
041fd94dbd
commit
a290659bf2
5 changed files with 34 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
NAMESPACE_UPP
|
||||
|
||||
#define LLOG(x) // LOG(x)
|
||||
#define LLOG(x) DLOG(x)
|
||||
|
||||
Rect TopWindow::windowFrameMargin;
|
||||
|
||||
|
|
@ -426,6 +426,31 @@ TopWindow& TopWindow::Urgent(bool b)
|
|||
return *this;
|
||||
}
|
||||
|
||||
void TopWindow::ShutdownWindow()
|
||||
{
|
||||
}
|
||||
|
||||
void TopWindow::ShutdownWindows()
|
||||
{
|
||||
bool again = true;
|
||||
while(again) {
|
||||
Vector<Ctrl *> tc = GetTopCtrls();
|
||||
again = false;
|
||||
for(int i = 0; i < tc.GetCount(); i++) {
|
||||
Ptr<TopWindow> w = dynamic_cast<TopWindow *>(tc[i]);
|
||||
if(w && w->IsOpen() && w->IsEnabled()) {
|
||||
again = true;
|
||||
w->SetForeground();
|
||||
w->ShutdownWindow();
|
||||
if(w && w->IsOpen())
|
||||
w->WhenClose();
|
||||
if(!w || !w->IsOpen())
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct DialogBackground : public Display {
|
||||
void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue