diff options
| author | FrankBro <brodeur_francois@hotmail.com> | 2012-01-22 05:45:10 (GMT) |
|---|---|---|
| committer | FrankBro <brodeur_francois@hotmail.com> | 2012-01-22 05:45:10 (GMT) |
| commit | 57ab7bca76aa94624ca078d7168614eb28ead640 (patch) | |
| tree | 2730cab371676cc92fa19da55838c03cd1b4d2a0 /src/search/SearchController.cpp | |
| parent | cb92acd0b7dd9e958330a9b8e3c4b302f236542c (diff) | |
| parent | 3a283d4f3c571dc8a891f2cdc348c204f7f9300b (diff) | |
| download | powder-57ab7bca76aa94624ca078d7168614eb28ead640.zip powder-57ab7bca76aa94624ca078d7168614eb28ead640.tar.gz | |
Merge remote-tracking branch 'origin/master'
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()); } |
