55 void setItemText(FXint row, FXint column,
const std::string& text);
58 std::string
getItemText(
const int row,
const int column)
const;
70 void setColumnLabel(
const int column,
const std::string& text,
const std::string& tooltip =
"");
119 Cell(
MFXDecalsTable* decalsTable, FXLabel* indexLabel, FXLabel* indexLabelBold,
int col,
int row);
134 bool hasFocus()
const;
140 FXTextField* getTextField()
const;
143 FXLabel* getIndexLabel()
const;
146 FXButton* getButton();
149 FXCheckButton* getCheckButton();
152 FXRealSpinner* getSpinner();
155 void showIndexLabelNormal();
158 void showIndexLabelBold();
167 char getType()
const;
174 FXTextField* myTextField =
nullptr;
177 FXLabel* myIndexLabel =
nullptr;
180 FXLabel* myIndexLabelBold =
nullptr;
183 FXButton* myButton =
nullptr;
186 FXRealSpinner* mySpinner =
nullptr;
189 FXCheckButton* myCheckButton =
nullptr;
221 void setColumnLabel(
const std::string& text,
const std::string& tooltip);
260 std::string
getText(
int index)
const;
263 void setText(
int index,
const std::string& text)
const;
266 const std::vector<Cell*>&
getCells()
const;
The dialog to change the view (gui) settings.
const int myCol
column index
char getType() const
get column type
MFXLabelTooltip * myTopLabel
column top tooltip label
FXVerticalFrame * myVerticalCellFrame
vertical frame
const char myType
column type
FXVerticalFrame * getVerticalCellFrame() const
get vertical cell frame
const int myIndex
column index
void setColumnLabel(const std::string &text, const std::string &tooltip)
set column label
void adjustColumnWidth()
adjust column width
Column()
default constructor
MFXDecalsTable * myTable
pointer to table
FXVerticalFrame * myVerticalFrame
vertical frame
FXString getColumnLabel() const
get column label
std::vector< Cell * > myCells
list wtih cells
MFXDecalsTable * myTable
poiner to table parent
void setText(int index, const std::string &text) const
set text
void disableButtons()
disable row buttons
const std::vector< Cell * > & getCells() const
get cells
std::string getText(int index) const
get text
MFXDecalsTable & operator=(const MFXDecalsTable &)=delete
Invalidated assignment operator.
bool moveFocus()
move focus to current row
long onCmdAddRow(FXObject *, FXSelector, void *)
called when add row button is pressed
std::vector< Column * > myColumns
columns
int getCurrentSelectedRow() const
Get current selected row.
FXHorizontalFrame * myColumnsFrame
horizontal columns frame
int getNumRows() const
Get number of rows.
long onFocusRow(FXObject *, FXSelector, void *)
called when a row is focused
MFXDecalsTable(const MFXDecalsTable &)=delete
Invalidated duplicate constructor.
~MFXDecalsTable()
destructor (Called automatically)
long onCmdRemoveRow(FXObject *, FXSelector, void *)
called when remove row button is pressed
int myCurrentSelectedRow
current selected row
void selectRow(const int rowIndex)
Select a row.
long onCmdEditRowSpinner(FXObject *, FXSelector, void *)
called when a spinner is updated
void setItemText(FXint row, FXint column, const std::string &text)
Modify cell text.
long onCmdEditRowCheckBox(FXObject *, FXSelector, void *)
called when a checkBox is updated
FXFont * myIndexSelectedFont
font for index selected
FXButton * myAddButton
add button
void fillTable()
fill table
long onCmdEditRowString(FXObject *, FXSelector, void *)
called when a string is updated
void setColumnLabel(const int column, const std::string &text, const std::string &tooltip="")
Change column header text.
FXFont * myIndexFont
font for index
std::vector< Row * > myRows
rows
std::string getItemText(const int row, const int column) const
Return cell text.
void clearTable()
clear table
void updateIndexLabel()
update index labels
long onCmdKeyPress(FXObject *, FXSelector, void *)
called when a key is pressed
GUIDialog_ViewSettings * myDialogViewSettings
@frame pointer to GUIDialog_ViewSettings parent
long onCmdOpenDecal(FXObject *, FXSelector, void *)
called when open decal button is pressed
long onUpdAddRow(FXObject *, FXSelector, void *)
update add row button