summaryrefslogtreecommitdiff
path: root/include/gui
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/component.h23
-rw-r--r--include/gui/gui.h1
-rw-r--r--include/gui/pictureframe.h1
3 files changed, 18 insertions, 7 deletions
diff --git a/include/gui/component.h b/include/gui/component.h
index 9700dfe..97a23fe 100644
--- a/include/gui/component.h
+++ b/include/gui/component.h
@@ -1,5 +1,9 @@
1#ifndef UPEM_C_COMPONENT_H 1#ifndef UPEM_C_COMPONENT_H
2#define UPEM_C_COMPONENT_H 2#define UPEM_C_COMPONENT_H
3/**
4 * File: component.h
5 * Components implementation.
6 */
3 7
4/** 8/**
5 * Enum: Mode 9 * Enum: Mode
@@ -17,16 +21,21 @@ typedef enum {
17 WAITING_BUTTON_SHOW, WAITING_BUTTON_HIDE, INSERT_ORIGIN, INSERT_TARGET, PRINTING, EXITING, PRINTING_BUTTONS, RENDERING 21 WAITING_BUTTON_SHOW, WAITING_BUTTON_HIDE, INSERT_ORIGIN, INSERT_TARGET, PRINTING, EXITING, PRINTING_BUTTONS, RENDERING
18} Mode; 22} Mode;
19 23
24/**
25 * Mode is used for application status rotation. It is shared between our components. In OOP, this could have been a
26 * static attribute of the class.
27 **/
20extern Mode mode; 28extern Mode mode;
21extern int frame;
22extern char labelFrame[20];
23/** 29/**
24 * File: component.h 30 * Components have no access to exterior. They can access only to themselves due to the generic implementation. These
25 * Windows and components handling. 31 * variables are the easiest way to share memory between components.
26 * 32 * frame and labelFrame is used to frame management and printing this number of frame on one of the button. Button are
27 * See also: 33 * not designed to have a dynamic label, so this implementation is the fastest without breaking the code or creating
28 * The famous OS 34 * another type of components.
29 */ 35 */
36extern int frame;
37extern char labelFrame[20];
38
30struct Component; 39struct Component;
31 40
32/** 41/**
diff --git a/include/gui/gui.h b/include/gui/gui.h
index 10f59e8..745d3e1 100644
--- a/include/gui/gui.h
+++ b/include/gui/gui.h
@@ -5,6 +5,7 @@
5 5
6/** 6/**
7 * File: gui.h 7 * File: gui.h
8 * Graphical user interface handling
8 */ 9 */
9 10
10 11
diff --git a/include/gui/pictureframe.h b/include/gui/pictureframe.h
index a070190..d679b6b 100644
--- a/include/gui/pictureframe.h
+++ b/include/gui/pictureframe.h
@@ -7,6 +7,7 @@
7 7
8/** 8/**
9 * File: pictureframe.h 9 * File: pictureframe.h
10 * Pictures handling.
10 */ 11 */
11 12
12/*Needed storage point to share memory between the origin PictureFrame and the target PictureFrame. It ables to cancel the Add constraint functionality*/ 13/*Needed storage point to share memory between the origin PictureFrame and the target PictureFrame. It ables to cancel the Add constraint functionality*/