diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-24 12:24:17 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-24 12:24:17 (GMT) |
| commit | 9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d (patch) | |
| tree | ac7d040253b459ce102e476cb19ab59e3cfa90d7 /src/search/SearchController.h | |
| parent | 6bf98ccdca39936a3c51367862eed7c49f8786ec (diff) | |
| parent | bdc69f31c0be94191015838886bdcc2bc67f1acb (diff) | |
| download | powder-9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d.zip powder-9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d.tar.gz | |
Merge branch 'reorganisation' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/search/SearchController.h')
| -rw-r--r-- | src/search/SearchController.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/search/SearchController.h b/src/search/SearchController.h deleted file mode 100644 index 03967b4..0000000 --- a/src/search/SearchController.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef SEARCHCONTROLLER_H -#define SEARCHCONTROLLER_H - -#include "interface/Panel.h" -#include "SearchModel.h" -#include "SearchView.h" -#include "preview/PreviewController.h" -#include "Controller.h" -#include "client/SaveInfo.h" - -class SearchView; -class SearchModel; -class SearchController -{ -private: - SearchModel * searchModel; - SearchView * searchView; - PreviewController * activePreview; - ControllerCallback * callback; - - double nextQueryTime; - std::string nextQuery; - bool nextQueryDone; - void removeSelectedC(); - void unpublishSelectedC(); -public: - class OpenCallback; - bool HasExited; - SearchController(ControllerCallback * callback = NULL); - ~SearchController(); - SearchView * GetView() { return searchView; } - void Exit(); - void DoSearch(std::string query, bool now = false); - void NextPage(); - void PrevPage(); - void ChangeSort(); - void ShowOwn(bool show); - void ShowFavourite(bool show); - void Selected(int saveID, bool selected); - void OpenSave(int saveID); - void OpenSave(int saveID, int saveDate); - void Update(); - void ClearSelection(); - void RemoveSelected(); - void UnpublishSelected(); - void FavouriteSelected(); - void ReleaseLoadedSave(); - SaveInfo * GetLoadedSave(); -}; - -#endif // SEARCHCONTROLLER_H |
