Cafu Engine
ModelEditor::ChildFrameT Class Reference
Inheritance diagram for ModelEditor::ChildFrameT:

Public Member Functions

 ChildFrameT (ParentFrameT *Parent, const wxString &FileName, ModelDocumentT *ModelDoc)
 The constructor for creating a new model editor child frame. More...
 
 ~ChildFrameT ()
 The destructor. More...
 
bool SubmitCommand (CommandT *Command)
 [...] All(!) commands for modifying the document must be submitted via this method. More...
 
bool SubmitNewSkin ()
 Creates a new skin, calls SubmitCommand() accordingly and returns its result. More...
 
bool SubmitNewGuiFixture ()
 Creates a new GUI fixture, calls SubmitCommand() accordingly and returns its result. More...
 
bool SubmitImportAnims ()
 Imports animation sequences from a user selected file, calls SubmitCommand() accordingly and returns its result. More...
 
bool SubmitNewChannel ()
 Creates a new animation channel, calls SubmitCommand() accordingly and returns its result. More...
 
bool Save (bool AskForFileName=false)
 Saves the model under the known or a new file name. More...
 
void ShowRelatedInspector (wxWindow *List, bool DoShow=true)
 This method shows or hides the pane of the detail inspector that is related to the given list view. More...
 
const ModelElementTypeT GetLastUsedType () const
 Returns the type of the most recently used (clicked) model element. More...
 
void SetLastUsedType (ModelElementTypeT Type)
 Sets the type of the most recently used (clicked) model element. More...
 
ModelDocumentTGetModelDoc () const
 
ScenePropGridTGetScenePropGrid () const
 

Constructor & Destructor Documentation

ChildFrameT::ChildFrameT ( ParentFrameT Parent,
const wxString &  FileName,
ModelDocumentT ModelDoc 
)

The constructor for creating a new model editor child frame.

Parameters
ParentThe applications parent frame.
FileNameThe file name of the document being edited.
ModelDocThis frames model document. The frame becomes the owner of the document, i.e. it is responsible for destructing it. (Document is created externally so that this constructor doesn't fail on doc creation failure.)
ChildFrameT::~ChildFrameT ( )

The destructor.

Member Function Documentation

const ModelElementTypeT ModelEditor::ChildFrameT::GetLastUsedType ( ) const
inline

Returns the type of the most recently used (clicked) model element.

bool ChildFrameT::Save ( bool  AskForFileName = false)

Saves the model under the known or a new file name.

Parameters
AskForFileNameWhether the method should ask the user to enter a new file name, used for "Save as...".
Returns
whether the file was successfully saved.
void ModelEditor::ChildFrameT::SetLastUsedType ( ModelElementTypeT  Type)
inline

Sets the type of the most recently used (clicked) model element.

void ChildFrameT::ShowRelatedInspector ( wxWindow *  List,
bool  DoShow = true 
)

This method shows or hides the pane of the detail inspector that is related to the given list view.

The method does nothing if the given list view is not the joints hierarchy, the meshes list, the anims list or the GUI fixtures list.

bool ChildFrameT::SubmitCommand ( CommandT Command)

[...] All(!) commands for modifying the document must be submitted via this method.

bool ChildFrameT::SubmitImportAnims ( )

Imports animation sequences from a user selected file, calls SubmitCommand() accordingly and returns its result.

bool ChildFrameT::SubmitNewChannel ( )

Creates a new animation channel, calls SubmitCommand() accordingly and returns its result.

bool ChildFrameT::SubmitNewGuiFixture ( )

Creates a new GUI fixture, calls SubmitCommand() accordingly and returns its result.

bool ChildFrameT::SubmitNewSkin ( )

Creates a new skin, calls SubmitCommand() accordingly and returns its result.


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