aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorToni Uhlig <Toni.Uhlig@tq-group.com>2017-11-28 18:12:18 +0100
committerToni Uhlig <Toni.Uhlig@tq-group.com>2017-11-28 18:12:18 +0100
commit965870f0117ece939bf8476e3ee3f016f21f9f0d (patch)
tree5855314466a44bdd9999af5c7f5f6aab5ff295e5 /src
parent1b90d8a3c676d18fc7e939a9c1c63d45776d3fc6 (diff)
UpdateGUI: added CSV import into Menubar
Diffstat (limited to 'src')
-rw-r--r--src/UpdateGUI.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/UpdateGUI.cpp b/src/UpdateGUI.cpp
index af200dc..0830cd0 100644
--- a/src/UpdateGUI.cpp
+++ b/src/UpdateGUI.cpp
@@ -18,6 +18,7 @@ wxBEGIN_EVENT_TABLE(UpdateGUIFrame, wxFrame)
EVT_MENU(wxID_ABOUT, UpdateGUIFrame::OnAbout)
EVT_MENU(wxID_EDITOR, UpdateGUIFrame::OnEditor)
EVT_MENU(wxID_UPDATEFILE, UpdateGUIFrame::OnUpdateFile)
+ EVT_MENU(wxID_IMPORTCSV, UpdateGUIFrame::OnImportCSV)
EVT_MENU(wxID_DOUPDATE, UpdateGUIFrame::OnUpdate)
EVT_BUTTON(wxID_UPDATEFILE, UpdateGUIFrame::OnUpdateFile)
@@ -49,6 +50,10 @@ UpdateGUIFrame::UpdateGUIFrame(const wxString& title, const wxPoint& pos, const
"&Submit\tCtrl-U",
"Start the firmware update process.");
menuFile->AppendSeparator();
+ menuFile->Append(wxID_IMPORTCSV,
+ "&Import CSV ...\tCtrl-I",
+ "Import a CSV table from file.");
+ menuFile->AppendSeparator();
menuFile->Append(wxID_EXIT);
wxMenu *menuHelp = new wxMenu;
@@ -252,7 +257,6 @@ void UpdateGUIFrame::OnUpdate(wxCommandEvent& event)
jobs->AddJob(Job(Job::eID_THREAD_JOB, JobArgs(jobid, *u)));
delete u;
}
- SetStatusText(wxT("Jobs started."));
}
void UpdateGUIFrame::OnNavigationKey(wxNavigationKeyEvent& event)
@@ -279,7 +283,7 @@ void UpdateGUIFrame::OnThread(wxCommandEvent& event)
switch (event.GetId()) {
case Job::eID_THREAD_JOB: SetStatusText(wxs); break;
- case Job::eID_THREAD_MSGOK: tp = RTL_GREEN; break;
+ case Job::eID_THREAD_MSGOK: SetStatusText(wxs); tp = RTL_GREEN; break;
case Job::eID_THREAD_MSGERR: tp = RTL_RED; break;
}
tLog(tp, wxs);