Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYFaceModelerFrame.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14  */
15 
27 #ifndef __TY_FACE_MODELER_FRAME__
28 #define __TY_FACE_MODELER_FRAME__
29 
30 #include <qwidget.h>
31 // Added by qt3to4:
32 #include <QFocusEvent>
34 #include "TYModelerFrame.h"
35 
41 {
42  Q_OBJECT
43 
44 public:
48  TYFaceModelerFrame(LPTYAcousticRectangleNode pFace = 0, QWidget* parent = 0, const char* name = 0,
49  Qt::WindowFlags f = QFlag(0));
53  virtual ~TYFaceModelerFrame();
54 
63  {
64  return _pFace;
65  }
66 
69  {
74  };
75 
76 public slots:
77  virtual void setEditorMode(int mode);
78  virtual void updatePreferences();
79  virtual bool close();
80 
81 protected slots:
89  void done(bool ok);
90 
94  void accept();
95 
99  void reject();
100 
104  void updateToolActivation();
105 
106 protected:
107  void focusInEvent(QFocusEvent* pEvent);
108 
109 protected:
112 
115 
117  static int _nbInstance;
118 };
119 
120 #endif //__TY_FACE_MODELER_FRAME__
Classe generique pour une fenetre de modeleur (fichier header)
const char * name
Classe Modeler specialisee pour l'edition des faces.
void focusInEvent(QFocusEvent *pEvent)
virtual void updatePreferences()
virtual void setEditorMode(int mode)
TYRectangleEditor * _pRectangleEditor
Rectangle editor.
TYFaceModelerFrame(LPTYAcousticRectangleNode pFace=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
FaceModelerMode
Les differents modes d'edition d'une face.
static int _nbInstance
Nombre d'instance de type TYFaceModelerFrame.
LPTYAcousticRectangleNode getFace()
void setFace(LPTYAcousticRectangleNode pFace)
LPTYAcousticRectangleNode _pFace
Un pointeur sur la face a decouper.
Classe generique pour une fenetre de modeleur.
gestion de l'edition d'un rectangle