diff options
author | Dylam De La Torre <DyXel04@gmail.com> | 2021-11-23 05:21:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 04:21:56 +0000 |
commit | a51a54bc5979a2491f152abc47ad54e6b63f27c8 (patch) | |
tree | ce67092b2f6df366033a65a6111e4650866766b2 /dialogs/confirm.cpp | |
parent | d88079000a79e6bcbe51c5a2868d57b303b5fcb6 (diff) | |
download | abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.tar.gz abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.zip |
Restructure source and resource files (#46)
importantly, res is now res/res and css is now res/css
Diffstat (limited to 'dialogs/confirm.cpp')
-rw-r--r-- | dialogs/confirm.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/dialogs/confirm.cpp b/dialogs/confirm.cpp deleted file mode 100644 index 39d8971..0000000 --- a/dialogs/confirm.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "confirm.hpp" - -ConfirmDialog::ConfirmDialog(Gtk::Window &parent) - : Gtk::Dialog("Confirm", parent, true) - , m_layout(Gtk::ORIENTATION_VERTICAL) - , m_ok("OK") - , m_cancel("Cancel") - , m_bbox(Gtk::ORIENTATION_HORIZONTAL) { - set_default_size(300, 50); - get_style_context()->add_class("app-window"); - get_style_context()->add_class("app-popup"); - - m_label.set_text("Are you sure?"); - - m_ok.signal_clicked().connect([&]() { - response(Gtk::RESPONSE_OK); - }); - - m_cancel.signal_clicked().connect([&]() { - response(Gtk::RESPONSE_CANCEL); - }); - - m_bbox.pack_start(m_ok, Gtk::PACK_SHRINK); - m_bbox.pack_start(m_cancel, Gtk::PACK_SHRINK); - m_bbox.set_layout(Gtk::BUTTONBOX_END); - - m_layout.add(m_label); - m_layout.add(m_bbox); - get_content_area()->add(m_layout); - - show_all_children(); -} - -void ConfirmDialog::SetConfirmText(const Glib::ustring &text) { - m_label.set_text(text); -} |