summaryrefslogtreecommitdiff
path: root/ldmicro/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ldmicro/lib')
-rw-r--r--ldmicro/lib/linuxUI/linuxUI.cpp40
1 files changed, 39 insertions, 1 deletions
diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp
index 8237d7d..13af88b 100644
--- a/ldmicro/lib/linuxUI/linuxUI.cpp
+++ b/ldmicro/lib/linuxUI/linuxUI.cpp
@@ -1,9 +1,47 @@
#include "linuxUI.h"
+/// Menu Variables
+HWID window;
+HWID menu_box; // Box for alignment
+HWID packed_menu_box; // Stores the packed box
+HWID FileMenu; // File Menu
+HWID EditMenu; // Edit Menu
+HWID settings; // Settings Menu
+HWID ProcessorMenu; // Processor Menu
+HWID InstructionMenu; // Instruction Menu
+HWID compile; // Compile Menu
+HWID help; // Help Menu
+HWID SimulateMenu; // Simulate Menu
+HWID menu_bar; // Menu Bar
+HWID file_label; // File menu label
+HWID edit_label; // Edit menu label
+HWID instruction_label; // Instruction menu label
+HWID settings_label; // Settings menu label
+HWID compile_label; // Compile menu label
+HWID help_label; // Help menu label
+HWID simulate_label; // Simulate menu label
+HWID file_menu_items; // File menu item
+HWID edit_menu_items; // Edit menu item
+HWID instruction_menu_items; // Instruction menu item
+HWID settings_menu_items; // Settings menu item
+HWID processor_menu_items; // Processor menu items
+HWID compile_menu_items; // Compile menu item
+HWID help_menu_items; // Help menu item
+HWID simulate_menu_items; // Simulate menu item
+HWID file_menu_separator; // File menu separator
+HWID edit_menu_separator; // Edit menu separator
+HWID instruction_menu_separator; // Instruction menu separator
+HWID simulate_menu_separator; // Simulate menu separator
+
+//Scrollbars for the ladder logic area
+int ScrollWidth; // Width of scrolling
+int ScrollHeight; // Height of scrolling
+HWID IoList; // Window for list view
+
/// Wraper function for gtk_window_has_toplevel_focus
BOOL isFocus(HWID window)
{
- return (BOOL) gtk_window_has_toplevel_focus(GTK_WINDOW(gtk_widget_get_parent_window(GTK_WIDGET(window))));
+ return (BOOL) gtk_window_has_toplevel_focus(GTK_WINDOW(window));
}
COLORREF RGB(int red, int green, int blue)