Back to index

salome-gui  6.5.0
SalomeApp_StudyPropertiesDlg.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : SalomeApp_StudyPropertiesDlg.h
00024 //  Author : Roman NIKOLAEV
00025 //  Module : SALOME
00026 //
00027 #ifndef SALOMEAPP_STUDY_PROPERTIES_DLG_H
00028 #define SALOMEAPP_STUDY_PROPERTIES_DLG_H
00029 
00030 #include "SalomeApp.h"
00031 
00032 #include <QDialog>
00033 
00034 #include <SALOMEconfig.h>
00035 #include CORBA_SERVER_HEADER(SALOMEDS)
00036 
00037 #include <SALOMEDSClient_Study.hxx>
00038 
00039 class QLineEdit;
00040 class QLabel;
00041 class QCheckBox;
00042 class QComboBox;
00043 class QTextEdit;
00044 class QTreeWidget;
00045 class QPushButton;
00046 
00047 class SALOMEAPP_EXPORT SalomeApp_StudyPropertiesDlg : public QDialog
00048 { 
00049   Q_OBJECT
00050 public:
00051   SalomeApp_StudyPropertiesDlg( QWidget* parent = 0 );
00052   ~SalomeApp_StudyPropertiesDlg();
00053 
00054   bool isChanged() { return myIsChanged; }
00055   
00056 public slots:
00057   void clickOnOk();
00058  
00059 private:
00060  void initData();
00061   
00062 private:
00063  _PTR(Study)          myStudyDoc;
00064  bool                 myIsChanged;
00065  QLineEdit*           myAuthor;
00066  QLabel*              myDate;
00067  QCheckBox*           myLocked;
00068  QLabel*              myModification;
00069  QComboBox*           myUnits;
00070  QTextEdit*           myComment;
00071  QTreeWidget*         myModifications;
00072  QPushButton*         myOkButton;
00073  QPushButton*         myCancelButton;
00074 };
00075  
00076 #endif // SALOMEAPP_STUDY_PROPERTIES_DLG_H