120 void mkItem(
const char* name,
bool dynamic, std::string value);
130 void mkItem(
const char* name,
bool dynamic,
unsigned value);
140 void mkItem(
const char* name,
bool dynamic,
int value);
150 void mkItem(
const char* name,
bool dynamic,
long long int value);
160 void mkItem(
const char* name,
bool dynamic,
double value);
171 long onSimStep(FXObject*, FXSelector,
void*);
204 window->updateTable();
234 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.
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.
void checkFont(const std::string &text)
ensure that the font covers the given text
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.
Persists window position in the registry.
An upper class for objects with additional parameters.