diff options
Diffstat (limited to 'views/examples/examples_main.cc')
-rw-r--r-- | views/examples/examples_main.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/views/examples/examples_main.cc b/views/examples/examples_main.cc index d061871..4750c89 100644 --- a/views/examples/examples_main.cc +++ b/views/examples/examples_main.cc @@ -17,6 +17,8 @@ #include "views/examples/radio_button_example.h" #include "views/examples/scroll_view_example.h" #include "views/examples/tabbed_pane_example.h" +#include "views/examples/table_example.h" +#include "views/examples/table2_example.h" #include "views/examples/textfield_example.h" #include "views/focus/accelerator_handler.h" #include "views/grid_layout.h" @@ -28,6 +30,10 @@ views::View* ExamplesMain::GetContentsView() { return contents_; } +void ExamplesMain::WindowClosing() { + MessageLoopForUI::current()->Quit(); +} + void ExamplesMain::SetStatus(const std::wstring& status) { status_label_->SetText(status); } @@ -99,6 +105,14 @@ void ExamplesMain::Run() { tabbed_pane->AddTab(scroll_view_example.GetExampleTitle(), scroll_view_example.GetExampleView()); + examples::TableExample table_example(this); + tabbed_pane->AddTab(table_example.GetExampleTitle(), + table_example.GetExampleView()); + + examples::Table2Example table2_example(this); + tabbed_pane->AddTab(table2_example.GetExampleTitle(), + table2_example.GetExampleView()); + window->Show(); views::AcceleratorHandler accelerator_handler; MessageLoopForUI::current()->Run(&accelerator_handler); |