#include <SMESHGUI_FilterLibraryDlg.h>
◆ anonymous enum
| Enumerator |
|---|
| BTN_OK | |
| BTN_Apply | |
| BTN_Close | |
| BTN_Help | |
◆ anonymous enum
| Enumerator |
|---|
| ADD_TO | |
| COPY_FROM | |
| EDIT | |
◆ SMESHGUI_FilterLibraryDlg() [1/2]
| SMESHGUI_FilterLibraryDlg::SMESHGUI_FilterLibraryDlg |
( |
SMESHGUI * |
theModule, |
|
|
QWidget * |
parent, |
|
|
const QList< int > & |
theTypes, |
|
|
const int |
theMode |
|
) |
| |
◆ SMESHGUI_FilterLibraryDlg() [2/2]
| SMESHGUI_FilterLibraryDlg::SMESHGUI_FilterLibraryDlg |
( |
SMESHGUI * |
theModule, |
|
|
QWidget * |
parent, |
|
|
const int |
theType, |
|
|
const int |
theMode |
|
) |
| |
◆ ~SMESHGUI_FilterLibraryDlg()
| SMESHGUI_FilterLibraryDlg::~SMESHGUI_FilterLibraryDlg |
( |
| ) |
|
|
virtual |
◆ addFilterToLib()
| 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().
◆ autoExtension()
| QString SMESHGUI_FilterLibraryDlg::autoExtension |
( |
const QString & |
theFileName | ) |
const |
|
private |
◆ construct()
| void SMESHGUI_FilterLibraryDlg::construct |
( |
const QList< int > & |
theTypes, |
|
|
const int |
theMode |
|
) |
| |
|
private |
◆ createButtonFrame()
| 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().
◆ createFilter()
| SMESH::Filter_ptr SMESHGUI_FilterLibraryDlg::createFilter |
( |
const int |
theType = -1 | ) |
|
|
private |
◆ createMainFrame()
| 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().
◆ enableMainButtons()
| void SMESHGUI_FilterLibraryDlg::enableMainButtons |
( |
| ) |
|
|
private |
◆ enterEvent()
| void SMESHGUI_FilterLibraryDlg::enterEvent |
( |
QEvent * |
| ) |
|
|
private |
◆ filterWildCards()
| QStringList SMESHGUI_FilterLibraryDlg::filterWildCards |
( |
const QString & |
theFilter | ) |
const |
|
private |
◆ getDefaultFilterName()
| QString SMESHGUI_FilterLibraryDlg::getDefaultFilterName |
( |
| ) |
const |
|
private |
◆ getDefaultLibraryName()
| QString & SMESHGUI_FilterLibraryDlg::getDefaultLibraryName |
( |
| ) |
const |
|
private |
◆ getFileName()
| QString SMESHGUI_FilterLibraryDlg::getFileName |
( |
| ) |
const |
|
private |
◆ getIndex()
| int SMESHGUI_FilterLibraryDlg::getIndex |
( |
const QString & |
theName | ) |
const |
|
private |
◆ GetTable()
◆ Init() [1/2]
| void SMESHGUI_FilterLibraryDlg::Init |
( |
const int |
type, |
|
|
const int |
theMode |
|
) |
| |
◆ Init() [2/2]
| 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().
◆ isNameValid()
| bool SMESHGUI_FilterLibraryDlg::isNameValid |
( |
const bool |
theMess = true | ) |
const |
|
private |
◆ isPermissionValid()
| bool SMESHGUI_FilterLibraryDlg::isPermissionValid |
( |
const bool |
theIsExistingOnly | ) |
|
|
private |
◆ isValid()
| bool SMESHGUI_FilterLibraryDlg::isValid |
( |
const bool |
theMess = true | ) |
const |
|
private |
◆ keyPressEvent()
| void SMESHGUI_FilterLibraryDlg::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
private |
◆ onAddBtnPressed
| 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().
◆ onApply
| 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().
◆ onBrowse
| 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().
◆ onDeactivate
| void SMESHGUI_FilterLibraryDlg::onDeactivate |
( |
| ) |
|
|
privateslot |
◆ onDeleteBtnPressed
| void SMESHGUI_FilterLibraryDlg::onDeleteBtnPressed |
( |
| ) |
|
|
privateslot |
◆ onEntityTypeChanged
| void SMESHGUI_FilterLibraryDlg::onEntityTypeChanged |
( |
const int |
| ) |
|
|
privateslot |
◆ onFilterChanged
| 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().
◆ onFilterNameChanged
| void SMESHGUI_FilterLibraryDlg::onFilterNameChanged |
( |
const QString & |
theName | ) |
|
|
privateslot |
◆ onHelp
| void SMESHGUI_FilterLibraryDlg::onHelp |
( |
| ) |
|
|
privateslot |
◆ onNeedValidation
| void SMESHGUI_FilterLibraryDlg::onNeedValidation |
( |
| ) |
|
|
privateslot |
◆ onOk
| void SMESHGUI_FilterLibraryDlg::onOk |
( |
| ) |
|
|
privateslot |
◆ onReturnPressed
| void SMESHGUI_FilterLibraryDlg::onReturnPressed |
( |
| ) |
|
|
privateslot |
◆ onSelectionDone
| 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::GetName(), SMESH::GetNameOfSelectedElements(), SMESH::GetSelector(), Handle(), myTable, SMESHGUI::selectionMgr(), SMESHGUI_FilterTable::SetID(), and SMESHGUI_FilterTable::SetThreshold().
Referenced by createMainFrame().
◆ prepareFilters()
| QStringList SMESHGUI_FilterLibraryDlg::prepareFilters |
( |
| ) |
const |
|
private |
◆ processNewLibrary()
| void SMESHGUI_FilterLibraryDlg::processNewLibrary |
( |
| ) |
|
|
private |
◆ reject
| void SMESHGUI_FilterLibraryDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
◆ setFileName()
| void SMESHGUI_FilterLibraryDlg::setFileName |
( |
const QString & |
txt, |
|
|
const bool |
autoExt = true |
|
) |
| |
|
private |
◆ setSelected()
| bool SMESHGUI_FilterLibraryDlg::setSelected |
( |
const QString & |
theName | ) |
|
|
private |
◆ SetTable()
◆ updateControlsVisibility()
| void SMESHGUI_FilterLibraryDlg::updateControlsVisibility |
( |
| ) |
|
|
private |
◆ updateList()
| void SMESHGUI_FilterLibraryDlg::updateList |
( |
| ) |
|
|
private |
◆ updateMainButtons()
| void SMESHGUI_FilterLibraryDlg::updateMainButtons |
( |
| ) |
|
|
private |
◆ myAddBtn
| QPushButton* SMESHGUI_FilterLibraryDlg::myAddBtn |
|
private |
◆ myButtons
| QMap<int, QPushButton*> SMESHGUI_FilterLibraryDlg::myButtons |
|
private |
◆ myCurrFilter
| int SMESHGUI_FilterLibraryDlg::myCurrFilter |
|
private |
◆ myCurrFilterName
| QString SMESHGUI_FilterLibraryDlg::myCurrFilterName |
|
private |
Referenced by addFilterToLib(), Init(), isNameValid(), onAddBtnPressed(), onApply(), onBrowse(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onNeedValidation(), onReturnPressed(), setSelected(), and updateList().
◆ myDeleteBtn
| QPushButton* SMESHGUI_FilterLibraryDlg::myDeleteBtn |
|
private |
◆ myFileName
| QLineEdit* SMESHGUI_FilterLibraryDlg::myFileName |
|
private |
◆ myHelpFileName
| QString SMESHGUI_FilterLibraryDlg::myHelpFileName |
|
private |
◆ myLibrary
| SMESH::FilterLibrary_var SMESHGUI_FilterLibraryDlg::myLibrary |
|
private |
Referenced by addFilterToLib(), getDefaultFilterName(), isNameValid(), onAddBtnPressed(), onApply(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onNeedValidation(), processNewLibrary(), and updateList().
◆ myListBox
| QListWidget* SMESHGUI_FilterLibraryDlg::myListBox |
|
private |
Referenced by createMainFrame(), getIndex(), Init(), onApply(), onBrowse(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onFilterNameChanged(), onReturnPressed(), setSelected(), and updateList().
◆ myMainFrame
| QWidget* SMESHGUI_FilterLibraryDlg::myMainFrame |
|
private |
◆ myMode
| int SMESHGUI_FilterLibraryDlg::myMode |
|
private |
◆ myName
| QLineEdit* SMESHGUI_FilterLibraryDlg::myName |
|
private |
Referenced by createMainFrame(), Init(), isNameValid(), onAddBtnPressed(), onApply(), onDeleteBtnPressed(), onEntityTypeChanged(), onFilterChanged(), onNeedValidation(), SetTable(), and updateList().
◆ myNameGrp
| QWidget* SMESHGUI_FilterLibraryDlg::myNameGrp |
|
private |
◆ myOpenBtn
| QPushButton* SMESHGUI_FilterLibraryDlg::myOpenBtn |
|
private |
◆ mySMESHGUI
| SMESHGUI* SMESHGUI_FilterLibraryDlg::mySMESHGUI |
|
private |
◆ myTable
Referenced by addFilterToLib(), createFilter(), createMainFrame(), getDefaultFilterName(), GetTable(), Init(), isValid(), onAddBtnPressed(), onBrowse(), onDeleteBtnPressed(), onFilterChanged(), onNeedValidation(), onReturnPressed(), onSelectionDone(), SetTable(), updateControlsVisibility(), and updateList().
◆ myTypes
| QList<int> SMESHGUI_FilterLibraryDlg::myTypes |
|
private |