mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
FileManager: Add ability to create new directories.
This commit is contained in:
parent
1030e6b848
commit
be4533717a
7 changed files with 32 additions and 8 deletions
|
@ -25,14 +25,15 @@ int GDialog::exec()
|
|||
show();
|
||||
auto result = m_event_loop->exec();
|
||||
m_event_loop = nullptr;
|
||||
dbgprintf("event loop returned with result %d\n", result);
|
||||
dbgprintf("%s: event loop returned with result %d\n", class_name(), result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void GDialog::done(int result)
|
||||
{
|
||||
ASSERT(m_event_loop);
|
||||
if (!m_event_loop)
|
||||
return;
|
||||
m_result = result;
|
||||
dbgprintf("quit event loop with result %d\n", result);
|
||||
dbgprintf("%s: quit event loop with result %d\n", class_name(), result);
|
||||
m_event_loop->quit(result);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ void GMessageBox::build()
|
|||
button->set_preferred_size({ 100, 16 });
|
||||
button->set_caption("OK");
|
||||
button->on_click = [this] (auto&) {
|
||||
dbgprintf("OK button clicked\n");
|
||||
dbgprintf("GMessageBox: OK button clicked\n");
|
||||
done(0);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -80,8 +80,9 @@ public:
|
|||
Size base_size() const { return m_base_size; }
|
||||
void set_base_size(const Size& size) { m_base_size = size; }
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "GWindow"; }
|
||||
|
||||
private:
|
||||
virtual bool is_window() const override final { return true; }
|
||||
|
||||
Retained<GraphicsBitmap> create_backing_bitmap(const Size&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue