comparison test/fltk_browser.cc @ 1855:8178c7976185

might as well make Fl_Browser test compile (not currently used)
author corvid <corvid@lavabit.com>
date Sat, 22 Jan 2011 04:19:44 +0000
parents 02ef25700865
children bfb8bc9ddf62
comparison
equal deleted inserted replaced
1854:d27439fee162 1855:8178c7976185
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20 20
21 21
22 #include <fltk/Window.h> 22 #include <FL/Fl_Window.H>
23 #include <fltk/Browser.h> 23 #include <FL/Fl_Browser.H>
24 #include <fltk/MultiBrowser.h> 24 #include <FL/Fl.H>
25 #include <fltk/Item.h>
26 #include <fltk/run.h>
27
28 using namespace fltk;
29 25
30 int main (int argc, char *argv[]) 26 int main (int argc, char *argv[])
31 { 27 {
32 Window *window = new Window (300, 300, "FLTK Browser"); 28 Fl_Window *window = new Fl_Window (300, 300, "FLTK Browser");
33 window->begin (); 29 window->begin ();
34 Browser *browser = new MultiBrowser (0, 0, 300, 300); 30 Fl_Browser *browser = new Fl_Browser (0, 0, 300, 300);
35 browser->begin (); 31 browser->begin ();
36 32
37 for (int i = 0; i < 10; i++) { 33 for (int i = 0; i < 10; i++) {
38 new Item ("first"); 34 browser->add("first");
39 new Item ("second"); 35 browser->add("second");
40 new Item ("third"); 36 browser->add("third");
41 } 37 }
42 38
43 window->resizable(browser); 39 window->resizable(browser);
44 window->show(); 40 window->show();
45 return run(); 41 return Fl::run();
46 } 42 }