summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2005-11-27 21:17:41 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2005-11-27 21:17:41 +0000
commit1f16781c75205b43ac193596d1449de343693a6f (patch)
tree68f8f9ddd2b7dbe57b0ac2e2caa6fe6e8b9ba96c /gtk2_ardour/ardour_dialog.cc
parentaaa44a37aaf585b9bcd9268a9551a005e6269bdb (diff)
slowly fixing up ArdourDialog nonsense
git-svn-id: svn://localhost/trunk/ardour2@132 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_dialog.cc')
-rw-r--r--gtk2_ardour/ardour_dialog.cc68
1 files changed, 2 insertions, 66 deletions
diff --git a/gtk2_ardour/ardour_dialog.cc b/gtk2_ardour/ardour_dialog.cc
index 030be0486e..22f3f26048 100644
--- a/gtk2_ardour/ardour_dialog.cc
+++ b/gtk2_ardour/ardour_dialog.cc
@@ -26,15 +26,10 @@
#include "ardour_ui.h"
-ArdourDialog::ArdourDialog (string name)
- : Dialog (name)
+ArdourDialog::ArdourDialog (string title, bool modal)
+ : Dialog (title, modal)
{
session = 0;
- kbd_input = false;
- running = false;
- _run_status = 0;
- _within_hiding = false;
- hide_on_stop = true;
}
ArdourDialog::~ArdourDialog ()
@@ -64,64 +59,5 @@ ArdourDialog::on_leave_notify_event (GdkEventCrossing *ev)
void
ArdourDialog::on_unmap ()
{
- _within_hiding = true;
- _within_hiding = false;
Dialog::on_unmap ();
}
-
-void
-ArdourDialog::set_hide_on_stop (bool yn)
-{
- hide_on_stop = yn;
-}
-
-void
-ArdourDialog::stop (int rr)
-{
- if (hide_on_stop) {
- hide_all ();
- }
-
- if (running) {
- if (rr == 0) {
- response (GTK_RESPONSE_ACCEPT);
- } else {
- response (GTK_RESPONSE_CANCEL);
- }
- running = false;
- }
-}
-
-void
-ArdourDialog::run ()
-{
- show_all ();
-
- running = true;
- switch (Dialog::run ()) {
- case GTK_RESPONSE_ACCEPT:
- _run_status = 0;
- break;
-
- case GTK_RESPONSE_DELETE_EVENT:
- _run_status = -1;
- break;
-
- default:
- _run_status = -1;
- }
-
- hide_all ();
-}
-
-void
-ArdourDialog::set_keyboard_input (bool yn)
-{
- kbd_input = yn;
-}
-
-int
-ArdourDialog::run_status ()
-{
- return _run_status;
-}