view tools/editor/gui/cameradialog.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 64738befdf3b
children
line wrap: on
line source

<Panel title="Camera Editor" min_size="250, 100">
	<VBox hexpand="1">
		<HBox>
			<!-- Should be replaced with a dropdown box containing open maps -->
			<Label name="mapLabel" text="Map ID:" min_size="100, 10" />
			<TextField name="mapBox" min_size="100, 10" />
		</HBox>
		<HBox>
			<!-- Should be replaced with a dropdown box containing available layers in map -->
			<Label name="layerLabel" text="Layer ID:" min_size="100, 10" />
			<TextField name="layerBox" min_size="100, 10" />
		</HBox>

		<Spacer fixed_size="10" />
		<HBox>
			<Spacer />
			<Label text="Camera settings" />
			<Spacer />
		</HBox>
		<HBox>
			<Label name="idLabel" text="Camera ID:" min_size="100, 10" />
			<TextField name="idBox" min_size="100, 10" />
		</HBox>
		<HBox>
			<Label name="viewLabel" text="Viewport ('x,y,w,h'):" min_size="100, 10" />
			<TextField name="viewBox" text="0,0,640,480" min_size="100, 10" />
		</HBox>
		
		<HBox>
			<Label name="refLabel" text="Reference cell:" min_size="100, 10" />
			<Label name="refWLabel" text="Width:" hexpand="0" />
			<TextField name="refwBox" min_size="40, 10" />
		</HBox>
		<HBox>
			<Spacer min_size="100" />
			<Label name="refHLabel" text="Height:" hexpand="0" />
			<TextField name="refhBox" min_size="40, 10" />
		</HBox>
		<HBox>
			<Label name="rotLabel" text="Rotation:" min_size="100, 10" />
			<TextField name="rotBox" text="0" min_size="100, 10" />
		</HBox>
		<HBox>
			<Label name="tiltLabel" text="Tilt:" min_size="100, 10" />
			<TextField name="tiltBox" text="0" min_size="100, 10" />
		</HBox>
	</VBox>
	<Spacer />
	<HBox>
		<Button name="okButton" text="OK"/>
		<Button name="cancelButton" text="Cancel"/>
	</HBox>
</Panel>