follow my heart...
分类: C/C++
2006-09-12 13:37:12
FLTK WidgetsFLTK includes all of the usual widgets to develop your applications, and new widgets can be created easily through C++ subclassing. All widgets support keyboard shortcuts and can be controlled both via the keyboard or mouse. The class supports push, check (), round (), and "light" () button styles; all styles can operate in momentary (press and release), toggle (press on, press off), or radio (press one of many) modes, so it is possible to create almost any kind of button from a single widget. The , , and widgets provide simple to complex text input and output facilities. The Fl_Text_Display widget is based on a C++ version of the software's extensible text editor API. The class provides a variety of numeric input controls including scrollbars () and sliders (). The class provides several menu-based controls including menubars () and combo boxes (). The class is the basis for list controls. The widget shown at right lists lines of plain text. Other widgets list files, widgets, and so forth. User interfaces can be organized using scroll areas (), tabs (), tiles (), and wizards (). FLTK also provides standard dialogs for alerts, button choosers, color choosers, file choosers, help browsers, messages, passwords, and text input. Finally, FLTK 1.1.x offers two appearance schemes: "standard" and "plastic". FLTK 2.0 will extend this to include platform schemes as well as user-defined schemes. Colors and fonts automatically adjust to the current user preferences. |
Fast Light User-Interface Designer (FLUID)FLUID allows you to develop complex applications quickly. You can build complete applications within FLUID, drawing your user-interface and creating functions, classes, and variables as needed. FLUID creates C++ source and header files that can be compiled by themselves or included as part of a larger project. In fact, several of the FLTK dialog widgets were created and are maintained using FLUID. The main FLUID window (at right) shows the widget browser along with any classes, functions, and variables you have. You can create simple user-interfaces using a function and global widget variables or define C++ classes for a fully encapsulated user-interface. |
New items in the widget browser are added by via pop-up menus or the widget bin (above) and can be placed in windows by clicking and dragging. Each widget's attributes are controlled through the widget attribute panel (right). Class, function, and variable definitions are created using simple dialogs like the one below: The user-interface was done completely with FLUID and is pictured below. |