19 #ifndef GUIParameterTableWindow_h 20 #define GUIParameterTableWindow_h 122 void mkItem(
const char* name,
bool dynamic, std::string value);
132 void mkItem(
const char* name,
bool dynamic,
unsigned value);
142 void mkItem(
const char* name,
bool dynamic,
int value);
152 void mkItem(
const char* name,
bool dynamic,
long long int value);
162 void mkItem(
const char* name,
bool dynamic,
double value);
173 long onSimStep(FXObject*, FXSelector,
void*);
230 std::vector<GUIParameterTableItemInterface*>
myItems;
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
void removeObject(GUIGlObject *const o)
Lets this window know the object shown is being deleted.
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
unsigned myCurrentPos
The index of the next row to add - used while building.
FXTable * myTable
The table to display the information in.
GUIMainWindow * myApplication
The main application window.
void updateTable()
Updates the table.
static MFXMutex myGlobalContainerLock
The mutex used to avoid concurrent updates of the instance container.
static int numParams(const GUIGlObject *obj)
returns the number of parameters if obj is Parameterised and 0 otherwise
Interface to a single line in a parameter window.
static std::vector< GUIParameterTableWindow * > myContainer
The container of items that shall be updated.
long onRightButtonPress(FXObject *, FXSelector, void *)
Shows a popup.
An upper class for objects with additional parameters.
long onSimStep(FXObject *, FXSelector, void *)
Updates the table due to a simulation step.
long onTableDeselected(FXObject *, FXSelector, void *)
Does nothing.
~GUIParameterTableWindow()
Destructor.
GUIParameterTableWindow()
FOX needs this.
MFXMutex myLock
A lock assuring save updates in case of object deletion.
A mutex encapsulator which locks/unlocks the given mutex on construction/destruction, respectively.
GUIGlObject * myObject
The object to get the information from.
static void updateAll()
Updates all instances.
Instance of a single line in a parameter window.
long onTableSelected(FXObject *, FXSelector, void *)
Does nothing.
std::vector< GUIParameterTableItemInterface * > myItems
The list of table rows.
A window containing a gl-object's parameter.