DrawingGui::ViewProviderDrawingPage Class Reference

#include <ViewProviderPage.h>

Inheritance diagram for DrawingGui::ViewProviderDrawingPage:
Gui::ViewProviderDocumentObjectGroup Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

Public Member Functions

virtual void attach (App::DocumentObject *)
virtual bool doubleClicked (void)
 Is called by the tree if the user double click on the object.
virtual std::vector< std::string > getDisplayModes (void) const
 returns a list of all possible modes
Drawing::FeaturePagegetPageObject () const
virtual Base::Type getTypeId (void) const
virtual void setDisplayMode (const char *ModeName)
 set the display mode
void setupContextMenu (QMenu *, QObject *, const char *)
 set up the context-menu with the supported edit modes
virtual void updateData (const App::Property *)
 Gets called if some of the property hade bin changed.
 ViewProviderDrawingPage ()
 constructor
virtual ~ViewProviderDrawingPage ()
 destructor

Static Public Member Functions

static void * create (void)
static Base::Type getClassTypeId (void)
static void init (void)

Public Attributes

App::PropertyFloat HintOffsetX
App::PropertyFloat HintOffsetY
App::PropertyFloat HintScale

Protected Member Functions

virtual const App::PropertyDatagetPropertyData (void) const
bool setEdit (int ModNum)
 is called by the document when the provider goes in edit mode
DrawingViewshowDrawingView ()

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Detailed Description

Definition at line 40 of file ViewProviderPage.h.


Constructor & Destructor Documentation

ViewProviderDrawingPage::ViewProviderDrawingPage (  ) 

constructor

Definition at line 61 of file ViewProviderPage.cpp.

References ADD_PROPERTY.

ViewProviderDrawingPage::~ViewProviderDrawingPage (  )  [virtual]

destructor

Definition at line 70 of file ViewProviderPage.cpp.


Member Function Documentation

void ViewProviderDrawingPage::attach ( App::DocumentObject pcFeat  )  [virtual]

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 74 of file ViewProviderPage.cpp.

void * DrawingGui::ViewProviderDrawingPage::create ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 55 of file ViewProviderPage.cpp.

bool ViewProviderDrawingPage::doubleClicked ( void   )  [virtual]

Is called by the tree if the user double click on the object.

Reimplemented from Gui::ViewProvider.

Definition at line 120 of file ViewProviderPage.cpp.

References Gui::getMainWindow(), getPageObject(), and showDrawingView().

Referenced by setEdit().

Base::Type DrawingGui::ViewProviderDrawingPage::getClassTypeId ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 55 of file ViewProviderPage.cpp.

Referenced by updateData().

std::vector< std::string > ViewProviderDrawingPage::getDisplayModes ( void   )  const [virtual]

returns a list of all possible modes

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 85 of file ViewProviderPage.cpp.

Drawing::FeaturePage * ViewProviderDrawingPage::getPageObject (  )  const

Definition at line 143 of file ViewProviderPage.cpp.

References Gui::ViewProviderDocumentObject::pcObject.

Referenced by doubleClicked(), and updateData().

const App::PropertyData & DrawingGui::ViewProviderDrawingPage::getPropertyData ( void   )  const [protected, virtual]

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 55 of file ViewProviderPage.cpp.

const App::PropertyData * DrawingGui::ViewProviderDrawingPage::getPropertyDataPtr ( void   )  [static, protected]

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 55 of file ViewProviderPage.cpp.

Base::Type DrawingGui::ViewProviderDrawingPage::getTypeId ( void   )  const [virtual]

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 55 of file ViewProviderPage.cpp.

void DrawingGui::ViewProviderDrawingPage::init ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 55 of file ViewProviderPage.cpp.

Referenced by initDrawingGui().

void ViewProviderDrawingPage::setDisplayMode ( const char *  ModeName  )  [virtual]

set the display mode

If you add new viewing modes in getDisplayModes() then you need to reimplement also seDisplaytMode() to handle these new modes by setting the appropriate display mode.

Reimplemented from Gui::ViewProvider.

Definition at line 80 of file ViewProviderPage.cpp.

bool ViewProviderDrawingPage::setEdit ( int  ModNum  )  [protected, virtual]

is called by the document when the provider goes in edit mode

Reimplemented from Gui::ViewProvider.

Definition at line 114 of file ViewProviderPage.cpp.

References doubleClicked().

void ViewProviderDrawingPage::setupContextMenu ( QMenu *  ,
QObject *  ,
const char *   
) [virtual]

set up the context-menu with the supported edit modes

Reimplemented from Gui::ViewProvider.

Definition at line 108 of file ViewProviderPage.cpp.

DrawingView * ViewProviderDrawingPage::showDrawingView (  )  [protected]

Definition at line 131 of file ViewProviderPage.cpp.

References Gui::BitmapFactory(), and Gui::getMainWindow().

Referenced by doubleClicked(), and updateData().

void ViewProviderDrawingPage::updateData ( const App::Property  )  [virtual]

Gets called if some of the property hade bin changed.

Reimplemented from Gui::ViewProviderDocumentObjectGroup.

Definition at line 93 of file ViewProviderPage.cpp.

References getClassTypeId(), getPageObject(), App::Property::getTypeId(), DrawingGui::DrawingView::load(), showDrawingView(), and DrawingGui::DrawingView::viewAll().


Member Data Documentation

Definition at line 51 of file ViewProviderPage.h.

Definition at line 52 of file ViewProviderPage.h.

Definition at line 50 of file ViewProviderPage.h.


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:01:56 2011 for FreeCAD by  doxygen 1.6.1