Put card notes below the card editor if they fit there (dynamically)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1127 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-09 21:38:53 +00:00
parent b262aef4df
commit 22722f28ce
3 changed files with 52 additions and 12 deletions
+9
View File
@@ -72,12 +72,21 @@ class CardsPanel : public SetWindowPanel {
private:
// --------------------------------------------------- : Controls
wxSizer* s_left;
wxSplitterWindow* splitter;
DataEditor* editor;
ImageCardList* card_list;
Panel* nodes_panel;
TextCtrl* notes;
HoverButton* collapse_notes;
wxTextCtrl* filter;
bool notes_below_editor;
/// Move the notes panel below the editor or below the card list
void updateNotesPosition();
// before Layout, call updateNotesPosition.
// NOTE: docs say this function returns void, but the code says bool
virtual bool Layout();
// --------------------------------------------------- : Menus & tools
IconMenu* menuCard, *menuFormat;