Fix compilation issues
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
/*#include "AccountPanel.hpp"
|
||||
#include "PreferencesPanel.hpp"
|
||||
#include "UsersDialog.hpp"
|
||||
@@ -35,8 +37,6 @@
|
||||
|
||||
#include "UsersDialog.hpp"
|
||||
|
||||
enum {BUTTON_CHANGE_USER_ID=-4, BUTTON_ABOUT_ID=-5, BUTTON_QUIT_ID=-6};
|
||||
|
||||
QString wxUI::months[12] ;
|
||||
QColor wxUI::categoryColors[MAX_CATEGORY] = {QColor(0x00, 0x45, 0x86),
|
||||
QColor(0xFF, 0x3E, 0x0E),
|
||||
@@ -240,12 +240,12 @@ void wxUI::ShowPanel(KissPanel* panel)
|
||||
// Layout();
|
||||
}
|
||||
|
||||
void wxUI::OnButtonClicked(QEvent& event)
|
||||
void wxUI::OnButtonClicked()
|
||||
{
|
||||
// ShowPanel(_panels[event.GetId()]);
|
||||
}
|
||||
|
||||
void wxUI::OnButtonChangeUser(QEvent& event)
|
||||
void wxUI::OnButtonChangeUser()
|
||||
{
|
||||
ChangeUser();
|
||||
}
|
||||
@@ -256,22 +256,15 @@ void wxUI::ChangeUser()
|
||||
u.exec();
|
||||
}
|
||||
|
||||
void wxUI::OnButtonAbout(QEvent& event)
|
||||
void wxUI::OnButtonAbout()
|
||||
{
|
||||
// wxMessageBox( _("Personal accounting software\n\nhttp://indefero.soutade.fr/p/kisscount/\n\nLicenced under GNU GPL v3\n\nCopyright (C) 2010-2011 Grégory Soutadé"),
|
||||
// wxT("KissCount " APP_VERSION "\n\n"),
|
||||
// wxOK | wxICON_INFORMATION, this );
|
||||
QMessageBox::information(this, "KissCount " APP_VERSION, _("Personal accounting software\n\nhttp://indefero.soutade.fr/p/kisscount/\n\nLicenced under GNU GPL v3\n\nCopyright (C) 2010-2011 Grégory Soutadé"));
|
||||
}
|
||||
|
||||
void wxUI::OnButtonQuit(QEvent& event)
|
||||
void wxUI::OnButtonQuit()
|
||||
{
|
||||
// wxMessageDialog dialog(this, _("Quit KissCount ?"), wxT("KissCount"), wxYES_NO);
|
||||
// if (dialog.ShowModal() == wxID_NO)
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// Close(true);
|
||||
if (QMessageBox::question(this, "KissCount", _("Quit KissCount ?"), QMessageBox::Yes|QMessageBox::No, QMessageBox::No) == QMessageBox::Yes)
|
||||
close();
|
||||
}
|
||||
|
||||
void wxUI::GenerateMonth(int month, int year)
|
||||
|
||||
Reference in New Issue
Block a user