diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-21 22:48:37 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-21 22:48:37 (GMT) |
| commit | dea70befcf770a767f1cbeecdd149930f6d4c0b8 (patch) | |
| tree | d7262fed954074b5f60b2a75307ff50c8038c25d /src/search/SearchController.cpp | |
| parent | 984d39f8cc6e2fd54c1a1b4aa217334f04a5e479 (diff) | |
| download | powder-dea70befcf770a767f1cbeecdd149930f6d4c0b8.zip powder-dea70befcf770a767f1cbeecdd149930f6d4c0b8.tar.gz | |
Basic skeleton for save preview
Diffstat (limited to 'src/search/SearchController.cpp')
| -rw-r--r-- | src/search/SearchController.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/search/SearchController.cpp b/src/search/SearchController.cpp index 7103591..46a353c 100644 --- a/src/search/SearchController.cpp +++ b/src/search/SearchController.cpp @@ -3,8 +3,10 @@ #include "SearchModel.h" #include "SearchView.h" #include "interface/Panel.h" +#include "preview/PreviewController.h" -SearchController::SearchController() +SearchController::SearchController(): + activePreview(NULL) { searchModel = new SearchModel(); searchView = new SearchView(); @@ -19,6 +21,11 @@ SearchController::SearchController() SearchController::~SearchController() { + if(activePreview) + { + ui::Engine::Ref().CloseWindow(); + delete activePreview; + } delete searchModel; delete searchView; } @@ -54,5 +61,11 @@ void SearchController::ChangeSort() void SearchController::ShowOwn(bool show) { + //TODO: Implement +} +void SearchController::OpenSave(int saveID) +{ + activePreview = new PreviewController(saveID); + ui::Engine::Ref().ShowWindow(activePreview->GetView()); } |
