Salome HOME
PAL17233: Projection 2D doesn't work (bis)
[modules/geom.git] / src / GEOMToolsGUI / GEOMToolsGUI_NameDlg.h
1 //  SALOME GEOMToolsGUI : implementation of desktop and GUI kernel
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : GEOMToolsGUI_NameDlg.h
8 //  Author : Vadim SANDLER
9 //  Module : SALOME
10 //  $Header$
11
12 #ifndef GEOMToolsGUI_NAMEDLG_H
13 #define GEOMToolsGUI_NAMEDLG_H
14
15 #include "GEOM_ToolsGUI.hxx"
16
17 #include <qdialog.h>
18
19 class QLineEdit;
20 class QPushButton;
21
22 //=================================================================================
23 // class    : GEOMToolsGUI_NameDlg
24 // purpose  : Common <Rename> dialog box class
25 //=================================================================================
26 class GEOMTOOLSGUI_EXPORT GEOMToolsGUI_NameDlg : public QDialog
27
28   Q_OBJECT
29
30 public:
31   GEOMToolsGUI_NameDlg( QWidget* parent = 0 );
32   ~GEOMToolsGUI_NameDlg();
33     
34   void            setName( const QString& name );
35   QString         name();
36     
37   static QString  getName( QWidget* parent = 0, const QString& oldName = QString::null );
38     
39 protected slots:
40   void accept();
41   
42 private:
43   QPushButton*    myButtonOk;
44   QPushButton*    myButtonCancel;
45   QLineEdit*      myLineEdit;
46 };
47
48 #endif // GEOMToolsGUI_NAMEDLG_H