]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GViewBase.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GViewBase.h
index ed0cde0f13cb17731753ca660c7c978e5f1ad6ff..c289d5d3a0b1d3562a59383b70cc0bc38becba7f 100644 (file)
 #ifndef GVIEWBASE_H
 #define GVIEWBASE_H
 
-#include <gtkmm.h>
-#include <libglademm.h>
-#include <boost/scoped_ptr.hpp>
 #include "Dialog.h"
 #include "ButtonPolicies.h"
 #include "GBC.h"
 
+#include <gtkmm.h>
+#include <libglademm.h>
+
+#include <boost/scoped_ptr.hpp>
+
 namespace lyx {
 namespace frontend {
 
@@ -30,6 +32,8 @@ public:
        void setApply(Gtk::Button * apply);
        void setOK(Gtk::Button * ok);
        void setRestore(Gtk::Button * restore);
+       void setTitle(std::string const &);
+       bool readOnly() const;
 protected:
        // Build the dialog
        virtual void build();
@@ -57,7 +61,7 @@ template <class Dialog>
 class GViewDB : public GViewBase {
 protected:
        GViewDB(Dialog &, std::string const &, bool allowResize);
-       virtual const Gtk::Window * window() const;
+       virtual Gtk::Window const * window() const;
        virtual Gtk::Window * window();
        boost::scoped_ptr<Dialog> dialog_;
 };
@@ -114,14 +118,14 @@ GViewCB<Controller, Base>::GViewCB(Dialog & parent, std::string const & t,
 template <class Controller, class Base>
 Controller & GViewCB<Controller, Base>::controller()
 {
-       return static_cast<Controller &>(getController());
+       return static_cast<Controller &>(this->getController());
 }
 
 
 template <class Controller, class Base>
 Controller const & GViewCB<Controller, Base>::controller() const
 {
-       return static_cast<Controller const &>(getController());
+       return static_cast<Controller const &>(this->getController());
 }
 
 } // namespace frontend