mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user