Version: 9.16.0
SMESHGUI_MeshOrderDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20// File : SMESHGUI_MeshOrderDlg.h
21// Author : Pavel TELKOV, Open CASCADE S.A.S.
22//
23#ifndef SMESHGUI_MeshOrderDlg_H
24#define SMESHGUI_MeshOrderDlg_H
25
26// SMESH includes
27#include "SMESH_SMESHGUI.hxx"
28#include "SMESHGUI_Dialog.h"
29
30// Qt includes
31#include <QGroupBox>
32
33// IDL includes
34#include <SALOMEconfig.h>
35#include CORBA_SERVER_HEADER(SMESH_Mesh)
36
37class QToolButton;
38class QListWidget;
39
40typedef QList<QStringList> ListListName;
41typedef QList<int> ListId;
42typedef QList<ListId> ListListId;
43
49{
50 Q_OBJECT
51
52 public:
56
58 void Clear();
59
61 void SetMeshes(const ListListName& theMeshNames,
62 const ListListId& theMeshIds);
63
65 bool IsOrderChanged() const;
66
68 ListListId GetMeshIds() const;
70 ListListName GetMeshNames() const;
71
72 private slots:
75 void onSelectionChanged();
77 void onMoveItem();
78
79 private:
82 void moveItem(const bool theIsUp);
83
84 private:
87 QToolButton* myUpBtn;
88 QToolButton* myDownBtn;
89 QListWidget* myMeshNames;
90};
91
97{
98 Q_OBJECT
99
100 public:
104
105 SMESHGUI_MeshOrderBox* GetMeshOrderBox() const;
106
107 private:
110};
111
112#endif // SMESHGUI_MeshOrderDlg_H
QList< int > ListId
Definition: SMESHGUI_MeshOrderDlg.h:41
QList< ListId > ListListId
Definition: SMESHGUI_MeshOrderDlg.h:42
QList< QStringList > ListListName
Definition: SMESHGUI_MeshOrderDlg.h:40
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Definition: SMESHGUI_Dialog.h:44
Reusable widget that shows and allows modify meshing order.
Definition: SMESHGUI_MeshOrderDlg.h:49
bool myIsChanged
Private fields.
Definition: SMESHGUI_MeshOrderDlg.h:86
QListWidget * myMeshNames
Definition: SMESHGUI_MeshOrderDlg.h:89
QToolButton * myDownBtn
Definition: SMESHGUI_MeshOrderDlg.h:88
QToolButton * myUpBtn
Definition: SMESHGUI_MeshOrderDlg.h:87
Dialog contains mesh order box for modification operation.
Definition: SMESHGUI_MeshOrderDlg.h:97
SMESHGUI_MeshOrderBox * myBox
Private fields.
Definition: SMESHGUI_MeshOrderDlg.h:109