Skip to content

Commit

Permalink
feat(import.qif.paye.as.desc)
Browse files Browse the repository at this point in the history
  • Loading branch information
loki36 committed Mar 31, 2015
1 parent 77f75d5 commit 872cd1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion database
Submodule database updated 1 files
+0 −74 tables_v1.sql
15 changes: 10 additions & 5 deletions src/import_export/qif_import_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ mmQIFImportDialog::mmQIFImportDialog(wxWindow* parent)
, accountDropDown_(nullptr)
, btnOK_(nullptr)
{
this->payeeIsNotes = false;
long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX;
Create(parent, wxID_ANY, _("QIF Import"), wxDefaultPosition, wxSize(500, 300), style);
}
Expand Down Expand Up @@ -168,6 +169,7 @@ void mmQIFImportDialog::CreateControls()
//Use paye as desc :
payeeIsNotesCheckBox_ = new wxCheckBox(this, wxID_FILE5, _("Include paye field in notes")
, wxDefaultPosition, wxDefaultSize, wxCHK_2STATE);
payeeIsNotesCheckBox_->SetValue(this->payeeIsNotes);

//Filtering Details --------------------------------------------
wxStaticBox* static_box = new wxStaticBox(this, wxID_ANY, _("Filtering Details:"));
Expand Down Expand Up @@ -665,12 +667,15 @@ void mmQIFImportDialog::OnDateMaskChange(wxCommandEvent& /*event*/)

void mmQIFImportDialog::OnCheckboxClick( wxCommandEvent& /*event*/ )
{
if (payeeIsNotesCheckBox_->IsChecked()){
payeeIsNotes = true;
}else{
payeeIsNotes = false;
if(payeeIsNotesCheckBox_->IsChecked() != this->payeeIsNotes){
if (payeeIsNotesCheckBox_->IsChecked()){
this->payeeIsNotes = true;
}else{
this->payeeIsNotes = false;
}
mmReadQIFFile();
refreshTabs(3);
}
refreshTabs(3);

fromDateCtrl_->Enable(dateFromCheckBox_->IsChecked());
toDateCtrl_->Enable(dateToCheckBox_->IsChecked());
Expand Down
2 changes: 1 addition & 1 deletion src/import_export/qif_import_gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class mmQIFImportDialog : public wxDialog
wxCheckBox* payeeIsNotesCheckBox_;
wxButton* btnOK_;

bool payeeIsNotes = false;
bool payeeIsNotes;

enum EColumn
{
Expand Down

0 comments on commit 872cd1c

Please sign in to comment.