2010-07-14 16:22:02 +02:00
|
|
|
/*
|
2010-08-26 21:28:15 +02:00
|
|
|
Copyright 2010 Grégory Soutadé
|
2010-07-14 16:22:02 +02:00
|
|
|
|
2010-08-26 21:28:15 +02:00
|
|
|
This file is part of KissCount.
|
2010-07-14 16:22:02 +02:00
|
|
|
|
2010-08-26 21:28:15 +02:00
|
|
|
KissCount is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2010-07-14 16:22:02 +02:00
|
|
|
|
2010-08-26 21:28:15 +02:00
|
|
|
KissCount is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2010-07-14 16:22:02 +02:00
|
|
|
|
2010-08-26 21:28:15 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
2010-07-14 16:22:02 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SEARCHPANEL_H
|
|
|
|
#define SEARCHPANEL_H
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/grid.h>
|
|
|
|
#include <wx/treectrl.h>
|
|
|
|
#include <wx/scrolwin.h>
|
2010-09-28 21:38:14 +02:00
|
|
|
#include "grid/CalendarEditor.h"
|
2010-09-04 11:54:49 +02:00
|
|
|
#include "grid/wxGridCellBitmapRenderer.h"
|
2010-07-14 16:22:02 +02:00
|
|
|
#include "AccountPanel.h"
|
2010-09-04 11:54:49 +02:00
|
|
|
#include "grid/GridAccount.h"
|
2010-07-14 16:22:02 +02:00
|
|
|
#include "view.h"
|
|
|
|
|
|
|
|
#include <controller/KissCount.h>
|
|
|
|
#include "wxUI.h"
|
|
|
|
#include <model/model.h>
|
|
|
|
|
|
|
|
class wxUI;
|
|
|
|
class KissCount;
|
|
|
|
class GridAccount;
|
|
|
|
|
|
|
|
class SearchPanel: public wxScrolledWindow
|
|
|
|
{
|
2010-08-26 21:28:15 +02:00
|
|
|
public:
|
|
|
|
SearchPanel(KissCount* kiss, wxUI *parent);
|
|
|
|
~SearchPanel();
|
2010-07-14 16:22:02 +02:00
|
|
|
|
2010-08-26 21:28:15 +02:00
|
|
|
void OnButtonSearch(wxCommandEvent& event);
|
|
|
|
void OnOperationModified(wxGridEvent& event);
|
|
|
|
void OnShow(wxShowEvent& event);
|
|
|
|
void OnCalendarFromChange(wxCalendarEvent& event);
|
|
|
|
void OnCalendarToChange(wxCalendarEvent& event);
|
2010-07-14 16:22:02 +02:00
|
|
|
|
2010-08-26 21:28:15 +02:00
|
|
|
private:
|
|
|
|
KissCount* _kiss;
|
|
|
|
wxUI* _wxUI;
|
|
|
|
std::vector<Operation> *_operations;
|
|
|
|
wxCalendarCtrl* _calendarFrom, *_calendarTo;
|
|
|
|
GridAccount *_grid;
|
|
|
|
wxCheckBox *_checkDateFrom, *_checkDateTo;
|
|
|
|
wxTextCtrl* _description, *_amountFrom, *_amountTo;
|
2010-12-01 20:30:34 +01:00
|
|
|
wxCheckListBox* _category, *_account, *_optype;
|
2010-08-26 21:28:15 +02:00
|
|
|
wxButton* _searchButton;
|
|
|
|
DECLARE_EVENT_TABLE();
|
2010-07-14 16:22:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|