You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

684 lines
22KB

  1. # data file for the Fltk User Interface Designer (fluid)
  2. version 1.0300
  3. header_name {.h}
  4. code_name {.cxx}
  5. comment {//
  6. // "$Id: alignment_panel.fl 8089 2010-12-20 22:19:24Z matt $"
  7. //
  8. // Setting and shell dialogs for the Fast Light Tool Kit (FLTK).
  9. //
  10. // Copyright 1998-2010 by Bill Spitzak and others.
  11. //
  12. // This library is free software; you can redistribute it and/or
  13. // modify it under the terms of the GNU Library General Public
  14. // License as published by the Free Software Foundation; either
  15. // version 2 of the License, or (at your option) any later version.
  16. //
  17. // This library is distributed in the hope that it will be useful,
  18. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. // Library General Public License for more details.
  21. //
  22. // You should have received a copy of the GNU Library General Public
  23. // License along with this library; if not, write to the Free Software
  24. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  25. // USA.
  26. //
  27. // Please report all bugs and problems on the following page:
  28. //
  29. // http://www.fltk.org/str.php
  30. //
  31. } {in_source in_header
  32. }
  33. decl {\#include <FL/Fl_Text_Buffer.H>} {public local
  34. }
  35. decl {\#include <FL/Fl_Text_Display.H>} {public local
  36. }
  37. decl {\#include <FL/filename.H>} {public local
  38. }
  39. decl {\#include <FL/Fl_Preferences.H>} {private global
  40. }
  41. decl {\#include <FL/fl_ask.H>} {private global
  42. }
  43. decl {extern void load_history();} {public local
  44. }
  45. decl {extern void redraw_browser();} {public local
  46. }
  47. decl {extern int show_comments;} {public local
  48. }
  49. decl {extern int show_coredevmenus;} {public local
  50. }
  51. decl {extern struct Fl_Menu_Item *dbmanager_item;} {public local
  52. }
  53. decl {extern Fl_Preferences fluid_prefs;} {public local
  54. }
  55. decl {Fl_Text_Buffer *shell_run_buffer;} {public local
  56. }
  57. Function {make_project_window()} {} {
  58. Fl_Window project_window {
  59. label {Project Settings} open
  60. xywh {393 460 399 252} type Double
  61. code0 {\#include <FL/Fl_Preferences.H>}
  62. code1 {\#include <FL/Fl_Tooltip.H>} modal visible
  63. } {
  64. Fl_Button {} {
  65. label Close
  66. callback {project_window->hide();}
  67. tooltip {Close this dialog.} xywh {328 216 60 25}
  68. }
  69. Fl_Tabs {} {open
  70. xywh {10 10 378 195} selection_color 12
  71. } {
  72. Fl_Group {} {
  73. label Output open
  74. xywh {10 36 378 169} hide
  75. } {
  76. Fl_Box {} {
  77. label {Use "name.ext" to set a file name or just ".ext" to set extension.}
  78. xywh {100 49 236 49} align 144
  79. }
  80. Fl_Input header_file_input {
  81. label {Header File:}
  82. user_data 1 user_data_type {void*}
  83. callback header_input_cb
  84. tooltip {The name of the generated header file.} xywh {99 103 272 20} box THIN_DOWN_BOX labelfont 1 when 1 textfont 4
  85. }
  86. Fl_Input code_file_input {
  87. label {Code File:}
  88. user_data 1 user_data_type {void*}
  89. callback code_input_cb
  90. tooltip {The name of the generated code file.} xywh {100 128 272 20} box THIN_DOWN_BOX labelfont 1 when 1 textfont 4
  91. }
  92. Fl_Check_Button include_H_from_C_button {
  93. label {Include Header from Code}
  94. callback include_H_from_C_button_cb
  95. tooltip {Include the header file from the code file.} xywh {100 153 272 20} down_box DOWN_BOX
  96. }
  97. Fl_Check_Button use_FL_COMMAND_button {
  98. label {Menu shortcuts use FL_COMMAND}
  99. callback use_FL_COMMAND_button_cb
  100. tooltip {Replace FL_CTRL with FL_COMMAND when generating menu shortcut code.} xywh {100 176 272 20} down_box DOWN_BOX
  101. }
  102. }
  103. Fl_Group {} {
  104. label Internationalization open
  105. xywh {10 36 378 169}
  106. } {
  107. Fl_Choice i18n_type_chooser {
  108. label {Use:}
  109. callback i18n_type_cb open
  110. tooltip {Type of internationalization to use.} xywh {100 48 136 25} box THIN_UP_BOX down_box BORDER_BOX labelfont 1
  111. } {
  112. MenuItem {} {
  113. label None
  114. xywh {0 0 100 20}
  115. }
  116. MenuItem {} {
  117. label {GNU gettext}
  118. xywh {0 0 100 20}
  119. }
  120. MenuItem {} {
  121. label {POSIX catgets}
  122. xywh {0 0 100 20}
  123. }
  124. }
  125. Fl_Input i18n_include_input {
  126. label {\#include:}
  127. callback i18n_text_cb
  128. tooltip {The include file for internationalization.} xywh {100 78 272 20} box THIN_DOWN_BOX labelfont 1 textfont 4
  129. }
  130. Fl_Input i18n_file_input {
  131. label {File:}
  132. callback i18n_text_cb
  133. tooltip {The name of the message catalog.} xywh {100 104 272 20} box THIN_DOWN_BOX labelfont 1 textfont 4
  134. }
  135. Fl_Input i18n_set_input {
  136. label {Set:}
  137. callback i18n_int_cb
  138. tooltip {The message set number.} xywh {100 128 272 20} type Int box THIN_DOWN_BOX labelfont 1 textfont 4
  139. }
  140. Fl_Input i18n_function_input {
  141. label {Function:}
  142. callback i18n_text_cb
  143. tooltip {The function to call to internationalize the labels and tooltips.} xywh {100 103 272 20} box THIN_DOWN_BOX labelfont 1 textfont 4
  144. }
  145. }
  146. }
  147. }
  148. }
  149. decl {extern void i18n_cb(Fl_Choice *,void *);} {public local
  150. }
  151. decl {void scheme_cb(Fl_Choice *, void *);} {public local
  152. }
  153. Function {make_settings_window()} {} {
  154. Fl_Window settings_window {
  155. label {GUI Settings} open
  156. xywh {393 191 339 241} type Double non_modal visible
  157. } {
  158. Fl_Choice scheme_choice {
  159. label {Scheme: }
  160. callback scheme_cb open
  161. xywh {116 10 115 25} down_box BORDER_BOX labelfont 1
  162. code0 {int s;}
  163. code1 {fluid_prefs.get("scheme", s, 0);}
  164. code2 {scheme_choice->value(s);}
  165. code3 {scheme_cb(0, 0);}
  166. } {
  167. MenuItem {} {
  168. label Default
  169. xywh {0 0 35 25}
  170. }
  171. MenuItem {} {
  172. label None
  173. xywh {0 0 35 25}
  174. }
  175. MenuItem {} {
  176. label Plastic
  177. xywh {0 0 35 25}
  178. }
  179. MenuItem {} {
  180. label {GTK+}
  181. xywh {10 10 35 25}
  182. }
  183. }
  184. Fl_Group {} {open
  185. xywh {116 43 220 126} labelfont 1 align 0
  186. } {
  187. Fl_Box {} {
  188. label {Options: }
  189. xywh {116 43 1 25} labelfont 1 align 4
  190. }
  191. Fl_Check_Button tooltips_button {
  192. label {Show Tooltips}
  193. callback {Fl_Tooltip::enable(tooltips_button->value());
  194. fluid_prefs.set("show_tooltips", tooltips_button->value());}
  195. xywh {116 43 113 25} down_box DOWN_BOX
  196. code0 {int b;}
  197. code1 {fluid_prefs.get("show_tooltips", b, 1);}
  198. code2 {tooltips_button->value(b);}
  199. code3 {Fl_Tooltip::enable(b);}
  200. }
  201. Fl_Check_Button completion_button {
  202. label {Show Completion Dialogs}
  203. callback {fluid_prefs.set("show_completion_dialogs", completion_button->value());}
  204. xywh {116 68 186 25} down_box DOWN_BOX
  205. code0 {int b;}
  206. code1 {fluid_prefs.get("show_completion_dialogs", b, 1);}
  207. code2 {completion_button->value(b);}
  208. }
  209. Fl_Check_Button openlast_button {
  210. label {Open Previous File on Startup}
  211. callback {fluid_prefs.set("open_previous_file", openlast_button->value());}
  212. xywh {116 93 214 25} down_box DOWN_BOX
  213. code0 {int b;}
  214. code1 {fluid_prefs.get("open_previous_file", b, 0);}
  215. code2 {openlast_button->value(b);}
  216. }
  217. Fl_Check_Button prevpos_button {
  218. label {Remember Window Positions}
  219. callback {fluid_prefs.set("prev_window_pos", prevpos_button->value());}
  220. xywh {116 118 209 25} down_box DOWN_BOX
  221. code0 {int b;}
  222. code1 {fluid_prefs.get("prev_window_pos", b, 1);}
  223. code2 {prevpos_button->value(b);}
  224. }
  225. Fl_Check_Button show_comments_button {
  226. label {Show Comments in Browser}
  227. callback {show_comments = show_comments_button->value();
  228. fluid_prefs.set("show_comments", show_comments);
  229. redraw_browser();}
  230. xywh {116 143 209 25} down_box DOWN_BOX
  231. code1 {fluid_prefs.get("show_comments", show_comments, 1);}
  232. code2 {show_comments_button->value(show_comments);}
  233. }
  234. }
  235. Fl_Spinner recent_spinner {
  236. label {\# Recent Files: }
  237. callback {fluid_prefs.set("recent_files", recent_spinner->value());
  238. load_history();}
  239. xywh {115 173 40 25} labelfont 1 when 1
  240. code0 {int c;}
  241. code1 {fluid_prefs.get("recent_files", c, 5);}
  242. code2 {recent_spinner->maximum(10);}
  243. code3 {recent_spinner->value(c);}
  244. }
  245. Fl_Button {} {
  246. label Close
  247. callback {settings_window->hide();}
  248. tooltip {Close this dialog.} xywh {266 205 64 25}
  249. }
  250. }
  251. }
  252. Function {make_shell_window()} {} {
  253. Fl_Window shell_window {
  254. label {Shell Command} open
  255. xywh {741 195 365 125} type Double visible
  256. } {
  257. Fl_Input shell_command_input {
  258. label {Command:}
  259. callback {fluid_prefs.set("shell_command", shell_command_input->value());}
  260. xywh {10 27 347 25} labelfont 1 align 5
  261. code0 {char buf[1024];}
  262. code1 {fluid_prefs.get("shell_command", buf, "", sizeof(buf));}
  263. code2 {shell_command_input->value(buf);}
  264. }
  265. Fl_Check_Button shell_writecode_button {
  266. label {Write Code}
  267. callback {fluid_prefs.set("shell_writecode", shell_writecode_button->value());}
  268. xywh {128 61 93 19} down_box DOWN_BOX
  269. code0 {int b;}
  270. code1 {fluid_prefs.get("shell_writecode", b, 1);}
  271. code2 {shell_writecode_button->value(b);}
  272. }
  273. Fl_Check_Button shell_writemsgs_button {
  274. label {Write Messages}
  275. callback {fluid_prefs.set("shell_writemsgs", shell_writemsgs_button->value());}
  276. xywh {231 61 126 19} down_box DOWN_BOX
  277. code0 {int b;}
  278. code1 {fluid_prefs.get("shell_writemsgs", b, 0);}
  279. code2 {shell_writemsgs_button->value(b);}
  280. }
  281. Fl_Check_Button shell_savefl_button {
  282. label {Save .FL File}
  283. callback {fluid_prefs.set("shell_savefl", shell_savefl_button->value());}
  284. xywh {10 62 108 19} down_box DOWN_BOX
  285. code0 {int b;}
  286. code1 {fluid_prefs.get("shell_savefl", b, 1);}
  287. code2 {shell_savefl_button->value(b);}
  288. }
  289. Fl_Return_Button {} {
  290. label {Run Command}
  291. callback do_shell_command
  292. xywh {132 90 143 25}
  293. }
  294. Fl_Button {} {
  295. label Cancel
  296. callback {shell_window->hide();}
  297. xywh {285 90 72 25}
  298. }
  299. }
  300. Fl_Window shell_run_window {
  301. label {Shell Command Output}
  302. xywh {592 332 555 430} type Double hide resizable
  303. } {
  304. Fl_Text_Display shell_run_display {
  305. xywh {10 10 535 375} box DOWN_BOX textfont 4 resizable
  306. code0 {shell_run_buffer = new Fl_Text_Buffer();}
  307. code1 {shell_run_display->buffer(shell_run_buffer);}
  308. }
  309. Fl_Return_Button shell_run_button {
  310. label Close
  311. callback {shell_run_window->hide();}
  312. xywh {468 395 77 25}
  313. }
  314. }
  315. }
  316. Function {make_layout_window()} {} {
  317. Fl_Window grid_window {
  318. label {Layout Settings} open
  319. xywh {760 427 285 245} type Double non_modal visible
  320. } {
  321. Fl_Input horizontal_input {
  322. label x
  323. user_data 1 user_data_type long
  324. callback grid_cb
  325. tooltip {Horizontal grid spacing.} xywh {106 10 50 25} type Int box THIN_DOWN_BOX align 8
  326. code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
  327. }
  328. Fl_Input vertical_input {
  329. label pixels
  330. user_data 2 user_data_type long
  331. callback grid_cb
  332. tooltip {Vertical grid spacing.} xywh {166 10 50 25} type Int box THIN_DOWN_BOX align 8
  333. code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
  334. }
  335. Fl_Input snap_input {
  336. label {pixel snap}
  337. user_data 3 user_data_type long
  338. callback grid_cb
  339. tooltip {Snap to grid within this many pixels.} xywh {106 45 50 25} type Int box THIN_DOWN_BOX align 8
  340. code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
  341. }
  342. Fl_Check_Button guides_toggle {
  343. label {Show Guides}
  344. user_data 4 user_data_type long
  345. callback guides_cb
  346. tooltip {Show distance and alignment guides in overlay} xywh {106 80 110 25} down_box DOWN_BOX
  347. }
  348. Fl_Button {} {
  349. label Close
  350. callback {grid_window->hide();}
  351. tooltip {Close this dialog.} xywh {215 210 60 25}
  352. }
  353. Fl_Box {} {
  354. label {Grid:}
  355. xywh {26 10 70 25} labelfont 1 align 24
  356. }
  357. Fl_Box {} {
  358. label {Widget Size:}
  359. xywh {-1 115 97 25} labelfont 1 align 24
  360. }
  361. Fl_Group {} {open
  362. xywh {105 115 170 75}
  363. } {
  364. Fl_Round_Button {def_widget_size[0]} {
  365. user_data 8 user_data_type long
  366. callback default_widget_size_cb
  367. xywh {105 115 70 25} type Radio down_box ROUND_DOWN_BOX
  368. }
  369. Fl_Box {} {
  370. label tiny
  371. xywh {120 115 50 25} labelsize 8 align 20
  372. }
  373. Fl_Round_Button {def_widget_size[1]} {
  374. user_data 11 user_data_type long
  375. callback default_widget_size_cb
  376. xywh {180 115 70 25} type Radio down_box ROUND_DOWN_BOX
  377. }
  378. Fl_Box {} {
  379. label small
  380. xywh {195 115 50 25} labelsize 11 align 20
  381. }
  382. Fl_Round_Button {def_widget_size[2]} {
  383. user_data 14 user_data_type long
  384. callback default_widget_size_cb
  385. xywh {105 140 70 25} type Radio down_box ROUND_DOWN_BOX
  386. }
  387. Fl_Box {} {
  388. label normal
  389. xywh {120 140 50 25} align 20
  390. }
  391. Fl_Round_Button {def_widget_size[3]} {
  392. user_data 18 user_data_type long
  393. callback default_widget_size_cb
  394. xywh {180 140 90 25} type Radio down_box ROUND_DOWN_BOX
  395. }
  396. Fl_Box {} {
  397. label medium
  398. xywh {195 140 68 25} labelsize 18 align 20
  399. }
  400. Fl_Round_Button {def_widget_size[4]} {
  401. user_data 24 user_data_type long
  402. callback default_widget_size_cb
  403. xywh {105 165 75 25} type Radio down_box ROUND_DOWN_BOX
  404. }
  405. Fl_Box {} {
  406. label large
  407. xywh {120 165 64 25} labelsize 24 align 20
  408. }
  409. Fl_Round_Button {def_widget_size[5]} {
  410. user_data 32 user_data_type long
  411. callback default_widget_size_cb
  412. xywh {180 165 95 25} type Radio down_box ROUND_DOWN_BOX
  413. }
  414. Fl_Box {} {
  415. label huge
  416. xywh {195 165 76 25} labelsize 32 align 20
  417. }
  418. }
  419. }
  420. }
  421. decl {int opt[10][2];} {
  422. comment {Copy of all options in user and system mode} private local
  423. }
  424. Function {refreshUI()} {
  425. comment {Update the UI using the values in the opt array} private return_type void
  426. } {
  427. code {int mode = wUserOrSystem->value();
  428. wVisibleFocus->value(opt[Fl::OPTION_VISIBLE_FOCUS][mode]);
  429. wArrowFocus->value(opt[Fl::OPTION_ARROW_FOCUS][mode]);
  430. wShowTooltips->value(opt[Fl::OPTION_SHOW_TOOLTIPS][mode]);
  431. wDNDText->value(opt[Fl::OPTION_DND_TEXT][mode]);} {}
  432. }
  433. Function {readPrefs()} {
  434. comment {read all preferences and refresh the GUI} private return_type void
  435. } {
  436. code {// read all preferences and refresh the GUI
  437. {
  438. Fl_Preferences prefs(Fl_Preferences::SYSTEM, "fltk.org", "fltk");
  439. Fl_Preferences opt_prefs(prefs, "options");
  440. opt_prefs.get("ArrowFocus", opt[Fl::OPTION_ARROW_FOCUS][1], 2);
  441. opt_prefs.get("VisibleFocus", opt[Fl::OPTION_VISIBLE_FOCUS][1], 2);
  442. opt_prefs.get("DNDText", opt[Fl::OPTION_DND_TEXT][1], 2);
  443. opt_prefs.get("ShowTooltips", opt[Fl::OPTION_SHOW_TOOLTIPS][1], 2);
  444. }
  445. {
  446. Fl_Preferences prefs(Fl_Preferences::USER, "fltk.org", "fltk");
  447. Fl_Preferences opt_prefs(prefs, "options");
  448. opt_prefs.get("ArrowFocus", opt[Fl::OPTION_ARROW_FOCUS][0], 2);
  449. opt_prefs.get("VisibleFocus", opt[Fl::OPTION_VISIBLE_FOCUS][0], 2);
  450. opt_prefs.get("DNDText", opt[Fl::OPTION_DND_TEXT][0], 2);
  451. opt_prefs.get("ShowTooltips", opt[Fl::OPTION_SHOW_TOOLTIPS][0], 2);
  452. }
  453. refreshUI();} {}
  454. }
  455. Function {writePrefs()} {
  456. comment {write all preferences using the array} private return_type void
  457. } {
  458. code {// write all preferences using the array
  459. {
  460. Fl_Preferences prefs(Fl_Preferences::SYSTEM, "fltk.org", "fltk");
  461. Fl_Preferences opt_prefs(prefs, "options");
  462. if (opt[Fl::OPTION_ARROW_FOCUS][1]==2) opt_prefs.deleteEntry("ArrowFocus");
  463. else opt_prefs.set("ArrowFocus", opt[Fl::OPTION_ARROW_FOCUS][1]);
  464. if (opt[Fl::OPTION_VISIBLE_FOCUS][1]==2) opt_prefs.deleteEntry("VisibleFocus");
  465. else opt_prefs.set("VisibleFocus", opt[Fl::OPTION_VISIBLE_FOCUS][1]);
  466. if (opt[Fl::OPTION_DND_TEXT][1]==2) opt_prefs.deleteEntry("DNDText");
  467. else opt_prefs.set("DNDText", opt[Fl::OPTION_DND_TEXT][1]);
  468. if (opt[Fl::OPTION_SHOW_TOOLTIPS][1]==2) opt_prefs.deleteEntry("ShowTooltips");
  469. else opt_prefs.set("ShowTooltips", opt[Fl::OPTION_SHOW_TOOLTIPS][1]);
  470. }
  471. {
  472. Fl_Preferences prefs(Fl_Preferences::USER, "fltk.org", "fltk");
  473. Fl_Preferences opt_prefs(prefs, "options");
  474. if (opt[Fl::OPTION_ARROW_FOCUS][0]==2) opt_prefs.deleteEntry("ArrowFocus");
  475. else opt_prefs.set("ArrowFocus", opt[Fl::OPTION_ARROW_FOCUS][0]);
  476. if (opt[Fl::OPTION_VISIBLE_FOCUS][0]==2) opt_prefs.deleteEntry("VisibleFocus");
  477. else opt_prefs.set("VisibleFocus", opt[Fl::OPTION_VISIBLE_FOCUS][0]);
  478. if (opt[Fl::OPTION_DND_TEXT][0]==2) opt_prefs.deleteEntry("DNDText");
  479. else opt_prefs.set("DNDText", opt[Fl::OPTION_DND_TEXT][0]);
  480. if (opt[Fl::OPTION_SHOW_TOOLTIPS][0]==2) opt_prefs.deleteEntry("ShowTooltips");
  481. else opt_prefs.set("ShowTooltips", opt[Fl::OPTION_SHOW_TOOLTIPS][0]);
  482. }} {}
  483. }
  484. Function {show_global_settings_window()} {open return_type void
  485. } {
  486. code {if (!global_settings_window)
  487. make_global_settings_window();
  488. readPrefs();
  489. refreshUI();
  490. fl_message(
  491. "WARNING!\\n\\n"
  492. "The following dialog changes the user interface behavior\\n"
  493. "of ALL FLTK applications, for the current user, or for \\n"
  494. "ALL users on this machine.\\n\\n"
  495. "Please choose these settings carefully, or reset\\n"
  496. "user and system settings to \\"default\\".");
  497. global_settings_window->show();} {selected
  498. }
  499. }
  500. Function {make_global_settings_window()} {} {
  501. Fl_Window global_settings_window {
  502. label {FLTK Preferences} open
  503. xywh {444 220 403 317} type Double color 50 visible
  504. } {
  505. Fl_Group {} {
  506. label {Keyboard Focus Options} open
  507. xywh {10 10 380 100} box GTK_DOWN_BOX labelfont 2 align 21
  508. } {
  509. Fl_Choice wVisibleFocus {
  510. label {Visible Keyboard Focus:}
  511. callback {int mode = wUserOrSystem->value();
  512. opt[Fl::OPTION_VISIBLE_FOCUS][mode] = wVisibleFocus->value();} open
  513. tooltip {OPTION_VISIBLE_FOCUS
  514. If visible focus is switched on, FLTK will draw a dotted rectangle inside the widget that will receive the next keystroke. If switched off, no such indicator will be drawn and keyboard navigation is disabled.
  515. Default is on.} xywh {245 40 100 25} down_box BORDER_BOX
  516. } {
  517. MenuItem {} {
  518. label off
  519. user_data 0 user_data_type long
  520. xywh {10 10 31 20}
  521. }
  522. MenuItem {} {
  523. label on
  524. user_data 1 user_data_type long
  525. xywh {10 10 31 20} divider
  526. }
  527. MenuItem {} {
  528. label default
  529. user_data 2 user_data_type long
  530. xywh {10 10 31 20}
  531. }
  532. }
  533. Fl_Choice wArrowFocus {
  534. label {Arrow Keys move Focus:}
  535. callback {int mode = wUserOrSystem->value();
  536. opt[Fl::OPTION_ARROW_FOCUS][mode] = wArrowFocus->value();} open
  537. tooltip {OPTION_ARROW_FOCUS
  538. When switched on, moving the text cursor beyond the start or end of the text in a text widget will change focus to the next widget. When switched off, the cursor will stop at the end of the text. Pressing Tab or Ctrl-Tab will advance the keyboard focus. Switch this on, if you want the old behavior of FLTK 1.1.
  539. Default is off.} xywh {245 75 100 25} down_box BORDER_BOX
  540. } {
  541. MenuItem {} {
  542. label off
  543. user_data 0 user_data_type long
  544. xywh {0 0 31 20}
  545. }
  546. MenuItem {} {
  547. label on
  548. user_data 1 user_data_type long
  549. xywh {0 0 31 20} divider
  550. }
  551. MenuItem {} {
  552. label default
  553. user_data 2 user_data_type long
  554. xywh {0 0 31 20}
  555. }
  556. }
  557. }
  558. Fl_Group {} {
  559. label {Tooltip Options} open
  560. xywh {10 120 380 65} box GTK_DOWN_BOX labelfont 2 align 21
  561. } {
  562. Fl_Choice wShowTooltips {
  563. label {Show Tooltips:}
  564. callback {int mode = wUserOrSystem->value();
  565. opt[Fl::OPTION_SHOW_TOOLTIPS][mode] = wShowTooltips->value();} open
  566. tooltip {OPTION_SHOW_TOOLTIPS
  567. If tooltips are enabled, hovering the mouse over a widget with a tooltip text will open a little tooltip window until the mouse leaves the widget. If disabled, no tooltip is shown.
  568. Default is on.} xywh {245 150 100 25} down_box BORDER_BOX
  569. } {
  570. MenuItem {} {
  571. label off
  572. user_data 0 user_data_type long
  573. xywh {10 10 31 20}
  574. }
  575. MenuItem {} {
  576. label on
  577. user_data 1 user_data_type long
  578. xywh {10 10 31 20} divider
  579. }
  580. MenuItem {} {
  581. label default
  582. user_data 2 user_data_type long
  583. xywh {10 10 31 20}
  584. }
  585. }
  586. }
  587. Fl_Group {} {
  588. label {Drag And Drop Options} open
  589. xywh {10 194 380 66} box GTK_DOWN_BOX labelfont 2 align 21
  590. } {
  591. Fl_Choice wDNDText {
  592. label {Allow dragging Text:}
  593. callback {int mode = wUserOrSystem->value();
  594. opt[Fl::OPTION_DND_TEXT][mode] = wDNDText->value();} open
  595. tooltip {OPTION_DND_TEXT
  596. If text drag-and-drop is enabled, the user can select and drag text from any text widget. If disabled, no dragging is possible, however dropping text from other applications still works.
  597. Default is on.} xywh {245 225 100 25} down_box BORDER_BOX
  598. } {
  599. MenuItem {} {
  600. label off
  601. user_data 0 user_data_type long
  602. xywh {30 30 31 20}
  603. }
  604. MenuItem {} {
  605. label on
  606. user_data 1 user_data_type long
  607. xywh {30 30 31 20} divider
  608. }
  609. MenuItem {} {
  610. label default
  611. user_data 2 user_data_type long
  612. xywh {30 30 31 20}
  613. }
  614. }
  615. }
  616. Fl_Choice wUserOrSystem {
  617. callback {refreshUI();} open
  618. tooltip {Change settings for the current user, or default values for all users of this computer. Individual users can override system options, if they set their options to specific values (not 'default').} xywh {14 275 141 25} down_box BORDER_BOX
  619. } {
  620. MenuItem {} {
  621. label {User Settings}
  622. user_data 0 user_data_type long
  623. xywh {0 0 31 20}
  624. }
  625. MenuItem {} {
  626. label {System Settings}
  627. user_data 1 user_data_type long
  628. xywh {0 0 31 20}
  629. }
  630. }
  631. Fl_Button {} {
  632. label Cancel
  633. callback {global_settings_window->hide();}
  634. xywh {230 275 75 25}
  635. }
  636. Fl_Button {} {
  637. label OK
  638. callback {writePrefs();
  639. global_settings_window->hide();}
  640. xywh {315 275 75 25}
  641. }
  642. }
  643. code {readPrefs();
  644. Fl::option(Fl::OPTION_SHOW_TOOLTIPS,1); // make sure tooltips are on !} {}
  645. }
  646. comment {
  647. //
  648. // End of "$Id: alignment_panel.fl 8089 2010-12-20 22:19:24Z matt $".
  649. //} {in_source in_header
  650. }