#include <TopoDS_Shape.hxx>
+#include <QStackedWidget>
#include <QMap>
class PartSet_PreviewPlanes;
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);
/// \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();
bool myOpenTransaction;
bool myIsSelection;
+
+ QDialog* myPartSetMessage;
+ QDialog* mySizeMessage;
};
#endif