| 322 | } |
| 323 | |
| 324 | void MainWindow::initContent() |
| 325 | { |
| 326 | _homePage = new T_Home(this); |
| 327 | #ifdef Q_OS_WIN |
| 328 | _elaScreenPage = new T_ElaScreen(this); |
| 329 | #endif |
| 330 | _iconPage = new T_Icon(this); |
| 331 | _baseComponentsPage = new T_BaseComponents(this); |
| 332 | _navigationPage = new T_Navigation(this); |
| 333 | _popupPage = new T_Popup(this); |
| 334 | _cardPage = new T_Card(this); |
| 335 | _listViewPage = new T_ListView(this); |
| 336 | _tableViewPage = new T_TableView(this); |
| 337 | _treeViewPage = new T_TreeView(this); |
| 338 | _settingPage = new T_Setting(this); |
| 339 | |
| 340 | QString testKey_1; |
| 341 | QString testKey_2; |
| 342 | addPageNode("HOME", _homePage, ElaIconType::House); |
| 343 | #ifdef Q_OS_WIN |
| 344 | addExpanderNode("ElaDxgi", _elaDxgiKey, ElaIconType::TvMusic); |
| 345 | QString dxgiCategoryKey; |
| 346 | addCategoryNode("Windows-DXGI", dxgiCategoryKey, _elaDxgiKey); |
| 347 | addPageNode("ElaScreen", _elaScreenPage, _elaDxgiKey, 3, ElaIconType::ObjectGroup); |
| 348 | #endif |
| 349 | QString controlCategoryKey; |
| 350 | addCategoryNode("Controls", controlCategoryKey); |
| 351 | // navigation(elaScreenWidget->property("ElaPageKey").toString()); |
| 352 | addPageNode("ElaBaseComponents", _baseComponentsPage, ElaIconType::CabinetFiling); |
| 353 | |
| 354 | addExpanderNode("ElaView", _viewKey, ElaIconType::CameraViewfinder); |
| 355 | QString viewCategoryKey; |
| 356 | addCategoryNode("View Content", viewCategoryKey, _viewKey); |
| 357 | addPageNode("ElaListView", _listViewPage, _viewKey, 9, ElaIconType::List); |
| 358 | addPageNode("ElaTableView", _tableViewPage, _viewKey, ElaIconType::Table); |
| 359 | addPageNode("ElaTreeView", _treeViewPage, _viewKey, ElaIconType::ListTree); |
| 360 | expandNavigationNode(_viewKey); |
| 361 | addPageNode("ElaCard", _cardPage, ElaIconType::Cards); |
| 362 | QString customKey; |
| 363 | addCategoryNode("Custom", customKey); |
| 364 | addPageNode("ElaNavigation", _navigationPage, ElaIconType::LocationArrow); |
| 365 | addPageNode("ElaPopup", _popupPage, ElaIconType::Envelope); |
| 366 | addPageNode("ElaIcon", _iconPage, 99, ElaIconType::FontCase); |
| 367 | addExpanderNode("TEST_EXPAND_NODE1", testKey_1, ElaIconType::Acorn); |
| 368 | addExpanderNode("TEST_EXPAND_NODE2", testKey_2, testKey_1, ElaIconType::Acorn); |
| 369 | addPageNode("TEST_NODE3", new QWidget(this), testKey_2, ElaIconType::Acorn); |
| 370 | for (int i = 0; i < 10; i++) |
| 371 | { |
| 372 | addExpanderNode(QString("TEST_EXPAND_NODE%1").arg(i + 4), testKey_1, testKey_2, ElaIconType::Acorn); |
| 373 | } |
| 374 | addExpanderNode("TEST_EXPAND_NODE14", testKey_1, ElaIconType::Acorn); |
| 375 | addExpanderNode("TEST_EXPAND_NODE5", testKey_1, ElaIconType::Acorn); |
| 376 | addExpanderNode("TEST_EXPAND_NODE16", testKey_1, ElaIconType::Acorn); |
| 377 | |
| 378 | addFooterNode("About", nullptr, _aboutKey, 0, ElaIconType::User); |
| 379 | _aboutPage = new T_About(); |
| 380 | |
| 381 | _aboutPage->hide(); |
nothing calls this directly
no test coverage detected