Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYFaceModelerFrame.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) 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.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
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 = Qt::SubWindow);
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()
TYFaceModelerFrame(LPTYAcousticRectangleNode pFace=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::SubWindow)
virtual void setEditorMode(int mode)
TYRectangleEditor * _pRectangleEditor
Rectangle editor.
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.
Generic class for a modeler window.
gestion de l'edition d'un rectangle