diff --git a/src/apps/debuganalyzer/gui/main_window/Jamfile b/src/apps/debuganalyzer/gui/main_window/Jamfile index 6277f65e54..eca21d7863 100644 --- a/src/apps/debuganalyzer/gui/main_window/Jamfile +++ b/src/apps/debuganalyzer/gui/main_window/Jamfile @@ -10,6 +10,7 @@ MergeObject DebugAnalyzer_gui_main_window.o : GeneralPage.cpp MainWindow.cpp + SchedulingPage.cpp TeamsPage.cpp ThreadsPage.cpp ; diff --git a/src/apps/debuganalyzer/gui/main_window/MainWindow.cpp b/src/apps/debuganalyzer/gui/main_window/MainWindow.cpp index 8cca6d98e1..4a149fee79 100644 --- a/src/apps/debuganalyzer/gui/main_window/MainWindow.cpp +++ b/src/apps/debuganalyzer/gui/main_window/MainWindow.cpp @@ -3,6 +3,7 @@ * Distributed under the terms of the MIT License. */ + #include "MainWindow.h" #include @@ -22,6 +23,7 @@ #include "SubWindowManager.h" #include "main_window/GeneralPage.h" +#include "main_window/SchedulingPage.h" #include "main_window/TeamsPage.h" #include "main_window/ThreadsPage.h" @@ -36,6 +38,7 @@ MainWindow::MainWindow(DataSource* dataSource) fGeneralPage(NULL), fTeamsPage(NULL), fThreadsPage(NULL), + fSchedulingPage(NULL), fModel(NULL), fModelLoader(NULL), fSubWindowManager(NULL) @@ -53,6 +56,7 @@ MainWindow::MainWindow(DataSource* dataSource) fMainTabView->AddTab(fGeneralPage = new GeneralPage); fMainTabView->AddTab(fTeamsPage = new TeamsPage(this)); fMainTabView->AddTab(fThreadsPage = new ThreadsPage(this)); + fMainTabView->AddTab(fSchedulingPage = new SchedulingPage(this)); // create a model loader, if we have a data source if (dataSource != NULL) @@ -199,4 +203,5 @@ MainWindow::_SetModel(Model* model) fGeneralPage->SetModel(fModel); fTeamsPage->SetModel(fModel); fThreadsPage->SetModel(fModel); + fSchedulingPage->SetModel(fModel); } diff --git a/src/apps/debuganalyzer/gui/main_window/MainWindow.h b/src/apps/debuganalyzer/gui/main_window/MainWindow.h index 98528b3af1..afc9856738 100644 --- a/src/apps/debuganalyzer/gui/main_window/MainWindow.h +++ b/src/apps/debuganalyzer/gui/main_window/MainWindow.h @@ -34,6 +34,7 @@ private: class GeneralPage; class TeamsPage; class ThreadsPage; + class SchedulingPage; private: void _SetModel(Model* model); @@ -43,6 +44,7 @@ private: GeneralPage* fGeneralPage; TeamsPage* fTeamsPage; ThreadsPage* fThreadsPage; + SchedulingPage* fSchedulingPage; Model* fModel; ModelLoader* fModelLoader; SubWindowManager* fSubWindowManager; diff --git a/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp b/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp new file mode 100644 index 0000000000..e901585459 --- /dev/null +++ b/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp @@ -0,0 +1,41 @@ +/* + * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. + * Distributed under the terms of the MIT License. + */ + +#include "main_window/SchedulingPage.h" + +#include + +#include + + +MainWindow::SchedulingPage::SchedulingPage(MainWindow* parent) + : + BGroupView(B_VERTICAL), + fParent(parent), + fModel(NULL) +{ + SetName("Scheduling"); +} + + +MainWindow::SchedulingPage::~SchedulingPage() +{ +} + + +void +MainWindow::SchedulingPage::SetModel(Model* model) +{ + if (model == fModel) + return; + + if (fModel != NULL) { + } + + fModel = model; + + if (fModel != NULL) { + } +} diff --git a/src/apps/debuganalyzer/gui/main_window/SchedulingPage.h b/src/apps/debuganalyzer/gui/main_window/SchedulingPage.h new file mode 100644 index 0000000000..ee72ef9fd3 --- /dev/null +++ b/src/apps/debuganalyzer/gui/main_window/SchedulingPage.h @@ -0,0 +1,33 @@ +/* + * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. + * Distributed under the terms of the MIT License. + */ +#ifndef MAIN_SCHEDULING_PAGE_H +#define MAIN_SCHEDULING_PAGE_H + +#include + +#include "table/Table.h" + +#include "main_window/MainWindow.h" + + +class MainWindow::SchedulingPage : public BGroupView, private TableListener { +public: + SchedulingPage(MainWindow* parent); + virtual ~SchedulingPage(); + + void SetModel(Model* model); + +private: + // TableListener + virtual void TableRowInvoked(Table* table, int32 rowIndex); + +private: + MainWindow* fParent; + Model* fModel; +}; + + + +#endif // MAIN_SCHEDULING_PAGE_H diff --git a/src/apps/debuganalyzer/gui/main_window/TeamsPage.cpp b/src/apps/debuganalyzer/gui/main_window/TeamsPage.cpp index 9a37ba245a..26e2ecdd04 100644 --- a/src/apps/debuganalyzer/gui/main_window/TeamsPage.cpp +++ b/src/apps/debuganalyzer/gui/main_window/TeamsPage.cpp @@ -72,7 +72,6 @@ MainWindow::TeamsPage::TeamsPage(MainWindow* parent) fTeamsTable(NULL), fTeamsTableModel(NULL), fModel(NULL) - { SetName("Teams"); diff --git a/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp b/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp index 6ce4ef66e0..de7a0557dd 100644 --- a/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp +++ b/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp @@ -108,7 +108,6 @@ MainWindow::ThreadsPage::ThreadsPage(MainWindow* parent) fThreadsTable(NULL), fThreadsTableModel(NULL), fModel(NULL) - { SetName("Threads");