Clean header includes
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "grid/wxGridCellBitmapRenderer.h"
|
||||
#include "GenerateDialog.h"
|
||||
|
||||
#include "AccountPanel.h"
|
||||
|
||||
enum {ACCOUNT_NUMBER, ACCOUNT_NAME, ACCOUNT_INIT, ACCOUNT_CUR, ACCOUNT_FINAL, NUMBER_COLS_ACCOUNTS};
|
||||
|
||||
@@ -26,16 +26,17 @@
|
||||
#include <wx/pie/pieplot.h>
|
||||
#include <wx/chartpanel.h>
|
||||
#include <wx/radiobox.h>
|
||||
#include "grid/CalendarEditor.h"
|
||||
#include "grid/wxGridCellBitmapRenderer.h"
|
||||
|
||||
#include "view.h"
|
||||
|
||||
#include <controller/KissCount.h>
|
||||
//#include <controller/KissCount.h>
|
||||
#include <model/model.h>
|
||||
#include "grid/GridAccount.h"
|
||||
#include "grid/CalendarEditor.h"
|
||||
#include <wx/category/categorysimpledataset.h>
|
||||
|
||||
class GridAccount;
|
||||
|
||||
class AccountPanel: public KissPanel
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "grid/CalendarEditor.h"
|
||||
#include "grid/wxGridCellBitmapRenderer.h"
|
||||
#include "ExportPanel.h"
|
||||
|
||||
enum {EXPORT_ID=1, SEARCH_ID, GRID_ID};
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/scrolwin.h>
|
||||
#include "view.h"
|
||||
#include "grid/CalendarEditor.h"
|
||||
#include "grid/wxGridCellBitmapRenderer.h"
|
||||
#include "grid/GridAccount.h"
|
||||
#include "SearchBanner.h"
|
||||
#include <model/model.h>
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <wx/choice.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/gbsizer.h>
|
||||
|
||||
#include "GenerateDialog.h"
|
||||
|
||||
enum {BUTTON_OK_ID=1, BUTTON_CANCEL_ID, YEAR_FROM_ID, MONTH_FROM_ID, YEAR_TO_ID, MONTH_TO_ID};
|
||||
|
||||
@@ -20,15 +20,14 @@
|
||||
#ifndef GENERATEDIALOG_H
|
||||
#define GENERATEDIALOG_H
|
||||
|
||||
#include <list>
|
||||
#include <map>
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/choice.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <controller/KissCount.h>
|
||||
#include "wxUI.h"
|
||||
#include <model/model.h>
|
||||
|
||||
#include "wxUI.h"
|
||||
|
||||
class wxUI;
|
||||
class KissCount;
|
||||
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <wx/colordlg.h>
|
||||
#include <wx/fontdlg.h>
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/statbox.h>
|
||||
#include <wx/gbsizer.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/bmpcbox.h>
|
||||
#include <wx/grid.h>
|
||||
|
||||
#include "ImportPanel.h"
|
||||
|
||||
enum {OPEN_FILE_ID=1, BUTTON_OPEN_ID, NAME_ID, BUTTON_LOAD_ID, BUTTON_INTEGRATE_ID, CHECK_SAVE_ID, OPS_GRID_ID};
|
||||
|
||||
@@ -21,20 +21,13 @@
|
||||
#define IMPORTPANEL_H
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/grid.h>
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/statbox.h>
|
||||
#include <wx/gbsizer.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/bmpcbox.h>
|
||||
#include <wx/colordlg.h>
|
||||
#include <wx/fontdlg.h>
|
||||
|
||||
#include "view.h"
|
||||
#include <model/model.h>
|
||||
#include <model/import/ImportEngine.h>
|
||||
|
||||
#include "grid/GridAccount.h"
|
||||
|
||||
class ImportPanel: public KissPanel
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include <wx/scrolwin.h>
|
||||
#include <wx/bmpbuttn.h>
|
||||
|
||||
#include "wxUI.h"
|
||||
|
||||
class wxUI;
|
||||
class KissCount;
|
||||
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <wx/choice.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/gbsizer.h>
|
||||
|
||||
#include "PasswordDialog.h"
|
||||
|
||||
enum {BUTTON_OK_ID=1, BUTTON_CANCEL_ID, OLD_PASSWORD_ID, NEW_PASSWORD_ID, CONFIRM_PASSWORD_ID};
|
||||
|
||||
@@ -20,12 +20,7 @@
|
||||
#ifndef PASSWORDDIALOG_H
|
||||
#define PASSWORDDIALOG_H
|
||||
|
||||
#include <list>
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/choice.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <controller/KissCount.h>
|
||||
#include "wxUI.h"
|
||||
#include <model/model.h>
|
||||
|
||||
|
||||
@@ -17,6 +17,23 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <wx/grid.h>
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/statbox.h>
|
||||
#include <wx/gbsizer.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/bmpcbox.h>
|
||||
#include <wx/colordlg.h>
|
||||
#include <wx/fontdlg.h>
|
||||
|
||||
#include "grid/wxMyGrid.h"
|
||||
#include "grid/wxGridCellStarEditor.h"
|
||||
#include "grid/wxGridCellFastBoolEditor.h"
|
||||
#include "grid/wxGridCellButtonRenderer.h"
|
||||
#include "grid/wxGridCellButtonEditor.h"
|
||||
#include "PasswordDialog.h"
|
||||
|
||||
#include "PreferencesPanel.h"
|
||||
|
||||
enum {ACCOUNT_NAME, ACCOUNT_NUMBER, ACCOUNT_DEFAULT, ACCOUNT_VIRTUAL, ACCOUNT_BLOCKED, ACCOUNT_DELETE, NUMBER_COLS_ACCOUNT};
|
||||
|
||||
@@ -21,21 +21,11 @@
|
||||
#define PREFERENCESPANEL_H
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/grid.h>
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/statbox.h>
|
||||
#include <wx/gbsizer.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/bmpcbox.h>
|
||||
#include <wx/colordlg.h>
|
||||
#include <wx/fontdlg.h>
|
||||
|
||||
#include "view.h"
|
||||
#include <model/model.h>
|
||||
#include "PasswordDialog.h"
|
||||
#include "SupportedLanguages.h"
|
||||
#include "grid/wxGridCellStarEditor.h"
|
||||
|
||||
class PreferencesPanel: public KissPanel
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/grid.h>
|
||||
#include <wx/gbsizer.h>
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/scrolwin.h>
|
||||
#include "view.h"
|
||||
|
||||
@@ -17,7 +17,12 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "AccountPanel.h"
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/scrolwin.h>
|
||||
#include "grid/CalendarEditor.h"
|
||||
#include "grid/wxGridCellBitmapRenderer.h"
|
||||
|
||||
#include "SearchPanel.h"
|
||||
|
||||
enum {SEARCH_ID=1, GRID_ID,
|
||||
CHANGE_ACCOUNT_ID, CHANGE_CATEGORY_ID, RENAME_ID};
|
||||
|
||||
@@ -22,11 +22,7 @@
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/grid.h>
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/scrolwin.h>
|
||||
#include "view.h"
|
||||
#include "grid/CalendarEditor.h"
|
||||
#include "grid/wxGridCellBitmapRenderer.h"
|
||||
#include "grid/GridAccount.h"
|
||||
#include "AccountPanel.h"
|
||||
#include "SearchBanner.h"
|
||||
@@ -34,7 +30,6 @@
|
||||
#include <model/model.h>
|
||||
|
||||
class GridAccount;
|
||||
class SearchBanner;
|
||||
|
||||
class SearchPanel: public KissPanel
|
||||
{
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <wx/xy/xylinerenderer.h>
|
||||
#include <wx/xy/xysimpledataset.h>
|
||||
|
||||
#include "StatsPanel.h"
|
||||
|
||||
enum {RANGE_ID=1, ACCOUNTS_ID};
|
||||
|
||||
@@ -24,16 +24,14 @@
|
||||
#include <wx/grid.h>
|
||||
#include <wx/choice.h>
|
||||
|
||||
#include <wx/xy/xyplot.h>
|
||||
#include <wx/xy/xylinerenderer.h>
|
||||
#include <wx/xy/xysimpledataset.h>
|
||||
#include <wx/chart.h>
|
||||
#include <wx/grid.h>
|
||||
#include <wx/pie/pieplot.h>
|
||||
#include <wx/chartpanel.h>
|
||||
#include <wx/category/categorysimpledataset.h>
|
||||
#include <wx/calctrl.h>
|
||||
#include <wx/xy/xyplot.h>
|
||||
|
||||
#include <controller/KissCount.h>
|
||||
#include "view.h"
|
||||
#include <model/model.h>
|
||||
|
||||
|
||||
@@ -17,6 +17,11 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <wx/choice.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/textdlg.h>
|
||||
#include <wx/gbsizer.h>
|
||||
|
||||
#include "UsersDialog.h"
|
||||
|
||||
enum {TEXT_PASSWORD_ID=1, BUTTON_OK_ID, BUTTON_CANCEL_ID, BUTTON_NEW_USER_ID};
|
||||
|
||||
@@ -23,10 +23,6 @@
|
||||
#include <list>
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/choice.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/textdlg.h>
|
||||
#include <controller/KissCount.h>
|
||||
#include "wxUI.h"
|
||||
|
||||
class wxUI;
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "wxGridCellFastBoolEditor.h"
|
||||
#include "wxGridCellTreeButtonRenderer.h"
|
||||
#include "wxGridCellTreeButtonEditor.h"
|
||||
#include "wxGridCellBitmapRenderer.h"
|
||||
#include "wxGridCellFormulaEditor.h"
|
||||
#include "wxGridCellTabStringRenderer.h"
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ bool wxGridCellFormulaEditor::EndEdit (int row, int col, wxGrid *grid/*, const w
|
||||
wxString res = GetValue();
|
||||
Operation op;
|
||||
char* str, *str2;
|
||||
struct parse_opt opt, *r;
|
||||
struct ParseExp::parse_opt opt, *r;
|
||||
bool ret;
|
||||
|
||||
res = res.Trim();
|
||||
@@ -62,7 +62,7 @@ bool wxGridCellFormulaEditor::EndEdit (int row, int col, wxGrid *grid/*, const w
|
||||
r = &opt;
|
||||
str = str2;
|
||||
try {
|
||||
ParseExp(&str2, r, false);
|
||||
ParseExp::ParseExp(&str2, r, false);
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ bool wxGridCellFormulaEditor::EndEdit (int row, int col, wxGrid *grid/*, const w
|
||||
|
||||
ret = wxGridCellTextEditor::EndEdit(row, col, grid);
|
||||
|
||||
grid->SetCellValue(row, col, wxString::Format(wxT("%.2lf"), EvaluateExpr(&opt, true)));
|
||||
grid->SetCellValue(row, col, wxString::Format(wxT("%.2lf"), ParseExp::EvaluateExpr(&opt, true)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef VIEW_H
|
||||
#define VIEW_H
|
||||
|
||||
#include <wx/colour.h>
|
||||
|
||||
namespace view {
|
||||
const wxColour OWN_CYAN(0x99, 0xCC, 0xFF);
|
||||
const wxColour OWN_YELLOW(0xFF, 0xFF, 0x99);
|
||||
|
||||
@@ -17,6 +17,20 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "AccountPanel.h"
|
||||
#include "PreferencesPanel.h"
|
||||
#include "UsersDialog.h"
|
||||
#include "GenerateDialog.h"
|
||||
#include "SearchPanel.h"
|
||||
#include "StatsPanel.h"
|
||||
#include "ImportPanel.h"
|
||||
#include "ExportPanel.h"
|
||||
|
||||
#include "grid/wxMyGrid.h"
|
||||
#include "grid/wxGridCellFastBoolEditor.h"
|
||||
#include "grid/wxGridCellButtonRenderer.h"
|
||||
#include "grid/wxGridCellButtonEditor.h"
|
||||
|
||||
#include "wxUI.h"
|
||||
|
||||
enum {BUTTON_CHANGE_USER_ID=-4, BUTTON_ABOUT_ID=-5, BUTTON_QUIT_ID=-6};
|
||||
|
||||
+3
-12
@@ -23,19 +23,9 @@
|
||||
class ImportEngine;
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include "AccountPanel.h"
|
||||
#include "PreferencesPanel.h"
|
||||
#include "UsersDialog.h"
|
||||
#include "GenerateDialog.h"
|
||||
#include "SearchPanel.h"
|
||||
#include "StatsPanel.h"
|
||||
#include "ImportPanel.h"
|
||||
#include "ExportPanel.h"
|
||||
#include <controller/KissCount.h>
|
||||
#include "grid/wxMyGrid.h"
|
||||
#include "grid/wxGridCellFastBoolEditor.h"
|
||||
#include "grid/wxGridCellButtonRenderer.h"
|
||||
#include "grid/wxGridCellButtonEditor.h"
|
||||
|
||||
#include "KissPanel.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#undef _
|
||||
@@ -43,6 +33,7 @@ class ImportEngine;
|
||||
#endif
|
||||
|
||||
class KissCount;
|
||||
class KissPanel;
|
||||
class AccountPanel;
|
||||
class PreferencesPanel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user