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"
34 //=============================================================================
38 //=============================================================================
39 SALOMEGUI::SALOMEGUI( const QString& name, QObject* parent )
45 //=============================================================================
49 //=============================================================================
50 SALOMEGUI::~SALOMEGUI()
54 //=============================================================================
58 //=============================================================================
59 bool SALOMEGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
64 //=============================================================================
68 //=============================================================================
69 bool SALOMEGUI::OnKeyPress(QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
74 //=============================================================================
78 //=============================================================================
79 bool SALOMEGUI::OnMousePress(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
84 //=============================================================================
88 //=============================================================================
89 bool SALOMEGUI::OnMouseMove(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
94 //=============================================================================
98 //=============================================================================
99 bool SALOMEGUI::SetSettings( QAD_Desktop* parent )
104 //=============================================================================
108 //=============================================================================
109 bool SALOMEGUI::SetSettings( QAD_Desktop* parent, char* compName )
111 return SetSettings( parent);
114 //=============================================================================
118 //=============================================================================
119 bool SALOMEGUI::CustomPopup( QAD_Desktop* parent, QPopupMenu* popup, const QString & theContext,
120 const QString & theParent, const QString & theObject )
125 //=============================================================================
129 //=============================================================================
130 void SALOMEGUI::DefinePopup( QString & theContext, QString & theParent, QString & theObject )
134 //=============================================================================
138 //=============================================================================
139 bool SALOMEGUI::ActiveStudyChanged( QAD_Desktop* parent )
141 //static QAD_Study* aPrevStudy = NULL;
142 //QAD_Study* aStudy = parent->getActiveStudy();
144 // aPrevStudy = aStudy;
145 //if(aStudy != aPrevStudy){
146 // emit SignalCloseAllDialogs();
147 // aPrevStudy = aStudy;
149 emit SignalCloseAllDialogs();
153 //=============================================================================
157 //=============================================================================
158 void SALOMEGUI::BuildPresentation( const Handle(SALOME_InteractiveObject)&,
163 //=============================================================================
167 //=============================================================================
168 void SALOMEGUI::SupportedViewType(int* /*buffer*/, int /*bufferSize*/ )
172 //=============================================================================
176 //=============================================================================
177 void SALOMEGUI::Deactivate()
179 emit SignalCloseAllDialogs();