diff options
author | Rr42 | 2018-05-30 16:57:47 +0530 |
---|---|---|
committer | Rr42 | 2018-05-30 16:57:47 +0530 |
commit | 7ddc1d90221f8300c7717c0e5dd86e7bcc59e4a7 (patch) | |
tree | 73fb60bcada20a58c3e2a1b3aa30b49a7f8c86d8 /ldmicro/lib | |
parent | 8f1f63ff88e62cb47cad286481033275e8490650 (diff) | |
parent | f53439151dccfe904b10d3c4071a8c5b54a9a00d (diff) | |
download | LDMicroGtk-7ddc1d90221f8300c7717c0e5dd86e7bcc59e4a7.tar.gz LDMicroGtk-7ddc1d90221f8300c7717c0e5dd86e7bcc59e4a7.tar.bz2 LDMicroGtk-7ddc1d90221f8300c7717c0e5dd86e7bcc59e4a7.zip |
Merge branch 'GUI_port' of https://github.com/Rr42/LDMicro-linux into GUI_port
Diffstat (limited to 'ldmicro/lib')
-rw-r--r-- | ldmicro/lib/linuxUI/linuxUI.cpp | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp index 74269d9..6dabd80 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) |