diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-09-26 15:01:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-26 16:01:03 +0200 |
| commit | 71b8e77935bc9b0a3afc97d322037f2549165d2f (patch) | |
| tree | a7e5e0cfec35b0ab30d6369d7b9ecd9eb3ddd48b /test | |
| parent | 2bbdd4946561444fffba2bf047b0926a2cf9f5fe (diff) | |
FLUID: adds greatly enhanced Shell Commands (#774)
The user can add an arbitrary number of highly configurable
shell commands through the setting panel. The commands can
be saved as user preferences, inside the .fl file, or exported
to an external file. Shell scripts can be limited to individual
platforms, can have shortcut keys, etc. .
* documentation will follow
* support to call `fltk-config` will follow
Diffstat (limited to 'test')
| -rw-r--r-- | test/tree.fl | 6 | ||||
| -rw-r--r-- | test/unittest_core.cxx | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/test/tree.fl b/test/tree.fl index a48be0284..cb2c8803e 100644 --- a/test/tree.fl +++ b/test/tree.fl @@ -392,7 +392,7 @@ tree->clear_changed();} open tooltip {Test tree} xywh {15 22 320 539} box DOWN_BOX color 55 selection_color 15 class Fl_Tree } {} - Fl_Group {} {open selected + Fl_Group {} {open xywh {350 5 681 556} code0 {o->resizable(0);} } { @@ -780,7 +780,7 @@ Fl::visible_focus(onoff);} } } Fl_Group {} { - label {Test Operations} + label {Test Operations} open selected tooltip {These controls only affect the defaults for new items that are created. These test the Fl_Tree_Prefs methods.} xywh {350 435 330 125} box GTK_DOWN_BOX color 47 labelsize 12 } { Fl_Group showitem_box { @@ -847,7 +847,7 @@ tree->redraw();} callback {const char *filename = fl_file_chooser("Select a Preferences style Database", "Preferences(*.prefs)", 0L); if (filename) { tree->clear(); - Fl_Preferences prefs(filename, 0L, 0L); + Fl_Preferences prefs(filename, 0L, 0L, Fl_Preferences::C_LOCALE); tree->load(prefs); tree->redraw(); }} diff --git a/test/unittest_core.cxx b/test/unittest_core.cxx index 6091dd7b4..ad60d172c 100644 --- a/test/unittest_core.cxx +++ b/test/unittest_core.cxx @@ -278,7 +278,7 @@ TEST(fl_filename, relative) { r = fl_filename_relative("../foo.txt", base); EXPECT_STREQ(r.c_str(), "../foo.txt"); return true; - } +} TEST(fl_filename, absolute) { Fl_String base = "/var/tmp/somedir"; @@ -293,6 +293,7 @@ TEST(fl_filename, absolute) { return true; } + bool cb1a_ok = false, cb1b_ok = false, cb1c_ok = false; int cb1_alloc = 0; class MyString : public Fl_String { |
