Salome HOME
Update version to 3.2.0a1
[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 <qdialog.h>
16
17 class QLineEdit;
18 class QPushButton;
19
20 //=================================================================================
21 // class    : GEOMToolsGUI_NameDlg
22 // purpose  : Common <Rename> dialog box class
23 //=================================================================================
24 class GEOMToolsGUI_NameDlg : public QDialog
25
26   Q_OBJECT
27
28 public:
29   GEOMToolsGUI_NameDlg( QWidget* parent = 0 );
30   ~GEOMToolsGUI_NameDlg();
31     
32   void            setName( const QString& name );
33   QString         name();
34     
35   static QString  getName( QWidget* parent = 0, const QString& oldName = QString::null );
36     
37 protected slots:
38   void accept();
39   
40 private:
41   QPushButton*    myButtonOk;
42   QPushButton*    myButtonCancel;
43   QLineEdit*      myLineEdit;
44 };
45
46 #endif // GEOMToolsGUI_NAMEDLG_H