| | 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 | /// |
| | 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; |