added PCI interrupt link device
[reactos.git] / rosapps / dflat32 / dialogs.c
1 /* ----------- dialogs.c --------------- */
2
3 #include "dflat.h"
4
5 /* -------------- the File Open dialog box --------------- */
6 DF_DIALOGBOX( FileOpen )
7 DF_DB_TITLE( "Open File", -1,-1,19,48)
8 DF_CONTROL(DF_TEXT, "~Filename", 2, 1, 1, 8, DF_ID_FILENAME)
9 DF_CONTROL(DF_EDITBOX, NULL, 13, 1, 1,29, DF_ID_FILENAME)
10 DF_CONTROL(DF_TEXT, "Directory:", 2, 3, 1,10, 0)
11 DF_CONTROL(DF_TEXT, NULL, 13, 3, 1,28, DF_ID_PATH)
12 DF_CONTROL(DF_TEXT, "F~iles", 2, 5, 1, 5, DF_ID_FILES)
13 DF_CONTROL(DF_LISTBOX, NULL, 2, 6,11,16, DF_ID_FILES)
14 DF_CONTROL(DF_TEXT, "~Directories", 19, 5, 1,11, DF_ID_DRIVE)
15 DF_CONTROL(DF_LISTBOX, NULL, 19, 6,11,16, DF_ID_DRIVE)
16 DF_CONTROL(DF_BUTTON, " ~OK ", 36, 7, 1, 8, DF_ID_OK)
17 DF_CONTROL(DF_BUTTON, " ~Cancel ", 36,10, 1, 8, DF_ID_CANCEL)
18 DF_CONTROL(DF_BUTTON, " ~Help ", 36,13, 1, 8, DF_ID_HELP)
19 DF_ENDDB
20
21 /* -------------- the Save As dialog box --------------- */
22 DF_DIALOGBOX( SaveAs )
23 DF_DB_TITLE( "Save As", -1,-1,19,48)
24 DF_CONTROL(DF_TEXT, "~Filename", 2, 1, 1, 8, DF_ID_FILENAME)
25 DF_CONTROL(DF_EDITBOX, NULL, 13, 1, 1,29, DF_ID_FILENAME)
26 DF_CONTROL(DF_TEXT, "Directory:", 2, 3, 1,10, 0)
27 DF_CONTROL(DF_TEXT, NULL, 13, 3, 1,28, DF_ID_PATH)
28 DF_CONTROL(DF_TEXT, "~Directories",2, 5, 1,11, DF_ID_DRIVE)
29 DF_CONTROL(DF_LISTBOX, NULL, 2, 6,11,16, DF_ID_DRIVE)
30 DF_CONTROL(DF_BUTTON, " ~OK ", 36, 7, 1, 8, DF_ID_OK)
31 DF_CONTROL(DF_BUTTON, " ~Cancel ", 36,10, 1, 8, DF_ID_CANCEL)
32 DF_CONTROL(DF_BUTTON, " ~Help ", 36,13, 1, 8, DF_ID_HELP)
33 DF_ENDDB
34
35 /* -------------- The Printer Setup dialog box ------------------ */
36 DF_DIALOGBOX( PrintSetup )
37 DF_DB_TITLE( "Printer Setup", -1, -1, 17, 32)
38 DF_CONTROL(DF_BOX, "Margins", 2, 3, 9, 26, 0 )
39 DF_CONTROL(DF_TEXT, "~Port:", 4, 1, 1, 5, DF_ID_PRINTERPORT)
40 DF_CONTROL(DF_COMBOBOX, NULL, 12, 1, 8, 9, DF_ID_PRINTERPORT)
41 DF_CONTROL(DF_TEXT, "~Left:", 6, 4, 1, 5, DF_ID_LEFTMARGIN)
42 DF_CONTROL(DF_SPINBUTTON, NULL, 17, 4, 1, 6, DF_ID_LEFTMARGIN)
43 DF_CONTROL(DF_TEXT, "~Right:", 6, 6, 1, 6, DF_ID_RIGHTMARGIN)
44 DF_CONTROL(DF_SPINBUTTON, NULL, 17, 6, 1, 6, DF_ID_RIGHTMARGIN)
45 DF_CONTROL(DF_TEXT, "~Top:", 6, 8, 1, 4, DF_ID_TOPMARGIN)
46 DF_CONTROL(DF_SPINBUTTON, NULL, 17, 8, 1, 6, DF_ID_TOPMARGIN)
47 DF_CONTROL(DF_TEXT, "~Bottom:", 6, 10, 1, 7, DF_ID_BOTTOMMARGIN)
48 DF_CONTROL(DF_SPINBUTTON, NULL, 17, 10, 1, 6, DF_ID_BOTTOMMARGIN)
49 DF_CONTROL(DF_BUTTON, " ~OK ", 1, 13, 1, 8, DF_ID_OK)
50 DF_CONTROL(DF_BUTTON, " ~Cancel ", 11, 13, 1, 8, DF_ID_CANCEL)
51 DF_CONTROL(DF_BUTTON, " ~Help ", 21, 13, 1, 8, DF_ID_HELP)
52 DF_ENDDB
53
54 /* -------------- the Search Text dialog box --------------- */
55 DF_DIALOGBOX( SearchTextDB )
56 DF_DB_TITLE( "Search Text", -1,-1,9,48)
57 DF_CONTROL(DF_TEXT, "~Search for:", 2, 1, 1, 11, DF_ID_SEARCHFOR)
58 DF_CONTROL(DF_EDITBOX, NULL, 14, 1, 1, 29, DF_ID_SEARCHFOR)
59 DF_CONTROL(DF_TEXT, "~Match upper/lower case:", 2, 3, 1, 23, DF_ID_MATCHCASE)
60 DF_CONTROL(DF_CHECKBOX, NULL, 26, 3, 1, 3, DF_ID_MATCHCASE)
61 DF_CONTROL(DF_BUTTON, " ~OK ", 7, 5, 1, 8, DF_ID_OK)
62 DF_CONTROL(DF_BUTTON, " ~Cancel ", 19, 5, 1, 8, DF_ID_CANCEL)
63 DF_CONTROL(DF_BUTTON, " ~Help ", 31, 5, 1, 8, DF_ID_HELP)
64 DF_ENDDB
65
66 /* -------------- the Replace Text dialog box --------------- */
67 DF_DIALOGBOX( ReplaceTextDB )
68 DF_DB_TITLE( "Replace Text", -1,-1,12,50)
69 DF_CONTROL(DF_TEXT, "~Search for:", 2, 1, 1, 11, DF_ID_SEARCHFOR)
70 DF_CONTROL(DF_EDITBOX, NULL, 16, 1, 1, 29, DF_ID_SEARCHFOR)
71 DF_CONTROL(DF_TEXT, "~Replace with:", 2, 3, 1, 13, DF_ID_REPLACEWITH)
72 DF_CONTROL(DF_EDITBOX, NULL, 16, 3, 1, 29, DF_ID_REPLACEWITH)
73 DF_CONTROL(DF_TEXT, "~Match upper/lower case:", 2, 5, 1, 23, DF_ID_MATCHCASE)
74 DF_CONTROL(DF_CHECKBOX, NULL, 26, 5, 1, 3, DF_ID_MATCHCASE)
75 DF_CONTROL(DF_TEXT, "Replace ~Every Match:", 2, 6, 1, 23, DF_ID_REPLACEALL)
76 DF_CONTROL(DF_CHECKBOX, NULL, 26, 6, 1, 3, DF_ID_REPLACEALL)
77 DF_CONTROL(DF_BUTTON, " ~OK ", 7, 8, 1, 8, DF_ID_OK)
78 DF_CONTROL(DF_BUTTON, " ~Cancel ", 20, 8, 1, 8, DF_ID_CANCEL)
79 DF_CONTROL(DF_BUTTON, " ~Help ", 33, 8, 1, 8, DF_ID_HELP)
80 DF_ENDDB
81
82 /* -------------- generic message dialog box --------------- */
83 DF_DIALOGBOX( MsgBox )
84 DF_DB_TITLE( NULL, -1,-1, 0, 0)
85 DF_CONTROL(DF_TEXT, NULL, 1, 1, 0, 0, 0)
86 DF_CONTROL(DF_BUTTON, NULL, 0, 0, 1, 8, DF_ID_OK)
87 DF_CONTROL(0, NULL, 0, 0, 1, 8, DF_ID_CANCEL)
88 DF_ENDDB
89
90 /* ----------- DfInputBox Dialog Box ------------ */
91 DF_DIALOGBOX( InputBoxDB )
92 DF_DB_TITLE( NULL, -1,-1, 9, 0)
93 DF_CONTROL(DF_TEXT, NULL, 1, 1, 1, 0, 0)
94 DF_CONTROL(DF_EDITBOX, NULL, 1, 3, 1, 0, DF_ID_INPUTTEXT)
95 DF_CONTROL(DF_BUTTON, " ~OK ", 0, 5, 1, 8, DF_ID_OK)
96 DF_CONTROL(DF_BUTTON, " ~Cancel ", 0, 5, 1, 8, DF_ID_CANCEL)
97 DF_ENDDB
98
99 /* ----------- DfSliderBox Dialog Box ------------- */
100 DF_DIALOGBOX( SliderBoxDB )
101 DF_DB_TITLE( NULL, -1,-1, 9, 0)
102 DF_CONTROL(DF_TEXT, NULL, 0, 1, 1, 0, 0)
103 DF_CONTROL(DF_TEXT, NULL, 0, 3, 1, 0, 0)
104 DF_CONTROL(DF_BUTTON, " Cancel ", 0, 5, 1, 8, DF_ID_CANCEL)
105 DF_ENDDB
106
107
108 /* ------------ Display dialog box -------------- */
109 DF_DIALOGBOX( Display )
110 DF_DB_TITLE( "Display", -1, -1, 12, 35)
111
112 DF_CONTROL(DF_BOX, "Window", 7, 1, 6,20, 0)
113 DF_CONTROL(DF_CHECKBOX, NULL, 9, 2, 1, 3, DF_ID_TITLE)
114 DF_CONTROL(DF_TEXT, "~Title", 15, 2, 1, 5, DF_ID_TITLE)
115 DF_CONTROL(DF_CHECKBOX, NULL, 9, 3, 1, 3, DF_ID_BORDER)
116 DF_CONTROL(DF_TEXT, "~Border", 15, 3, 1, 6, DF_ID_BORDER)
117 DF_CONTROL(DF_CHECKBOX, NULL, 9, 4, 1, 3, DF_ID_STATUSBAR)
118 DF_CONTROL(DF_TEXT, "~Status bar",15, 4, 1,10, DF_ID_STATUSBAR)
119 DF_CONTROL(DF_CHECKBOX, NULL, 9, 5, 1, 3, DF_ID_TEXTURE)
120 DF_CONTROL(DF_TEXT, "Te~xture", 15, 5, 1, 7, DF_ID_TEXTURE)
121
122 DF_CONTROL(DF_BUTTON, " ~OK ", 2, 8,1,8,DF_ID_OK)
123 DF_CONTROL(DF_BUTTON, " ~Cancel ", 12, 8,1,8,DF_ID_CANCEL)
124 DF_CONTROL(DF_BUTTON, " ~Help ", 22, 8,1,8,DF_ID_HELP)
125 DF_ENDDB
126
127 /* ------------ Windows dialog box -------------- */
128 DF_DIALOGBOX( Windows )
129 DF_DB_TITLE( "Windows", -1, -1, 19, 24)
130 DF_CONTROL(DF_LISTBOX, NULL, 1, 1,11,20, DF_ID_WINDOWLIST)
131 DF_CONTROL(DF_BUTTON, " ~OK ", 2, 13, 1, 8, DF_ID_OK)
132 DF_CONTROL(DF_BUTTON, " ~Cancel ", 12, 13, 1, 8, DF_ID_CANCEL)
133 DF_CONTROL(DF_BUTTON, " ~Help ", 7, 15, 1, 8, DF_ID_HELP)
134 DF_ENDDB
135
136 #ifdef INCLUDE_LOGGING
137 /* ------------ Message Log dialog box -------------- */
138 DF_DIALOGBOX( Log )
139 DF_DB_TITLE( "D-Flat Message Log", -1, -1, 18, 41)
140 DF_CONTROL(DF_TEXT, "~Messages", 10, 1, 1, 8, DF_ID_LOGLIST)
141 DF_CONTROL(DF_LISTBOX, NULL, 1, 2, 14, 26, DF_ID_LOGLIST)
142 DF_CONTROL(DF_TEXT, "~Logging:", 29, 4, 1, 10, DF_ID_LOGGING)
143 DF_CONTROL(DF_CHECKBOX, NULL, 31, 5, 1, 3, DF_ID_LOGGING)
144 DF_CONTROL(DF_BUTTON, " ~OK ", 29, 7, 1, 8, DF_ID_OK)
145 DF_CONTROL(DF_BUTTON, " ~Cancel ", 29, 10, 1, 8, DF_ID_CANCEL)
146 DF_CONTROL(DF_BUTTON, " ~Help ", 29, 13, 1, 8, DF_ID_HELP)
147 DF_ENDDB
148 #endif
149
150 /* ------------ the Help window dialog box -------------- */
151 DF_DIALOGBOX( HelpBox )
152 DF_DB_TITLE( NULL, -1, -1, 0, 45)
153 DF_CONTROL(DF_TEXTBOX, NULL, 1, 1, 0, 40, DF_ID_HELPTEXT)
154 DF_CONTROL(DF_BUTTON, " ~Close ", 0, 0, 1, 8, DF_ID_CANCEL)
155 DF_CONTROL(DF_BUTTON, " ~Back ", 10, 0, 1, 8, DF_ID_BACK)
156 DF_CONTROL(DF_BUTTON, "<< ~Prev ", 20, 0, 1, 8, DF_ID_PREV)
157 DF_CONTROL(DF_BUTTON, " ~Next >>", 30, 0, 1, 8, DF_ID_NEXT)
158 DF_ENDDB
159
160 /* EOF */