af7f485e06
This is an attempt to unify the code for all build systems (CMake, autotools with make), platforms (operating systems) and toolchains (make + gcc/clang, Visual Studio IDE, Xcode ...) to avoid duplicate code and clarify the differences for future devs and to simplify maintenance. The goal is to minimize the platform specific code. Much of the new code are comments to describe the different situations. The main program does now all the "hard work" to construct the paths necessary to access the other applications and data files. Use macOS specific code to determine the application path (app_path) in main() instead of function dobut(), when test apps are activated. Remove obsolete comments and dead code. Tested on Windows and Linux with both autotools/configure/make and CMake with make (Linux + MinGW), Visual Studio.
109 lines
2.5 KiB
Plaintext
109 lines
2.5 KiB
Plaintext
# Menu description file for the generic demo program
|
|
#
|
|
# Each line consists of three fields, separated by :
|
|
#
|
|
# - menu name : To which the item belongs (starts with @)
|
|
# - item name : Placed on button. (use \n for newline)
|
|
# - command name: To be executed. Use a menu name to define a submenu.
|
|
#
|
|
# @main indicates the main menu.
|
|
#
|
|
|
|
@main:Widget\nTests...:@x
|
|
@x:Fl_Browser:browser browser.cxx
|
|
@x:Fl_Input:input
|
|
@x:Fl_Output:output
|
|
@x:Fl_Button:radio
|
|
@x:Fl_Tabs:tabs
|
|
@x:Fl_Tile:tile
|
|
@x:Fl_Scroll:scroll
|
|
@x:Fl_Pack:pack
|
|
@x:more...:@xm
|
|
@xm:Fl_Menu:menubar
|
|
@xm:Fl_Table:table
|
|
@xm:Fl_Tree:tree
|
|
|
|
@main:Window\nTests...:@w
|
|
@w:overlay:overlay
|
|
@w:subwindow:subwindow
|
|
@w:double\nbuffer:doublebuffer
|
|
@w:GL window:cube
|
|
@w:GL overlay:gl_overlay
|
|
@w:iconize:iconize
|
|
@w:fullscreen:fullscreen
|
|
@w:resizable:resizebox
|
|
@w:resize:resize
|
|
|
|
@main:Drawing\nTests...:@d
|
|
@d:unit tests:unittests
|
|
@d:Images...:@di
|
|
@di:Fl_Bitmap:bitmap
|
|
@di:Fl_Pixmap:pixmap
|
|
@di:Fl_RGB\n_Image:image
|
|
@di:Fl_Shared\n_Image:pixmap_browser
|
|
@di:Fl_Tiled\n_Image:tiled_image
|
|
@di:transparency:animated
|
|
@d:cursor:cursor
|
|
@d:labels:label
|
|
@d:offscreen:offscreen
|
|
@d:rotated text:rotated_text
|
|
@d:fl_arc:arc
|
|
@d:fl_curve:curve
|
|
@d:fl_line_style:line_style
|
|
|
|
@main:Events...:@u
|
|
@u:navigation:navigation
|
|
@u:minimum update:minimum
|
|
@u:keyboard:keyboard
|
|
@u:fast && slow widgets:fast_slow
|
|
@u:inactive:inactive
|
|
|
|
@main:Fluid\n(UI design tool):fluid valuators.fl
|
|
|
|
@main:Cool\nDemos...:@e
|
|
@e:X Color\nBrowser:colbrowser
|
|
@e:Mandelbrot:mandelbrot
|
|
@e:Fractals:fractals
|
|
@e:Puzzle:glpuzzle
|
|
@e:Block\nAttack!:blocks
|
|
@e:Checkers:checkers
|
|
@e:Sudoku:sudoku
|
|
@e:Print\nsupport:device
|
|
|
|
@main:Other\nTests...:@o
|
|
@o:Color Choosers:color_chooser
|
|
@o:File Chooser:file_chooser
|
|
@o:Native File Chooser:native-filechooser
|
|
@o:Font Tests...:@of
|
|
@of:Fonts:fonts
|
|
@of:UTF-8:utf8
|
|
@o:HelpDialog:help_dialog help_dialog.html
|
|
@o:Input Choice:input_choice
|
|
@o:Preferences:preferences
|
|
@o:Threading:threads
|
|
@o:XForms Emulation:forms
|
|
|
|
@main:Tutorial\nfrom\nManual...:@j
|
|
@j:ask\n(modified):ask
|
|
@j:button:button
|
|
@j:CubeView:CubeView
|
|
@j:editor:editor editor.cxx
|
|
@j:hello:hello
|
|
@j:shape:shape
|
|
|
|
@main:Images\nfor\nManual...:@i
|
|
@i:valuators:valuators
|
|
@i:symbols:symbols
|
|
@i:buttons:buttons
|
|
@i:clock:clock
|
|
@i:popups:message
|
|
@i:boxtypes:boxtype
|
|
@i:Resize Examples\n...:@ir
|
|
@ir:Example\n1:resize-example1
|
|
@ir:Example\n2:resize-example2
|
|
@ir:Example\n3a:resize-example3a
|
|
@ir:Example\n3b:resize-example3b
|
|
@ir:Example\n3c:resize-example3c
|
|
@ir:Example\n4a:resize-example4a
|
|
@ir:Example\n4b:resize-example4b
|