Distribution table widget. More...
#include <StdMeshersGUI_DistrTable.h>
Data Structures | |
class | SpinBoxDelegate |
Custom item delegate (uses double spin box to edit table item) More... | |
class | Table |
Table function widget. More... | |
Public Types | |
enum | TableButton { InsertRowBtn, RemoveRowBtn } |
Signals | |
void | valueChanged (int, int) |
void | currentChanged (int, int) |
Public Member Functions | |
StdMeshersGUI_DistrTableFrame (QWidget *=0) | |
~StdMeshersGUI_DistrTableFrame () | |
void | showButton (const TableButton, const bool) |
bool | isButtonShown (const TableButton) const |
void | data (DataArray &) const |
void | setData (const DataArray &) |
void | setFuncMinValue (double) |
Private Types | |
enum | { ArgColumn, FuncColumn } |
typedef SMESH::double_array | DataArray |
Private Slots | |
void | onInsert () |
void | onRemove () |
Private Member Functions | |
QPushButton * | button (const TableButton) const |
Private Attributes | |
QMap< int, QPushButton * > | myButtons |
Table * | myTable |
Distribution table widget.
|
private |
StdMeshersGUI_DistrTableFrame::StdMeshersGUI_DistrTableFrame | ( | QWidget * | parent = 0 | ) |
References currentChanged(), InsertRowBtn, main(), myButtons, myTable, onInsert(), onRemove(), RemoveRowBtn, SPACING, and valueChanged().
StdMeshersGUI_DistrTableFrame::~StdMeshersGUI_DistrTableFrame | ( | ) |
|
private |
References myButtons.
Referenced by isButtonShown(), and showButton().
Referenced by StdMeshersGUI_DistrTableFrame().
void StdMeshersGUI_DistrTableFrame::data | ( | DataArray & | array | ) | const |
References MESHCUT::d, StdMeshersGUI_DistrTableFrame::Table::data(), myTable, and sortData().
Referenced by StdMeshersGUI_NbSegmentsCreator::onValueChanged(), and StdMeshersGUI_NbSegmentsCreator::readParamsFromWidgets().
bool StdMeshersGUI_DistrTableFrame::isButtonShown | ( | const TableButton | b | ) | const |
References button().
|
privateslot |
References StdMeshersGUI_DistrTableFrame::Table::addRow(), and myTable.
Referenced by StdMeshersGUI_DistrTableFrame().
|
privateslot |
References StdMeshersGUI_DistrTableFrame::Table::deleteRow(), and myTable.
Referenced by StdMeshersGUI_DistrTableFrame().
void StdMeshersGUI_DistrTableFrame::setData | ( | const DataArray & | array | ) |
References MESHCUT::d, myTable, StdMeshersGUI_DistrTableFrame::Table::setData(), and sortData().
Referenced by StdMeshersGUI_NbSegmentsCreator::onValueChanged(), and StdMeshersGUI_NbSegmentsCreator::retrieveParams().
void StdMeshersGUI_DistrTableFrame::setFuncMinValue | ( | double | v | ) |
References myTable, and StdMeshersGUI_DistrTableFrame::Table::setFuncMinValue().
Referenced by StdMeshersGUI_NbSegmentsCreator::onValueChanged(), and StdMeshersGUI_NbSegmentsCreator::retrieveParams().
void StdMeshersGUI_DistrTableFrame::showButton | ( | const TableButton | b, |
const bool | on | ||
) |
References button().
Referenced by StdMeshersGUI_DistrTableFrame().
|
private |
Referenced by button(), and StdMeshersGUI_DistrTableFrame().
|
private |