mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
PackagesWindow can show just the packages from an installer.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@905 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -34,6 +34,15 @@ void TreeList::expand(size_t item, bool expand) {
|
||||
}
|
||||
}
|
||||
|
||||
void TreeList::expandAll(bool expand) {
|
||||
for (size_t item = 0 ; item < items.size() ; ++item) {
|
||||
if (hasChildren(item)) {
|
||||
items[item]->expanded = expand;
|
||||
}
|
||||
}
|
||||
rebuild(false);
|
||||
}
|
||||
|
||||
void TreeList::select(size_t item, bool event) {
|
||||
if (item >= items.size() || selection == item) return;
|
||||
// select
|
||||
|
||||
Reference in New Issue
Block a user