1 // SALOME SALOMEGUI : implementation of desktop and GUI kernel
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SALOMEGUI.cxx
25 // Author : Sergey ANIKIN
29 #include "SALOMEGUI.h"
30 #include "QAD_Desktop.h"
33 //=============================================================================
37 //=============================================================================
38 SALOMEGUI::SALOMEGUI( const QString& name, QObject* parent )
44 //=============================================================================
48 //=============================================================================
49 SALOMEGUI::~SALOMEGUI()
53 //=============================================================================
57 //=============================================================================
58 bool SALOMEGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
63 //=============================================================================
67 //=============================================================================
68 bool SALOMEGUI::OnKeyPress(QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
73 //=============================================================================
77 //=============================================================================
78 bool SALOMEGUI::OnMousePress(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
83 //=============================================================================
87 //=============================================================================
88 bool SALOMEGUI::OnMouseMove(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
93 //=============================================================================
97 //=============================================================================
98 bool SALOMEGUI::SetSettings( QAD_Desktop* parent )
103 //=============================================================================
107 //=============================================================================
108 bool SALOMEGUI::SetSettings( QAD_Desktop* parent, char* compName )
110 return SetSettings( parent);
113 //=============================================================================
117 //=============================================================================
118 bool SALOMEGUI::CustomPopup( QAD_Desktop* parent, QPopupMenu* popup, const QString & theContext,
119 const QString & theParent, const QString & theObject )
124 //=============================================================================
128 //=============================================================================
129 void SALOMEGUI::DefinePopup( QString & theContext, QString & theParent, QString & theObject )
133 //=============================================================================
137 //=============================================================================
138 bool SALOMEGUI::ActiveStudyChanged( QAD_Desktop* parent )
140 //static QAD_Study* aPrevStudy = NULL;
141 //QAD_Study* aStudy = parent->getActiveStudy();
143 // aPrevStudy = aStudy;
144 //if(aStudy != aPrevStudy){
145 // emit SignalCloseAllDialogs();
146 // aPrevStudy = aStudy;
148 emit SignalCloseAllDialogs();
152 //=============================================================================
156 //=============================================================================
157 void SALOMEGUI::BuildPresentation( const Handle(SALOME_InteractiveObject)& theIO )
161 //=============================================================================
165 //=============================================================================
166 void SALOMEGUI::SupportedViewType(int* buffer, int bufferSize)
170 //=============================================================================
174 //=============================================================================
175 void SALOMEGUI::Deactivate()
177 emit SignalCloseAllDialogs();