Added GraphControl; FilteredCardList; ValueEditor

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@74 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-19 18:59:33 +00:00
parent ce6a83e34b
commit ed336dea06
31 changed files with 705 additions and 82 deletions
+4 -2
View File
@@ -199,7 +199,6 @@ void SetWindow::selectPanel(int id) {
++wid;
}
// fix sizer stuff
Layout();
fixMinWindowSize();
}
@@ -257,11 +256,13 @@ void SetWindow::onRenderSettingsChange() {
FOR_EACH(p, panels) {
p->onRenderSettingsChange();
}
Layout();
fixMinWindowSize();
}
void SetWindow::fixMinWindowSize() {
current_panel->Layout();
current_panel->SetMinSize(current_panel->GetSizer()->GetMinSize());
Layout();
wxSize s = GetSizer()->GetMinSize();
wxSize ws = GetSize();
wxSize cs = GetClientSize();
@@ -269,6 +270,7 @@ void SetWindow::fixMinWindowSize() {
if (ws.x < minSize.x) ws.x = minSize.x;
if (ws.y < minSize.y) ws.y = minSize.y;
SetSize(ws);
SetMinSize(minSize);
}