Version: 9.16.0
Yacsgui.hxx
Go to the documentation of this file.
1// Copyright (C) 2006-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library 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. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef _YACSGUI_HXX_
21#define _YACSGUI_HXX_
22
23#define PY_SSIZE_T_CLEAN
24
25#include "SalomeWrap_Module.hxx"
26#include "Yacsgui_Resource.hxx"
27#include <SALOMEconfig.h>
28#include "YACSExport.hxx"
29
30#include <QModelIndex>
31#include <map>
32
33namespace YACS
34{
35 namespace HMI
36 {
37 class GenericGui;
38 class SuitWrapper;
39 class QtGuiContext;
40 }
41}
42
43class SalomeApp_Application;
44class SUIT_ViewWindow;
45
47{
48 Q_OBJECT
49
50 friend class Yacsgui_Resource;
51
52public:
53 Yacsgui();
54 virtual ~Yacsgui();
55
56 void initialize( CAM_Application* app);
57 void windows( QMap<int, int>& theMap) const;
58 virtual QString engineIOR() const;
59
60 virtual void viewManagers( QStringList& list) const;
61 virtual void setResource(SUIT_ResourceMgr* r);
62 virtual void createPreferences();
63 virtual void preferencesChanged( const QString& sect, const QString& name );
64 virtual void loadSchema(const std::string& filename,bool edit=true, bool arrangeLocalNodes=false);
65
66public slots:
67 bool deactivateModule( SUIT_Study* theStudy);
68 bool activateModule( SUIT_Study* theStudy);
69 void onDblClick(SUIT_DataObject* object);
70 void onCleanOnExit();
71
72protected slots:
73 void onWindowActivated( SUIT_ViewWindow* svw);
74 void onWindowClosed( SUIT_ViewWindow* svw);
75 void onTryClose(bool &isClosed, QxScene_ViewWindow* window);
76
77protected:
78 virtual CAM_DataModel* createDataModel();
79 bool createSComponent();
80
85 SUIT_ViewWindow* _currentSVW;
87};
88
89#endif
#define YACS_EXPORT
Definition: YACSExport.hxx:30
virtual CAM_DataModel * createDataModel()
viewer QGraphicsScene: deriver SUIT_ViewModel comme QxGraph_Viewer
Definition: SuitWrapper.hxx:43
virtual void createPreferences(Yacsgui *swm)
virtual void preferencesChanged()
bool _selectFromTree
Definition: Yacsgui.hxx:83
Yacsgui_Resource * _myresource
Definition: Yacsgui.hxx:84
YACS::HMI::SuitWrapper * _wrapper
Definition: Yacsgui.hxx:81
YACS::HMI::QtGuiContext * _studyContext
Definition: Yacsgui.hxx:86
SUIT_ViewWindow * _currentSVW
Definition: Yacsgui.hxx:85
YACS::HMI::GenericGui * _genericGui
Definition: Yacsgui.hxx:82