Change charts and real/virtual mode position

This commit is contained in:
Grégory Soutadé 2011-05-28 10:24:02 +02:00
parent 9c096b0846
commit 33a2cd1f0c
5 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
v0.2 (30/04/2011) v0.2 (28/05/2011)
** User ** ** User **
Better use of sizers (so better interface!) Better use of sizers (so better interface!)
@ -16,6 +16,7 @@ v0.2 (30/04/2011)
Add Debian's packages !! Add Debian's packages !!
Add Import Panel, OFX and Grisbi imports Add Import Panel, OFX and Grisbi imports
Add update next months Add update next months
Change charts and real/virtual mode position
** Dev ** ** Dev **
Use a factory to create panels (prepare for plug-in) Use a factory to create panels (prepare for plug-in)

2
README
View File

@ -2,7 +2,7 @@ KissCount is personnal account software delivered under GPL v3 licence terms.
Current version is 0.2 Current version is 0.2
wxWidgets 2.8 and sqlite3 are needed wxWidgets 2.8, sqlite3, libofx and libxml2 are needed
A modified version of wxFreeChart is used : warning during recompilation, don't overwrite autotools files with ./configure A modified version of wxFreeChart is used : warning during recompilation, don't overwrite autotools files with ./configure

View File

@ -2,7 +2,7 @@ KissCount est un logiciel de gestion de comptes personnels délivré sous licenc
La version actuelle est 0.2 La version actuelle est 0.2
wxWidgets 2.8 et sqlite3 sont nécessaires wxWidgets 2.8, sqlite3, libofx et libxml2 sont nécessaires
Une version modifiée de wxFreeChart est utilisée : attention à lors de la recompilation à ne pas écraser les fichiers des autotools (pas de ./configure) Une version modifiée de wxFreeChart est utilisée : attention à lors de la recompilation à ne pas écraser les fichiers des autotools (pas de ./configure)

View File

@ -123,7 +123,7 @@ AccountPanel::AccountPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, pare
chart->Fit(); chart->Fit();
chart->Layout(); chart->Layout();
chart->SetMinSize(// chart->GetSize() chart->SetMinSize(// chart->GetSize()
wxSize(200,250)); wxSize(200,300));
wxString modes[3] = {_("Virtual"), _("Real"), _("Check")}; wxString modes[3] = {_("Virtual"), _("Real"), _("Check")};
_radioMode = new wxRadioBox(this, DISPLAY_MODE_ID, _("Mode"), wxDefaultPosition, wxDefaultSize, _radioMode = new wxRadioBox(this, DISPLAY_MODE_ID, _("Mode"), wxDefaultPosition, wxDefaultSize,
@ -139,6 +139,7 @@ AccountPanel::AccountPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, pare
vbox3->Add(buttonUpdateNextMonths, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 10); vbox3->Add(buttonUpdateNextMonths, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 10);
vbox3->Add(buttonGroup, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 10); vbox3->Add(buttonGroup, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 10);
vbox3->Add(buttonUnGroup, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 10); vbox3->Add(buttonUnGroup, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 10);
vbox3->Add(_radioMode, 0, wxALIGN_CENTER_HORIZONTAL|wxUP, 50);
hbox->Add(vbox3, 0, wxGROW|wxALL, 2); hbox->Add(vbox3, 0, wxGROW|wxALL, 2);
hbox2->Add(_accountsGrid, 0, wxGROW|wxALL, 2); hbox2->Add(_accountsGrid, 0, wxGROW|wxALL, 2);
@ -148,7 +149,6 @@ AccountPanel::AccountPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, pare
hbox->Add(vbox2, 0, wxGROW|wxALL, 2); hbox->Add(vbox2, 0, wxGROW|wxALL, 2);
vbox->Add(_statsGrid, 0, wxGROW); vbox->Add(_statsGrid, 0, wxGROW);
vbox->Add(chart, 0, wxALIGN_CENTER_HORIZONTAL|wxUP, 10); vbox->Add(chart, 0, wxALIGN_CENTER_HORIZONTAL|wxUP, 10);
vbox->Add(_radioMode, 0, wxALIGN_CENTER_HORIZONTAL|wxUP, 10);
hbox->Add(vbox, 0, wxGROW|wxALL, 2); hbox->Add(vbox, 0, wxGROW|wxALL, 2);
ChangeUser(); ChangeUser();

View File

@ -134,14 +134,14 @@ StatsPanel::StatsPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent),
chart->SetMinSize(// chart->GetSize() chart->SetMinSize(// chart->GetSize()
wxSize(200,250)); wxSize(200,250));
_vbox2->Add(chart, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL, 10);
vbox->Add(hbox, 0, wxALIGN_CENTER_VERTICAL|wxGROW|wxALL, 5); vbox->Add(hbox, 0, wxALIGN_CENTER_VERTICAL|wxGROW|wxALL, 5);
vbox->Add(_hbox2, 0, wxGROW|wxALL, 5); vbox->Add(_hbox2, 0, wxGROW|wxALL, 5);
wxCommandEvent event ; wxCommandEvent event ;
OnRangeChange(event); OnRangeChange(event);
_hbox2->Add(chart, 0, wxGROW|wxALL, 10);
Fit(); Fit();
} }