Add XMLImportEngine

Fix some bugs in ImportPanel and ImportEngines
This commit is contained in:
2011-07-04 20:23:00 +02:00
parent ebe9ef4a62
commit 753b499b48
21 changed files with 597 additions and 117 deletions

View File

@@ -30,11 +30,6 @@
SetCellFont(row, i, font); \
}
#define UNESCAPE_CHARS(s) { \
s.Replace(wxT("\\\""), wxT("\""), true); \
s.Replace(wxT("\\\'"), wxT("\'"), true); \
}
BEGIN_EVENT_TABLE(GridAccount, wxGrid)
EVT_GRID_CELL_LEFT_CLICK(GridAccount::OnCellLeftClick )
END_EVENT_TABLE()
@@ -665,7 +660,7 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
int op_complete = 6, i, last_day;
wxString value ;
wxDateTime date;
bool need_insertion = false, fix_op=false;
bool need_insertion = false;
static bool inModification = false ;
wxColour color ;
unsigned char r, g, b;
@@ -946,8 +941,6 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
UpdateOperation(new_op);
(_displayedOperations)[row] = new_op;
}
fix_op = true;
}
// Add a fixCost
else if (row == _fixCosts)
@@ -957,7 +950,6 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
return ;
}
need_insertion = true;
fix_op = true;
new_op.fix_cost = true;
new_op.meta = false;
new_op._virtual = false;
@@ -1058,7 +1050,6 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
return ;
}
need_insertion = true;
fix_op = false;
new_op.fix_cost = false;
new_op.meta = false;
new_op._virtual = false;