X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetSketchCreator.h;h=f4a880abf6a73a06673de76f797af8302c487f47;hb=a894060cf7f5ead6fa92d2f151e9f60712dc7a2f;hp=60a3cf30ea04b00a3775d2830107640fc556d1d9;hpb=5b4e69308550c299e14f336d489dc0aefbc5d6f4;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetSketchCreator.h b/src/PartSet/PartSet_WidgetSketchCreator.h index 60a3cf30e..f4a880abf 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.h +++ b/src/PartSet/PartSet_WidgetSketchCreator.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: PartSet_WidgetSketchCreator.h -// Created: 08 June 2015 -// Author: Vitaly SMETANNIKOV +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef PartSet_WidgetSketchCreator_H #define PartSet_WidgetSketchCreator_H @@ -12,6 +25,7 @@ #include class QLabel; +class QLineEdit; class PartSet_Module; class ModuleBase_Operation; class ModuleBase_IWorkshop; @@ -42,7 +56,8 @@ public: /// \return a control list virtual QList getControls() const; - /// Set focus to the first control of the current widget. The focus policy of the control is checked. + /// Set focus to the first control of the current widget. + /// The focus policy of the control is checked. /// If the widget has the NonFocus focus policy, it is skipped. /// \return the state whether the widget can accept the focus virtual bool focusTo(); @@ -105,9 +120,9 @@ protected: /// \param theDone a state whether the selection is set void updateOnSelectionChanged(const bool theDone); -protected slots: - /// Slot which is called on selection event - virtual void onSelectionChanged(); +protected: + /// Returns true if envent is processed. + virtual bool processSelection(); private: /// Returns true if the selection mode is active. This is when composition feature has no @@ -151,6 +166,8 @@ private: /// to store selection and check validation bool myIsCustomAttribute; + QWidget* mySizeOfViewWidget;///< Size of view widget, visualized if preview planes are shown + QLineEdit* mySizeOfView; ///< Value of square of size of View /// Label of the widget QLabel* myLabel;