117 void mkItem(
const char* name,
bool dynamic, std::string value);
127 void mkItem(
const char* name,
bool dynamic,
unsigned value);
137 void mkItem(
const char* name,
bool dynamic,
int value);
147 void mkItem(
const char* name,
bool dynamic,
long long int value);
157 void mkItem(
const char* name,
bool dynamic,
double value);
168 long onSimStep(FXObject*, FXSelector,
void*);
201 window->updateTable();
231 std::vector<GUIParameterTableItemInterface*>
myItems;
Instance of a single line in a parameter window.
Interface to a single line in a parameter window.
A window containing a gl-object's parameter.
long onRightButtonPress(FXObject *, FXSelector, void *)
Shows a popup.
GUIMainWindow * myApplication
The main application window.
static FXMutex myGlobalContainerLock
The mutex used to avoid concurrent updates of the instance container.
void removeObject(GUIGlObject *const o)
Lets this window know the object shown is being deleted.
GUIParameterTableWindow(GUIMainWindow &app, GUIGlObject &o)
Constructor.
static int numParams(const GUIGlObject *obj)
returns the number of parameters if obj is Parameterised and 0 otherwise
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
int myTrackerY
y-position for opening new tracker window
long onLeftBtnPress(FXObject *, FXSelector, void *)
directly opens tracker when clicking on last column
long onTableSelected(FXObject *, FXSelector, void *)
Does nothing.
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
FXMutex myLock
A lock assuring save updates in case of object deletion.
std::vector< GUIParameterTableItemInterface * > myItems
The list of table rows.
unsigned myCurrentPos
The index of the next row to add - used while building.
long onTableDeselected(FXObject *, FXSelector, void *)
Does nothing.
~GUIParameterTableWindow()
Destructor.
FXTable * myTable
The table to display the information in.
static std::vector< GUIParameterTableWindow * > myContainer
The container of items that shall be updated.
long onSimStep(FXObject *, FXSelector, void *)
Updates the table due to a simulation step.
void updateTable()
Updates the table.
static void updateAll()
Updates all instances.
GUIGlObject * myObject
The object to get the information from.
An upper class for objects with additional parameters.