Mercurial > fife-parpg
annotate demos/pychan_demo/gui/colortester.xml @ 697:ecaa4d98f05f tip
Abstracted the GUI code and refactored the GUIChan-specific code into its own module.
* Most of the GUIChan code has been refactored into its own gui/guichan module. However, references to the GuiFont class still persist in the Engine and GuiManager code and these will need further refactoring.
* GuiManager is now an abstract base class which specific implementations (e.g. GUIChan) should subclass.
* The GUIChan GUI code is now a concrete implementation of GuiManager, most of which is in the new GuiChanGuiManager class.
* The GUI code in the Console class has been refactored out of the Console and into the GUIChan module as its own GuiChanConsoleWidget class. The rest of the Console class related to executing commands was left largely unchanged.
* Existing client code may need to downcast the GuiManager pointer received from FIFE::Engine::getGuiManager() to GuiChanGuiManager, since not all functionality is represented in the GuiManager abstract base class. Python client code can use the new GuiChanGuiManager.castTo static method for this purpose.
author | M. George Hansen <technopolitica@gmail.com> |
---|---|
date | Sat, 18 Jun 2011 00:28:40 -1000 |
parents | 59c92d10d7bc |
children |
rev | line source |
---|---|
438
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
1 <Window title="Colortester"> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
2 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
3 <VBox min_size="200,300"> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
4 <Label text="Example widgets"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
5 <Slider name="example1" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
6 <CheckBox text="Checkbox" name="example2" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
7 <Button text="Button" name="example3" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
8 <VBox size="150,25" min_size="150,25" max_size="150,25" opaque="1" name="example4"><Label text="VBox" /></VBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
9 <RadioButton name="example5" text="RadioButton" group="radio2"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
10 <ScrollArea min_size="150,25" horizontal_scrollbar="0" name="example6"> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
11 <TextBox text="ScrollArea" min_size="100,100" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
12 </ScrollArea> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
13 <TextBox text="TextBox" name="example7" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
14 <TextField text="TextField" name="example8" /> |
590
59c92d10d7bc
- added label to colortester
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
438
diff
changeset
|
15 <Label text="Label" name="example9" /> |
438
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
16 </VBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
17 <Spacer /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
18 <VBox name="Slider_wrapper"> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
19 <VBox name="Base_colors"> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
20 <Label text="Move the sliders to change the base_color attribute"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
21 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
22 <Slider name="base_rslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
23 <Label text="R" size="25,15" min_size="25,15" max_size="25,15" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
24 <Label text="" name="base_rvalue" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
25 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
26 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
27 <Slider name="base_gslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
28 <Label text="G" size="25,15" min_size="25,15" max_size="25,15" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
29 <Label text="" name="base_gvalue" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
30 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
31 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
32 <Slider name="base_bslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
33 <Label text="B" size="25,15" min_size="25,15" max_size="25,15" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
34 <Label text="" name="base_bvalue" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
35 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
36 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
37 <Slider name="base_aslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
38 <Label text="A" size="25,15" min_size="25,15" max_size="25,15" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
39 <Label text="" name="base_avalue" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
40 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
41 </VBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
42 <VBox name="Background_colors"> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
43 <Label text="Move the sliders to change the background_color attribute"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
44 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
45 <Slider name="background_rslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
46 <Label text="R" size="25,15" min_size="25,15" max_size="25,15" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
47 <Label text="" name="background_rvalue" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
48 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
49 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
50 <Slider name="background_gslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
51 <Label text="G" size="25,15" min_size="25,15" max_size="25,15" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
52 <Label text="" name="background_gvalue" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
53 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
54 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
55 <Slider name="background_bslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
56 <Label text="B" size="25,15" min_size="25,15" max_size="25,15" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
57 <Label text="" name="background_bvalue" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
58 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
59 <HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
60 <Slider name="background_aslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
61 <Label text="A" size="25,15" min_size="25,15" max_size="25,15" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
62 <Label text="" name="background_avalue" /> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
63 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
64 </VBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
65 </VBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
66 </HBox> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
67 |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
68 <Button name="closeButton" text="Close"/> |
db994c01cc9a
- added color tester app to pychan demo
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
69 </Window> |