Mercurial > dillo_port1.3
comparison test/fltk_browser.cc @ 347:e5955ab8dafb
- Moved the dw2 tree into dillo2's tree.
author | jcid |
---|---|
date | Wed, 24 Sep 2008 18:44:40 +0200 |
parents | |
children | d7dbd3dcfa38 |
comparison
equal
deleted
inserted
replaced
346:05228bc9f399 | 347:e5955ab8dafb |
---|---|
1 /* | |
2 * Dillo Widget | |
3 * | |
4 * Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org> | |
5 * | |
6 * This program is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 3 of the License, or | |
9 * (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
19 */ | |
20 | |
21 | |
22 | |
23 #include <fltk/Window.h> | |
24 #include <fltk/Browser.h> | |
25 #include <fltk/MultiBrowser.h> | |
26 #include <fltk/Item.h> | |
27 #include <fltk/run.h> | |
28 | |
29 using namespace fltk; | |
30 | |
31 int main (int argc, char *argv[]) | |
32 { | |
33 Window *window = new Window (300, 300, "FLTK Browser"); | |
34 window->begin (); | |
35 Browser *browser = new MultiBrowser (0, 0, 300, 300); | |
36 browser->begin (); | |
37 | |
38 for (int i = 0; i < 10; i++) { | |
39 new Item ("first"); | |
40 new Item ("second"); | |
41 new Item ("third"); | |
42 } | |
43 | |
44 window->resizable(browser); | |
45 window->show(); | |
46 return run(); | |
47 } |