Reusable widget that shows and allows modify meshing order. More...
#include <SMESHGUI_MeshOrderDlg.h>
Public Member Functions | |
SMESHGUI_MeshOrderBox (QWidget *) | |
Public methods. More... | |
~SMESHGUI_MeshOrderBox () | |
Destructor. More... | |
void | Clear () |
Clear mesh box. More... | |
void | SetMeshes (const ListListName &theMeshNames, const ListListId &theMeshIds) |
Set mesh (submesh) names and indeces. More... | |
bool | IsOrderChanged () const |
returns status is order changed by user More... | |
ListListId | GetMeshIds () const |
Returns result (ordered by user) mesh names. More... | |
ListListName | GetMeshNames () const |
Returns result (ordered by user) mesh indeces. More... | |
Private Slots | |
void | onSelectionChanged () |
Private slots. More... | |
void | onMoveItem () |
move item according to clicked arrow button More... | |
Private Member Functions | |
void | moveItem (const bool theIsUp) |
Privatemethods. More... | |
Private Attributes | |
bool | myIsChanged |
Private fields. More... | |
QToolButton * | myUpBtn |
QToolButton * | myDownBtn |
QListWidget * | myMeshNames |
Reusable widget that shows and allows modify meshing order.
SMESHGUI_MeshOrderBox::SMESHGUI_MeshOrderBox | ( | QWidget * | theParent | ) |
Public methods.
Constructor.
References MARGIN, myDownBtn, myMeshNames, myUpBtn, onMoveItem(), onSelectionChanged(), and SPACING.
SMESHGUI_MeshOrderBox::~SMESHGUI_MeshOrderBox | ( | ) |
Destructor.
void SMESHGUI_MeshOrderBox::Clear | ( | ) |
Clear mesh box.
Clear submesh names and indeces.
References myIsChanged, and myMeshNames.
Referenced by SMESHGUI_MeshOrderMgr::GetMeshOrder(), and SetMeshes().
ListListId SMESHGUI_MeshOrderBox::GetMeshIds | ( | ) | const |
Returns result (ordered by user) mesh names.
References checkItem(), and myMeshNames.
Referenced by SMESHGUI_MeshOrderMgr::SetMeshOrder().
ListListName SMESHGUI_MeshOrderBox::GetMeshNames | ( | ) | const |
Returns result (ordered by user) mesh indeces.
References checkItem(), and myMeshNames.
bool SMESHGUI_MeshOrderBox::IsOrderChanged | ( | ) | const |
returns status is order changed by user
References myIsChanged.
Referenced by SMESHGUI_MeshOrderMgr::IsOrderChanged().
|
private |
Privatemethods.
move mesh in order up or down
References checkItem(), myIsChanged, and myMeshNames.
Referenced by onMoveItem().
|
privateslot |
move item according to clicked arrow button
References moveItem(), and myUpBtn.
Referenced by SMESHGUI_MeshOrderBox().
|
privateslot |
Private slots.
update state of arrow buttons according to selection
References checkItem(), myDownBtn, myMeshNames, and myUpBtn.
Referenced by SMESHGUI_MeshOrderBox().
void SMESHGUI_MeshOrderBox::SetMeshes | ( | const ListListName & | theMeshNames, |
const ListListId & | theMeshIds | ||
) |
Set mesh (submesh) names and indeces.
Set submesh names and indeces.
References addMeshItem(), addSeparator(), Clear(), and myMeshNames.
Referenced by SMESHGUI_MeshOrderMgr::GetMeshOrder().
|
private |
Referenced by onSelectionChanged(), and SMESHGUI_MeshOrderBox().
|
private |
Private fields.
Referenced by Clear(), IsOrderChanged(), and moveItem().
|
private |
Referenced by Clear(), GetMeshIds(), GetMeshNames(), moveItem(), onSelectionChanged(), SetMeshes(), and SMESHGUI_MeshOrderBox().
|
private |
Referenced by onMoveItem(), onSelectionChanged(), and SMESHGUI_MeshOrderBox().