#include <TopoDS_Shape.hxx>
+#include <QStackedWidget>
#include <QMap>
class PartSet_PreviewPlanes;
class QCheckBox;
class QStackedWidget;
class QLineEdit;
+class QPushButton;
+class QDialog;
/**
* \ingroup Modules
/// \param thePrs a presentation
static bool canFillSketch(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs);
+ /// If widgets has several panels then this method has to show a page which contains information
+ /// for current feature. By default does nothing
+ virtual void showInformativePage() {
+ if (myStackWidget) myStackWidget->setCurrentIndex(1);
+ }
+
signals:
/// Signal on plane selection
void planeSelected(const std::shared_ptr<GeomAPI_Pln>& thePln);
return true;
}
- virtual bool restoreValueCustom()
- {
- return true;
- }
+ virtual bool restoreValueCustom();
/// The methiod called when widget is activated
virtual void activateCustom();
/// \param thePrs a presentation
bool fillSketchPlaneBySelection(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs);
+
+ virtual void showEvent(QShowEvent* theEvent);
+
private slots:
/// A slot called on set sketch plane view
void onSetPlaneView();
void onChangePlane();
+ void onShowDOF();
+
+ void onShowPanel();
+
private:
/// Set sketch plane by shape
/// \param theShape a planar face
QLineEdit* mySizeOfView; ///< Value of square of size of View
QStackedWidget* myStackWidget;
+ QLabel* myDoFLabel;
+ QPushButton* myShowDOFBtn;
+
bool myOpenTransaction;
bool myIsSelection;
+
+ QDialog* myPartSetMessage;
+ QDialog* mySizeMessage;
};
#endif