#include <SMESHGUI_FilterLibraryDlg.h>
Enumerator |
---|
BTN_OK |
|
BTN_Apply |
|
BTN_Close |
|
BTN_Help |
|
Enumerator |
---|
ADD_TO |
|
COPY_FROM |
|
EDIT |
|
SMESHGUI_FilterLibraryDlg::SMESHGUI_FilterLibraryDlg |
( |
SMESHGUI * |
theModule, |
|
|
QWidget * |
parent, |
|
|
const QList< int > & |
theTypes, |
|
|
const int |
theMode |
|
) |
| |
SMESHGUI_FilterLibraryDlg::SMESHGUI_FilterLibraryDlg |
( |
SMESHGUI * |
theModule, |
|
|
QWidget * |
parent, |
|
|
const int |
theType, |
|
|
const int |
theMode |
|
) |
| |
SMESHGUI_FilterLibraryDlg::~SMESHGUI_FilterLibraryDlg |
( |
| ) |
|
|
virtual |
void SMESHGUI_FilterLibraryDlg::addFilterToLib |
( |
const QString & |
theName | ) |
|
|
private |
References createFilter(), SMESHGUI::desktop(), getDefaultFilterName(), SMESHGUI_FilterTable::GetType(), myCurrFilter, myCurrFilterName, myLibrary, myTable, setSelected(), and updateList().
Referenced by onAddBtnPressed(), onBrowse(), onReturnPressed(), and SetTable().
QString SMESHGUI_FilterLibraryDlg::autoExtension |
( |
const QString & |
theFileName | ) |
const |
|
private |
void SMESHGUI_FilterLibraryDlg::construct |
( |
const QList< int > & |
theTypes, |
|
|
const int |
theMode |
|
) |
| |
|
private |
QWidget * SMESHGUI_FilterLibraryDlg::createButtonFrame |
( |
QWidget * |
theParent | ) |
|
|
private |
References BTN_Apply, BTN_Close, BTN_Help, BTN_OK, MARGIN, myButtons, onApply(), onHelp(), onOk(), reject(), SPACING, and updateMainButtons().
Referenced by construct().
SMESH::Filter_ptr SMESHGUI_FilterLibraryDlg::createFilter |
( |
const int |
theType = -1 | ) |
|
|
private |
QWidget * SMESHGUI_FilterLibraryDlg::createMainFrame |
( |
QWidget * |
theParent | ) |
|
|
private |
References EDIT, SMESH::GetSelectionMgr(), MARGIN, myAddBtn, myDeleteBtn, myFileName, myListBox, myMode, myName, myNameGrp, myOpenBtn, mySMESHGUI, myTable, myTypes, onAddBtnPressed(), onBrowse(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onFilterNameChanged(), onNeedValidation(), onReturnPressed(), onSelectionDone(), SMESHGUI_FilterTable::SetEditable(), SMESHGUI_FilterTable::SetLibsEnabled(), and SPACING.
Referenced by construct().
void SMESHGUI_FilterLibraryDlg::enableMainButtons |
( |
| ) |
|
|
private |
void SMESHGUI_FilterLibraryDlg::enterEvent |
( |
QEvent * |
| ) |
|
|
private |
QStringList SMESHGUI_FilterLibraryDlg::filterWildCards |
( |
const QString & |
theFilter | ) |
const |
|
private |
QString SMESHGUI_FilterLibraryDlg::getDefaultFilterName |
( |
| ) |
const |
|
private |
QString & SMESHGUI_FilterLibraryDlg::getDefaultLibraryName |
( |
| ) |
const |
|
private |
QString SMESHGUI_FilterLibraryDlg::getFileName |
( |
| ) |
const |
|
private |
int SMESHGUI_FilterLibraryDlg::getIndex |
( |
const QString & |
theName | ) |
const |
|
private |
void SMESHGUI_FilterLibraryDlg::Init |
( |
const QList< int > & |
theTypes, |
|
|
const int |
theMode |
|
) |
| |
References ADD_TO, SMESHGUI_FilterTable::Clear(), COPY_FROM, getDefaultLibraryName(), SMESHGUI_FilterTable::Init(), isPermissionValid(), myCurrFilter, myCurrFilterName, myFileName, myListBox, myMode, myName, mySMESHGUI, myTable, myTypes, onDeactivate(), processNewLibrary(), reject(), updateControlsVisibility(), and updateMainButtons().
Referenced by construct(), Init(), SMESHGUI_FilterTable::onAddToBtn(), SMESHGUI_FilterTable::onCopyFromBtn(), and SMESHGUI::OnGUIEvent().
void SMESHGUI_FilterLibraryDlg::Init |
( |
const int |
type, |
|
|
const int |
theMode |
|
) |
| |
bool SMESHGUI_FilterLibraryDlg::isNameValid |
( |
const bool |
theMess = true | ) |
const |
|
private |
bool SMESHGUI_FilterLibraryDlg::isPermissionValid |
( |
const bool |
theIsExistingOnly | ) |
|
|
private |
bool SMESHGUI_FilterLibraryDlg::isValid |
( |
const bool |
theMess = true | ) |
const |
|
private |
void SMESHGUI_FilterLibraryDlg::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
private |
void SMESHGUI_FilterLibraryDlg::onAddBtnPressed |
( |
| ) |
|
|
privateslot |
References addFilterToLib(), SMESHGUI_FilterTable::Clear(), createFilter(), getDefaultFilterName(), SMESHGUI_FilterTable::GetType(), SMESHGUI_FilterTable::IsEditable(), isValid(), myCurrFilterName, myLibrary, myName, and myTable.
Referenced by createMainFrame().
bool SMESHGUI_FilterLibraryDlg::onApply |
( |
| ) |
|
|
privateslot |
References ADD_TO, COPY_FROM, createFilter(), SMESHGUI::desktop(), EDIT, getDefaultLibraryName(), isPermissionValid(), isValid(), myCurrFilterName, myFileName, myLibrary, myListBox, myMode, and myName.
Referenced by createButtonFrame(), and onOk().
void SMESHGUI_FilterLibraryDlg::onBrowse |
( |
| ) |
|
|
privateslot |
References ADD_TO, addFilterToLib(), autoExtension(), SMESHGUI_FilterTable::Copy(), COPY_FROM, getFileName(), isPermissionValid(), myCurrFilter, myCurrFilterName, myListBox, myMode, myTable, prepareFilters(), processNewLibrary(), and setFileName().
Referenced by createMainFrame().
void SMESHGUI_FilterLibraryDlg::onDeactivate |
( |
| ) |
|
|
privateslot |
void SMESHGUI_FilterLibraryDlg::onDeleteBtnPressed |
( |
| ) |
|
|
privateslot |
void SMESHGUI_FilterLibraryDlg::onEntityTypeChanged |
( |
const int |
theType | ) |
|
|
privateslot |
void SMESHGUI_FilterLibraryDlg::onFilterChanged |
( |
| ) |
|
|
privateslot |
References SMESHGUI_FilterTable::AddCriterion(), SMESHGUI_FilterTable::Clear(), createFilter(), SMESHGUI_FilterTable::GetType(), SMESHGUI_FilterTable::IsEditable(), isValid(), myCurrFilter, myCurrFilterName, myLibrary, myListBox, myName, myTable, SMESHGUI_FilterTable::Update(), and updateControlsVisibility().
Referenced by createMainFrame().
void SMESHGUI_FilterLibraryDlg::onFilterNameChanged |
( |
const QString & |
theName | ) |
|
|
privateslot |
void SMESHGUI_FilterLibraryDlg::onHelp |
( |
| ) |
|
|
privateslot |
void SMESHGUI_FilterLibraryDlg::onNeedValidation |
( |
| ) |
|
|
privateslot |
void SMESHGUI_FilterLibraryDlg::onOk |
( |
| ) |
|
|
privateslot |
void SMESHGUI_FilterLibraryDlg::onReturnPressed |
( |
| ) |
|
|
privateslot |
void SMESHGUI_FilterLibraryDlg::onSelectionDone |
( |
| ) |
|
|
privateslot |
References SMESHGUI_FilterTable::CurrentCell(), SMESH::FT_BelongToCylinder, SMESH::FT_BelongToGenSurface, SMESH::FT_BelongToGeom, SMESH::FT_BelongToMeshGroup, SMESH::FT_BelongToPlane, SMESH::FT_ConnectedElements, SMESH::FT_CoplanarFaces, SMESH::FT_LyingOnGeom, SMESHGUI_FilterTable::GetCriterionType(), SMESH::GetNameOfSelectedElements(), SMESH::GetSelector(), Handle(), myTable, SMESHGUI::selectionMgr(), SMESHGUI_FilterTable::SetID(), and SMESHGUI_FilterTable::SetThreshold().
Referenced by createMainFrame().
QStringList SMESHGUI_FilterLibraryDlg::prepareFilters |
( |
| ) |
const |
|
private |
void SMESHGUI_FilterLibraryDlg::processNewLibrary |
( |
| ) |
|
|
private |
void SMESHGUI_FilterLibraryDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
void SMESHGUI_FilterLibraryDlg::setFileName |
( |
const QString & |
txt, |
|
|
const bool |
autoExt = true |
|
) |
| |
|
private |
bool SMESHGUI_FilterLibraryDlg::setSelected |
( |
const QString & |
theName | ) |
|
|
private |
void SMESHGUI_FilterLibraryDlg::updateControlsVisibility |
( |
| ) |
|
|
private |
void SMESHGUI_FilterLibraryDlg::updateList |
( |
| ) |
|
|
private |
void SMESHGUI_FilterLibraryDlg::updateMainButtons |
( |
| ) |
|
|
private |
QPushButton* SMESHGUI_FilterLibraryDlg::myAddBtn |
|
private |
QMap<int, QPushButton*> SMESHGUI_FilterLibraryDlg::myButtons |
|
private |
int SMESHGUI_FilterLibraryDlg::myCurrFilter |
|
private |
QString SMESHGUI_FilterLibraryDlg::myCurrFilterName |
|
private |
Referenced by addFilterToLib(), Init(), isNameValid(), onAddBtnPressed(), onApply(), onBrowse(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onNeedValidation(), onReturnPressed(), setSelected(), and updateList().
QPushButton* SMESHGUI_FilterLibraryDlg::myDeleteBtn |
|
private |
QLineEdit* SMESHGUI_FilterLibraryDlg::myFileName |
|
private |
QString SMESHGUI_FilterLibraryDlg::myHelpFileName |
|
private |
SMESH::FilterLibrary_var SMESHGUI_FilterLibraryDlg::myLibrary |
|
private |
Referenced by addFilterToLib(), getDefaultFilterName(), isNameValid(), onAddBtnPressed(), onApply(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onNeedValidation(), processNewLibrary(), and updateList().
QListWidget* SMESHGUI_FilterLibraryDlg::myListBox |
|
private |
Referenced by createMainFrame(), getIndex(), Init(), onApply(), onBrowse(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onFilterNameChanged(), onReturnPressed(), setSelected(), and updateList().
QWidget* SMESHGUI_FilterLibraryDlg::myMainFrame |
|
private |
int SMESHGUI_FilterLibraryDlg::myMode |
|
private |
QLineEdit* SMESHGUI_FilterLibraryDlg::myName |
|
private |
Referenced by createMainFrame(), Init(), isNameValid(), onAddBtnPressed(), onApply(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onNeedValidation(), SetTable(), and updateList().
QWidget* SMESHGUI_FilterLibraryDlg::myNameGrp |
|
private |
QPushButton* SMESHGUI_FilterLibraryDlg::myOpenBtn |
|
private |
SMESHGUI* SMESHGUI_FilterLibraryDlg::mySMESHGUI |
|
private |
Referenced by addFilterToLib(), createFilter(), createMainFrame(), getDefaultFilterName(), GetTable(), Init(), isValid(), onAddBtnPressed(), onBrowse(), onDeleteBtnPressed(), onFilterChanged(), onNeedValidation(), onReturnPressed(), onSelectionDone(), SetTable(), updateControlsVisibility(), and updateList().
QList<int> SMESHGUI_FilterLibraryDlg::myTypes |
|
private |