diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-07 15:16:54 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-07 15:16:54 (GMT) |
| commit | 1dadb11fc218786a36cc46714a0478e229ca44a9 (patch) | |
| tree | 8e0d2d011d90b15c2a7d96893e1107f0f8e7da1b /src/stamps/StampsModel.h | |
| parent | 61ed6e0276d580515d0acf5ddb96b1db95b9b191 (diff) | |
| download | powder-1dadb11fc218786a36cc46714a0478e229ca44a9.zip powder-1dadb11fc218786a36cc46714a0478e229ca44a9.tar.gz | |
Remove unneeded files
Diffstat (limited to 'src/stamps/StampsModel.h')
| -rw-r--r-- | src/stamps/StampsModel.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/stamps/StampsModel.h b/src/stamps/StampsModel.h deleted file mode 100644 index 48d3c38..0000000 --- a/src/stamps/StampsModel.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * StampsModel.h - * - * Created on: Mar 29, 2012 - * Author: Simon - */ - -#ifndef STAMPSMODEL_H_ -#define STAMPSMODEL_H_ - -#include <vector> -#include <string> -#include <cmath> -#include "search/Save.h" - -class StampsView; -class StampsModel { - vector<std::string> selected; - Save * stamp; - std::vector<std::string> stampIDs; - std::vector<Save*> stampsList; - std::vector<StampsView*> observers; - int currentPage; - void notifyStampsListChanged(); - void notifyPageChanged(); - void notifySelectedChanged(); -public: - StampsModel(); - int GetPageCount() { return max(1, (int)(ceil(stampIDs.size()/16))); } - int GetPageNum() { return currentPage; } - void AddObserver(StampsView * observer); - std::vector<Save *> GetStampsList(); - void UpdateStampsList(int pageNumber); - Save * GetStamp(); - void SetStamp(Save * newStamp); - vector<std::string> GetSelected() { return selected; } - void ClearSelected() { selected.clear(); notifySelectedChanged(); } - void SelectStamp(std::string stampID); - void DeselectStamp(std::string stampID); - virtual ~StampsModel(); -}; - -#endif /* STAMPSMODEL_H_ */ |
