]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/GnomeBase.C
Michael's latest batch of new gnome files.
[lyx.git] / src / frontends / gnome / GnomeBase.C
index cb56013590aed57c5c43cc5df64a1dad1986f9f4..72e80aa3859db456b42d1213ba2c034a0c362219 100644 (file)
@@ -21,9 +21,9 @@
 #include <gnome--/dialog.h>
 
 GnomeBase::GnomeBase(ControlButtons & c, 
-               string const & glade_file, string const & name)
+                string const & name)
        : ViewBC<gnomeBC>(c)
-       , file_(glade_file), widget_name_(name), xml_(0)
+       , file_(name + ".glade"), widget_name_(name), xml_(0)
        , dialog_(0)
 {}
        
@@ -71,6 +71,35 @@ void GnomeBase::hide()
                dialog_->hide();
 }
 
+bool GnomeBase::validate()
+{
+       return true;
+}
+
+void GnomeBase::OKClicked() 
+{ 
+       OKButton(); 
+}
+
+void GnomeBase::CancelClicked() 
+{ 
+       CancelButton(); 
+}
+
+void GnomeBase::ApplyClicked() 
+{ 
+       ApplyButton(); 
+}
+
+void GnomeBase::RestoreClicked() 
+{ 
+       RestoreButton(); 
+}
+
+void GnomeBase::InputChanged() 
+{ 
+       bc().valid(validate()); 
+}
 
 Gnome::Dialog * GnomeBase::dialog()
 {