Implemented NewSetWindow, added events to GalleryList

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@48 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-20 20:02:30 +00:00
parent 77d255ee8e
commit 46cf4dbb64
17 changed files with 259 additions and 25 deletions
+7 -1
View File
@@ -30,7 +30,10 @@ class PackageList : public GalleryList {
/// Shows packages that match a specific patern
void showData(const String& pattern = _("*.*"));
// Is there a package selected?
/// Clears this list
void clear();
/// Is there a package selected?
inline bool hasSelection() const { return selection < itemCount(); }
/// Get the selected package, T should be the same type used for showData
@@ -43,6 +46,9 @@ class PackageList : public GalleryList {
return ret;
}
/// Select the package with the given name, if it is not found, selects nothing
void select(const String& name);
protected:
/// Return how many items there are in the list
virtual size_t itemCount() const;