mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
renamed GalleryList member column -> subcolumn, so we can have proper columns later on as well.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1134 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -18,7 +18,7 @@ DECLARE_TYPEOF_COLLECTION(PackagedP);
|
||||
PackageList::PackageList(Window* parent, int id, int direction, bool always_focused)
|
||||
: GalleryList(parent, id, direction, always_focused)
|
||||
{
|
||||
item_size = columns[0].size = wxSize(108, 150);
|
||||
item_size = subcolumns[0].size = wxSize(108, 150);
|
||||
SetThemeEnabled(true);
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ void PackageList::clear() {
|
||||
void PackageList::select(const String& name, bool send_event) {
|
||||
for (vector<PackageData>::const_iterator it = packages.begin() ; it != packages.end() ; ++it) {
|
||||
if (it->package->name() == name) {
|
||||
columns[0].selection = it - packages.begin();
|
||||
subcolumns[0].selection = it - packages.begin();
|
||||
update();
|
||||
if (send_event) {
|
||||
sendEvent(EVENT_GALLERY_SELECT);
|
||||
@@ -96,7 +96,7 @@ void PackageList::select(const String& name, bool send_event) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
columns[0].selection = NO_SELECTION;
|
||||
subcolumns[0].selection = NO_SELECTION;
|
||||
update();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user