Steam Fort 0.5
Functions | Variables

src/design.cpp File Reference

#include "gui/gui.hpp"
#include "design.hpp"
#include "ui.hpp"
#include "main.hpp"
#include <iostream>
#include <stdio.h>

Functions

void partClb (Widget *w, void *data)
 Assign selected part to design.
void locationClb (Widget *w, void *data)
 Show available parts for selected location.
void clearClb (Widget *w, void *data)
 Clear all design.
void robotClb (Widget *w, void *data)
 Create data for construct selected robot.
void buildDesignUI ()
 Build design robots user interface.
void setVisibleDesign (bool visible)
 Show/hide design robots menu.

Variables

Container * designmenu = new Container(0, 0, 100, 75)
HBox * stats = new HBox(35, 30, 1)
VBox * parts = new VBox(25, 10, 1)
ToolBar * availparts = new ToolBar(55, 7, "Available parts")
Label * message = new Label(35, 2, "")
Label * lblparts [5]
Label * lblstats [5]
string valparts [5]
int valstats [5]

Function Documentation

void buildDesignUI ( )

Build design robots user interface.

void clearClb ( Widget *  w,
void *  data 
)

Clear all design.

Parameters:
wUnused.
dataUnused.
void locationClb ( Widget *  w,
void *  data 
)

Show available parts for selected location.

Parameters:
wUnused.
dataName of location.
void partClb ( Widget *  w,
void *  data 
)

Assign selected part to design.

Parameters:
wUnused.
dataName of location and name of robot part.
void robotClb ( Widget *  w,
void *  data 
)

Create data for construct selected robot.

Parameters:
wUnused.
dataUnused.
void setVisibleDesign ( bool  visible)

Show/hide design robots menu.

Parameters:
visibleIf true, show menu, otherwise hide.

Variable Documentation

ToolBar* availparts = new ToolBar(55, 7, "Available parts")
Container* designmenu = new Container(0, 0, 100, 75)
Label* lblparts[5]
Label* lblstats[5]
Label* message = new Label(35, 2, "")
VBox* parts = new VBox(25, 10, 1)
HBox* stats = new HBox(35, 30, 1)
string valparts[5]
int valstats[5]
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines