-
Notifications
You must be signed in to change notification settings - Fork 1
/
AlabGui.fl
159 lines (154 loc) · 3.65 KB
/
AlabGui.fl
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# data file for the Fltk User Interface Designer (fluid)
version 1.0304
header_name {.h}
code_name {.cxx}
decl {\#include "AlabLogic.h"} {private global
}
decl {\#include "HexView.h"} {public global
}
decl {\#include "Fl_Text_Editor_Asm.h"} {public global
}
decl {\#include "Fl_Text_Display_Log.h"} {public global
}
class AlabGui {open
} {
Function {make_window()} {open
} {
Fl_Window mainWindow {
label {Assembler Lab} open selected
xywh {246 513 1071 652} type Double visible
} {
Fl_Menu_Bar menuBar {
label menu open
xywh {0 0 1070 20} color 29
} {}
Fl_Text_Editor srcCode {
xywh {3 64 462 485} align 21 textfont 4
code0 {srcBuf = new Fl_Text_Buffer();}
code1 {o->buffer(srcBuf);}
code2 {srcBuf->text("testes");}
code3 {srcBuf->add_modify_callback(onSourceModified, this);}
class Fl_Text_Editor_Asm
}
Fl_Input iArch {
label {arch/sub:}
callback {onInpArch();}
xywh {264 38 60 23} align 1 when 1
}
Fl_Input iOs {
label {os/sys:}
callback {onInpOs();}
xywh {386 38 60 23} align 1 when 1
}
Fl_Input iEnviron {
label {envir/abi:}
callback {onInpEnviron();}
xywh {447 38 60 23} align 1 when 1
}
Fl_Input iVendor {
label {vendor:}
callback {onInpVendor();}
xywh {325 38 60 23} align 1 when 1
}
Fl_Text_Display log {
xywh {3 553 1064 96} color 0
class Fl_Text_Display_Log
}
Fl_Box hexView {
xywh {469 64 597 485} box BORDER_BOX color 7 labeltype NO_LABEL
class HexView
}
Fl_Button {} {
label x86
callback {onBtnX86();}
xywh {3 22 29 20}
}
Fl_Button {} {
label {x86*}
callback {onBtnX86_();}
xywh {32 22 33 20}
}
Fl_Button {} {
label x64
callback {onBtnX64();}
xywh {65 22 30 20}
}
Fl_Button {} {
label {x64*}
callback {onBtnX64_();}
xywh {95 22 34 20}
}
Fl_Button {} {
label arm
callback {onBtnArm()}
xywh {3 42 30 20}
}
Fl_Button {} {
label arm64
callback {onBtnArm64();}
xywh {164 22 47 20}
}
Fl_Button {} {
label ppc
callback {onBtnPpc();}
xywh {211 22 48 20}
}
Fl_Button {} {
label ppc64
callback {onBtnPpc64();}
xywh {163 42 45 20}
}
Fl_Button {} {
label {ppc64*}
callback {onBtnPpc64le();}
xywh {208 42 51 20}
}
Fl_Button {} {
label mips
callback {onBtnMips();}
xywh {129 22 35 20}
}
Fl_Input_Choice icCodeModel {
label {code model:}
callback {onIcCodeModel();} open
xywh {594 21 83 20}
} {}
Fl_Input_Choice icRelocModel {
label {reloc model:}
callback {onIcRelocModel();} open
xywh {593 41 83 20}
} {}
Fl_Button {} {
label thumb
callback {onBtnThumb();}
xywh {67 42 45 20}
}
Fl_Button {} {
label {arm*}
callback {onBtnArmBE()}
xywh {33 42 34 20}
}
Fl_Button {} {
label {thumb*}
callback {onBtnThumbBE();}
xywh {112 42 51 20}
}
}
code {srcCode->linenumber_width(24);} {}
}
decl {Fl_Text_Buffer *srcBuf;} {public local
}
}
Function {} {open
} {
code {AlabGui gui;
Fl_Double_Window *w = gui.make_window();
onGuiFinished(&gui);
//Fl::add_idle(onIdle, &gui);
w->end();
w->show();
int rc = Fl::run();
onExit();
return rc;
/* fluid will insert Fl::run() here... */} {}
}