annotate demos/pychan_demo/gui/dynamic.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 cdebc30c9c4a
children
rev   line source
655
cdebc30c9c4a * Made the dynamic widget test in the pychan_demo work/look a little better
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 378
diff changeset
1 <Window title="Dynamic widgets." background_image="gui/backgrounds/background.png">
378
64738befdf3b bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
2 <Label text="ClickLabel text:" />
655
cdebc30c9c4a * Made the dynamic widget test in the pychan_demo work/look a little better
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 378
diff changeset
3 <TextBox name="labelText" text="Add some text here."/>
cdebc30c9c4a * Made the dynamic widget test in the pychan_demo work/look a little better
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 378
diff changeset
4 <ScrollArea min_size="100,100" vertical_scrollbar="1">
cdebc30c9c4a * Made the dynamic widget test in the pychan_demo work/look a little better
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 378
diff changeset
5 <VBox name="labelBox" border_size="1">
cdebc30c9c4a * Made the dynamic widget test in the pychan_demo work/look a little better
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 378
diff changeset
6 </VBox>
378
64738befdf3b bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
7 </ScrollArea>
64738befdf3b bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
8 <HBox>
64738befdf3b bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
9 <Button name="addButton" text="Add one label!"/>
64738befdf3b bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
10 <Spacer />
64738befdf3b bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
11 <Button name="okButton" text="Close"/>
64738befdf3b bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
12 </HBox>
64738befdf3b bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
13 </Window>