]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ViewBase.h
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ViewBase.h
index 70ff2aa308125714d56b12b739fab90025d48c50..f84cf426f02fa65634fd2fad666ed85de71549a3 100644 (file)
@@ -35,6 +35,8 @@ public:
        virtual void show() = 0;
        /// Update dialog before/whilst showing it.
        virtual void update() = 0;
+       /// build the dialog
+       virtual void build() = 0;
 
        /** These shortcuts allow (e.g. xform's) global callback functions
            access to the buttons without making the whole controller_ public.
@@ -47,7 +49,12 @@ public:
         void CancelButton() { controller_.CancelButton(); }
         ///
         void RestoreButton() { controller_.RestoreButton(); }
-
+       
+       /** Defaults to nothing. Can be used by the Controller, however, to
+           indicate to the View that something has changed and that the
+           dialog therefore needs updating. */
+       virtual void partialUpdate(int) {}
+   
 protected:
        /// The view is, after all, controlled!
        ControlButtons & controller_;