summaryrefslogtreecommitdiff
path: root/MainWindow.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-25 20:21:31 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-25 20:21:31 +0930
commite94e0492774134f171cded42f03ebe4e892122b0 (patch)
tree18e18fa06eead723185d6d5cebf1d06a078dfa91 /MainWindow.h
parentc40dfb1f7e12f3d127ff8851dc3c7276840a5b81 (diff)
downloadfoxlogicgates-e94e0492774134f171cded42f03ebe4e892122b0.tar.gz
foxlogicgates-e94e0492774134f171cded42f03ebe4e892122b0.zip
functionality: implement loading xml file saved.
Diffstat (limited to 'MainWindow.h')
-rw-r--r--MainWindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/MainWindow.h b/MainWindow.h
index a27db71..f5de5a1 100644
--- a/MainWindow.h
+++ b/MainWindow.h
@@ -58,6 +58,7 @@ class MainWindow : public FXMainWindow
ID_BUTTON_NOT,
ID_BUTTON_SAVE,
+ ID_BUTTON_LOAD,
};
/* Event handlers */
@@ -81,6 +82,7 @@ class MainWindow : public FXMainWindow
/* options */
long save_button_press(FXObject*,FXSelector,void* ptr);
+ long load_button_press(FXObject*,FXSelector,void* ptr);
/* selected gate */
Gate *selected_gate = nullptr;
@@ -98,8 +100,10 @@ class MainWindow : public FXMainWindow
void find_selected_input(int x, int y);
Gate *find_gate_at(int x, int y);
Gate *find_gate_by_id(int id);
+ void remove_all_gates();
bool save_file();
+ bool load_file();
FXHorizontalFrame *contents;
FXVerticalFrame *canvasFrame;