| 273 | } |
| 274 | |
| 275 | void LibraryWindow::doLayout() |
| 276 | { |
| 277 | // LAYOUT ELEMENTS------------------------------------------------------------ |
| 278 | mainSplitter = new QSplitter(Qt::Horizontal); // spliter principal |
| 279 | auto sHorizontal = mainSplitter; // Keep local alias for existing code |
| 280 | |
| 281 | // TOOLBARS------------------------------------------------------------------- |
| 282 | //--------------------------------------------------------------------------- |
| 283 | editInfoToolBar = new QToolBar(); |
| 284 | |
| 285 | #ifdef Y_MAC_UI |
| 286 | libraryToolBar = new YACReaderMacOSXToolbar(this); |
| 287 | #else |
| 288 | libraryToolBar = new YACReaderMainToolBar(this); |
| 289 | #endif |
| 290 | |
| 291 | // FOLDERS FILTER------------------------------------------------------------- |
| 292 | //--------------------------------------------------------------------------- |
| 293 | #ifndef Y_MAC_UI |
| 294 | // in MacOSX the searchEdit is created using the toolbar wrapper |
| 295 | searchEdit = new YACReaderSearchLineEdit(); |
| 296 | #endif |
| 297 | |
| 298 | // SIDEBAR-------------------------------------------------------------------- |
| 299 | //--------------------------------------------------------------------------- |
| 300 | sideBar = new YACReaderSideBar; |
| 301 | |
| 302 | foldersView = sideBar->foldersView; |
| 303 | listsView = sideBar->readingListsView; |
| 304 | selectedLibrary = sideBar->selectedLibrary; |
| 305 | |
| 306 | YACReaderTitledToolBar *librariesTitle = sideBar->librariesTitle; |
| 307 | YACReaderTitledToolBar *foldersTitle = sideBar->foldersTitle; |
| 308 | YACReaderTitledToolBar *readingListsTitle = sideBar->readingListsTitle; |
| 309 | |
| 310 | librariesTitle->addAction(actions.createLibraryAction); |
| 311 | librariesTitle->addAction(actions.openLibraryAction); |
| 312 | librariesTitle->addSpacing(3); |
| 313 | |
| 314 | foldersTitle->addAction(actions.addFolderAction); |
| 315 | foldersTitle->addAction(actions.deleteFolderAction); |
| 316 | foldersTitle->addSepartor(); |
| 317 | foldersTitle->addAction(actions.setRootIndexAction); |
| 318 | foldersTitle->addAction(actions.expandAllNodesAction); |
| 319 | foldersTitle->addAction(actions.colapseAllNodesAction); |
| 320 | |
| 321 | readingListsTitle->addAction(actions.addReadingListAction); |
| 322 | // readingListsTitle->addSepartor(); |
| 323 | readingListsTitle->addAction(actions.addLabelAction); |
| 324 | // readingListsTitle->addSepartor(); |
| 325 | readingListsTitle->addAction(actions.renameListAction); |
| 326 | readingListsTitle->addAction(actions.deleteReadingListAction); |
| 327 | readingListsTitle->addSpacing(3); |
| 328 | |
| 329 | // FINAL LAYOUT------------------------------------------------------------- |
| 330 | |
| 331 | contentViewsManager = new YACReaderContentViewsManager(settings, this); |
| 332 |
nothing calls this directly
no test coverage detected