summaryrefslogtreecommitdiff
path: root/src/search/SearchModel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-04 19:55:59 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-04 19:55:59 (GMT)
commit5a2da01a5b1d59bae3d1f00132230835e6803301 (patch)
treea580fe32daa8bac4acb002d32f51552a00c30e72 /src/search/SearchModel.h
parent82d2bcc7c2fe7ae5ba40b915ce22422a36d68639 (diff)
downloadpowder-5a2da01a5b1d59bae3d1f00132230835e6803301.zip
powder-5a2da01a5b1d59bae3d1f00132230835e6803301.tar.gz
Tags, fixes #55
Diffstat (limited to 'src/search/SearchModel.h')
-rw-r--r--src/search/SearchModel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/search/SearchModel.h b/src/search/SearchModel.h
index 831e141..385ff05 100644
--- a/src/search/SearchModel.h
+++ b/src/search/SearchModel.h
@@ -21,10 +21,12 @@ private:
vector<int> selected;
vector<SearchView*> observers;
vector<SaveInfo*> saveList;
+ vector<pair<string, int> > tagList;
int currentPage;
int resultCount;
bool showOwn;
bool showFavourite;
+ bool showTags;
void notifySaveListChanged();
void notifySelectedChanged();
void notifyPageChanged();
@@ -43,9 +45,11 @@ public:
SearchModel();
virtual ~SearchModel();
+ void SetShowTags(bool show);
void AddObserver(SearchView * observer);
void UpdateSaveList(int pageNumber, std::string query);
vector<SaveInfo*> GetSaveList();
+ vector<pair<string, int> > GetTagList();
string GetLastError() { return lastError; }
int GetPageCount() { return max(1, (int)(ceil(resultCount/16))); }
int GetPageNum() { return currentPage; }