-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
87 lines (53 loc) · 2.39 KB
/
main.cpp
File metadata and controls
87 lines (53 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include <iostream>
#include "ApplicationManager.h"
int main()
{
ActionType ActType;
//Create an object of ApplicationManager
ApplicationManager AppManager;
do
{
//Read user action
ActType = AppManager.GetUserAction();
//Execute the action
AppManager.ExecuteAction(ActType);
//Update the drawing window
AppManager.UpdateInterface();
}while(ActType != EXIT);
return 0;
}
//test
/*
eman.hosam@gmail.com
na5od balna mn el label byt3'yr
copy name of component
ns2l mo3ed :
(move component w follow mouse and draw need to be one function! )
dlw2ty fe mashakl f edit menu
msh 3arf a5leha t5tfe emta dlw2ty hwa lama ydos f 7eta bara el edit menu y3ni elmfrod en get user action trg3 7aga trg3 action msln
fa e7na lw hn3ml action btshel bs el edit menu mashy
bs lw hwa das b2a 3ala el edit menu w das copy
elmfrod nshelha ezay? kan fe mashakl lama 3mlna en update interface bt3ml el grid w el toolbars el denya kant 5rbana 5als btbarbsh
w lama 3mlna set buffering true w keda mb2tsh tbarbsh bs b2a el area select msh bytrsm w 7agat kter b2t 5arbana fa d m7taga tfker shwya
3ayzen nshof mwdo3 el delete dh w n3ml function f application manager bt3ml delete l el component
dh 3'er el function ele btms7 el component bs 3lshan nrsmo y3ni n3ml function delete w function erase
3lshan hn7tag enena mara nshelo mn el component list asasan w mara nshelo bs mn 3al grid w nshelo mn el 2D array
w m7taga ttzabat f classes ktera
elmfrod function draw gate w keda tb2a friend f el class 3lshan ta5od meno forbidden w highlighted w keda lw7daha w m7taga tt3dl f kol 7etta
draw led w draw switch w draw connection m7tagen yt3dlo w yt7at fehom forbidden w keda
m7tag yt3ml delete
delete tt3ml b D aw edit menu
elmfrod n3ml undo w redo
w n3ml detect hwa das 3ala pin wala das 3ala eh blzbt
w save w load 3ayzen ytzbto
w n3ml block kaml keda
el toolbars elmfrod tb2a bttl3 w tnzl w te5tefe y3ni
w lable bta3 kol gate w component w keda w yt3ml label l kaza 7aga lw selected
w ngeb getstring mn el project el tany
n3ml e3lan t7t f el status bar by2oul el hot keys
w n3ml menu keda bt2oulk eh hya el hot keys
lazm nfr2 been el highlighted w been el forbidden fe move components
w lama yo2f b gate t7t toolbar nrsmha a7mr
w follow led and draw w el 7agat d 3ayza tt3ml grin emoticon
w en el led mttrsmsh 3ala tool bar
*/