Changeset 66 for trunk/src/IMainView.h

Show
Ignore:
Timestamp:
04/15/06 06:57:59 (3 years ago)
Author:
jordi
Message:

The main presenter shows the sidebar when the document has outlines. Also passes the outline to the view and accepts an activated outline to make change the page.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/IMainView.h

    r62 r66  
    264264 
    265265            /// 
     266            /// @brief Shows the sidebar. 
     267            /// 
     268            /// The presenter will call it just before to show the main window, 
     269            /// to let the view know if it must show the sidebar or not 
     270            /// when the main window will be displayed. 
     271            /// 
     272            /// After that, the presenter can call it to show or hide the 
     273            /// sidebar when the user toggles the "Show sidebar" option. 
     274            /// 
     275            /// @param show Set to TRUE if the sidebar should be shown. FALSE 
     276            ///             otherwise. 
     277            /// 
     278            virtual void showSidebar (gboolean show) = 0; 
     279 
     280            /// 
    266281            /// @brief Gives the number of pages that the document has. 
    267282            /// 
     
    324339            /// 
    325340            virtual void setTitle (const gchar *title) = 0; 
     341 
     342            /// 
     343            /// @brief Sets the document's outline. 
     344            /// 
     345            /// The presenter will call this function regardless if the 
     346            /// sidebar is shown or not. 
     347            /// 
     348            /// The view must make a tree view from the document's outline 
     349            /// and show it when the sidebar is shown. 
     350            /// 
     351            /// Also, when one of these outlines is activated (the user 
     352            /// clicks on one of them) the view must pass the pointer to the 
     353            /// activated outline when calling MainPter::outlineActivated(). 
     354            /// 
     355            /// @param outline The root outline to set. It can have no 
     356            ///                children. 
     357            /// 
     358            virtual void setOutline (DocumentOutline *outline) = 0; 
    326359 
    327360        protected: