#include "modelCDMAppli.h"
+/**
+ * Application manager description panel. Shows the available applications in the project and the actions corresponding to application management.
+ */
class wxCDMAppliDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * Application manager description panel Constructor.
+ * @param parent Parent window reference.
+ * @param appli Application manager class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMAppliDescriptionPanel(
wxWindow* parent,
modelCDMAppli* appli,
~wxCDMAppliDescriptionPanel();
+ /**
+ * Application manager description panel Creator.
+ * @param parent Parent window reference.
+ * @param appli Application manager class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ * @return True if the creation was successful.
+ */
bool Create(
wxWindow* parent,
modelCDMAppli* appli,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * Application manager described.
+ */
modelCDMAppli* appli;
//handlers
protected:
+ /**
+ * Handles when the create application button is pressed.
+ */
void OnBtnCreateApplication(wxCommandEvent& event);
+ /**
+ * Handles when the open package cmakelists file button is pressed.
+ */
void OnBtnEditCMakeLists(wxCommandEvent& event);
+ /**
+ * Handles when an application link is pressed.
+ * @param event Has the link reference to know which application was selected.
+ */
void OnLnkApplicationSelect(wxHyperlinkEvent& event);
+ /**
+ * Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+ /**
+ * Handles when the open folder button is pressed.
+ */
void OnBtnOpenFolder(wxCommandEvent& event);
+ /**
+ * Handles when a application link is hovered.
+ * @param event Has the link reference to know which application was selected.
+ */
void OnMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when a application link button finishes hover.
+ * @param event Has the link reference to know which application was selected.
+ */
void OnMouseExit(wxMouseEvent& event);
+ /**
+ * Handles when the open cmakelists file button is hovered.
+ */
void OnCMakeMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the open cmakelists file button finishes hover.
+ */
void OnCMakeMouseExit(wxMouseEvent& event);
};
#include "modelCDMApplication.h"
+/**
+ * Application description panel. Shows the properties and actions available for the described application.
+ */
class wxCDMApplicationDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * Application description panel Constructor.
+ * @param parent Parent window reference.
+ * @param application Application class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMApplicationDescriptionPanel(
wxWindow* parent,
modelCDMApplication* application,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor.
+ */
~wxCDMApplicationDescriptionPanel();
+ /**
+ * Application description panel Creator.
+ * @param parent Parent window reference.
+ * @param application Application class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
bool Create(
wxWindow* parent,
modelCDMApplication* application,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * Application described.
+ */
modelCDMApplication* application;
+ /**
+ * described application's executable name control.
+ */
wxStaticText* executableNametc;
//handlers
protected:
+ /**
+ * Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+
+ /**
+ * Handles when the set executable name button is pressed.
+ */
void OnBtnSetExeName(wxCommandEvent& event);
+ /**
+ * Handles when the create class button is pressed.
+ */
void OnBtnCreateClass(wxCommandEvent& event);
+ /**
+ * Handles when the create folder button is pressed.
+ */
void OnBtnCreateFolder(wxCommandEvent& event);
+ /**
+ * Handles when the open package cmakelists file button is pressed.
+ */
void OnBtnEditCMakeLists(wxCommandEvent& event);
+ /**
+ * Handles when the open containing folder button is pressed.
+ */
void OnBtnOpenFolder(wxCommandEvent& event);
+ /**
+ * Handles when the open cmakelists file button is hovered.
+ */
void OnCMakeMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the open cmakelists file button finishes hover.
+ */
void OnCMakeMouseExit(wxMouseEvent& event);
+ /**
+ * Handles when the open Main file button is pressed.
+ */
void OnBtnOpenMain(wxCommandEvent& event);
+ /**
+ * Handles when the open Main file button is hovered.
+ */
void OnMainMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the open Main file button finishes hover.
+ */
void OnMainMouseExit(wxMouseEvent& event);
};
#include "modelCDMBlackBox.h"
+/**
+ * Black box description panel. Shows the properties and available actions for the described black box.
+ */
class wxCDMBlackBoxDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * Black box description panel Constructor.
+ * @param parent Parent window reference.
+ * @param blackBox Black box class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMBlackBoxDescriptionPanel(
wxWindow* parent,
modelCDMBlackBox* blackBox,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor.
+ */
~wxCDMBlackBoxDescriptionPanel();
+ /**
+ * Black box description panel Creator.
+ * @param parent Parent window reference.
+ * @param blackBox Black box class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ * @return True if the creatios was successful.
+ */
bool Create(
wxWindow* parent,
modelCDMBlackBox* blackBox,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * Black box described.
+ */
modelCDMBlackBox* blackBox;
+ /**
+ * Black box author control.
+ */
wxStaticText* authortc;
+ /**
+ * Black box description control
+ */
wxStaticText* descriptiontc;
+ /**
+ * Black box categories control.
+ */
wxStaticText* categoriestc;
//handlers
protected:
+ /**
+ * Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+ /**
+ * Handles when the set author button is pressed.
+ */
void OnBtnSetAuthor(wxCommandEvent& event);
+ /**
+ * Handles when the set description button is pressed.
+ */
void OnBtnSetDescription(wxCommandEvent& event);
+ /**
+ * Handles when the set categories button is pressed.
+ */
void OnBtnSetCategories(wxCommandEvent& event);
+ /**
+ * Handles when the open Cxx button is pressed.
+ */
void OnBtnOpenCxx(wxCommandEvent& event);
+ /**
+ * Handles when the open Hxx button is pressed.
+ */
void OnBtnOpenHxx(wxCommandEvent& event);
+ /**
+ * Handles when the open Folder button is pressed.
+ */
void OnBtnOpenFolder(wxCommandEvent& event);
+ /**
+ * Handles when the open Cxx button is hovered.
+ */
void OnCxxMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the open Cxx button finishes hover.
+ */
void OnCxxMouseExit(wxMouseEvent& event);
+ /**
+ * Handles when the open Hxx button is hovered.
+ */
void OnHxxMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the open Hxx button finishes hover.
+ */
void OnHxxMouseExit(wxMouseEvent& event);
#include "modelCDMCMakeListsFile.h"
+/**
+ * CMakeLists File description panel. Shows the file properties and the available actions for it.
+ */
class wxCDMCMakeListsDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * CMakeLists File description panel Constructor.
+ * @param parent Parent window reference.
+ * @param makefile CMakeLists class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMCMakeListsDescriptionPanel(
wxWindow* parent,
modelCDMCMakeListsFile* makefile,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor.
+ */
~wxCDMCMakeListsDescriptionPanel();
+ /**
+ * CMakeLists File description panel Constructor.
+ * @param parent Parent window reference.
+ * @param makefile CMakeLists class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ * @return True if the creation was successful.
+ */
bool Create(
wxWindow* parent,
- modelCDMCMakeListsFile* blackBox,
+ modelCDMCMakeListsFile* makefile,
wxWindowID id = -1,
const wxString& caption = _("Description Frame"),
const wxPoint& pos = wxDefaultPosition,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * CMakeLists file described.
+ */
modelCDMCMakeListsFile* cMakeLists;
//handlers
protected:
+ /**
+ * Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+ /**
+ * Handles when the open file in text editor button is pressed.
+ */
void OnBtnOpenInEditor(wxCommandEvent& event);
+ /**
+ * Handles when the open containing folder button is pressed.
+ */
void OnBtnOpenFolder(wxCommandEvent& event);
};
#include "modelCDMFile.h"
+/**
+ * File description panel. Shows the File properties and the available options for it.
+ */
class wxCDMFileDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * File description panel Constructor.
+ * @param parent Parent window reference.
+ * @param file File class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMFileDescriptionPanel(
wxWindow* parent,
modelCDMFile* file,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor.
+ */
~wxCDMFileDescriptionPanel();
+ /**
+ * File description panel Constructor.
+ * @param parent Parent window reference.
+ * @param file File class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ * @return True if creation was successful.
+ */
bool Create(
wxWindow* parent,
modelCDMFile* file,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * File described.
+ */
modelCDMFile* file;
//handlers
protected:
+ /**
+ * Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+ /**
+ * Handles when the Open containing folder button is pressed.
+ */
void OnBtnOpenFolder(wxCommandEvent& event);
+ /**
+ * Handles when the Open with command button is pressed.
+ */
void OnBtnOpenWithCommand(wxCommandEvent& event);
};
#include "modelCDMFolder.h"
+/**
+ * Folder description panel. Shows the properties of the referenced folder and the available actions.
+ */
class wxCDMFolderDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * Folder description panel Constructor.
+ * @param parent Parent window reference.
+ * @param folder Folder class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMFolderDescriptionPanel(
wxWindow* parent,
modelCDMFolder* folder,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor.
+ */
~wxCDMFolderDescriptionPanel();
+ /**
+ * Folder description panel Creator.
+ * @param parent Parent window reference.
+ * @param folder Folder class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ * @return True if creation is successful.
+ */
bool Create(
wxWindow* parent,
modelCDMFolder* folder,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * Folder described.
+ */
modelCDMFolder* folder;
//handlers
protected:
+ /**
+ * Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+ /**
+ * Handles when the open package cmakelists file button is pressed.
+ */
void OnBtnEditCMakeLists(wxCommandEvent& event);
+ /**
+ * Handles when the create class button is pressed.
+ */
void OnBtnCreateClass(wxCommandEvent& event);
+ /**
+ * Handles when the create folder button is pressed.
+ */
void OnBtnCreateFolder(wxCommandEvent& event);
+ /**
+ * Handles when the open in explorer button is pressed.
+ */
void OnBtnOpenInExplorer(wxCommandEvent& event);
+ /**
+ * Handles when the open cmakelists file button is hovered.
+ */
void OnCMakeMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the open cmakelists file button finishes hover.
+ */
void OnCMakeMouseExit(wxMouseEvent& event);
};
#include "modelCDMLib.h"
+/**
+ * Library manager description panel. Shows the available libraries in the project and the actions corresponding to library management.
+ */
class wxCDMLibDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * Library manager description panel Constructor.
+ * @param parent Parent window reference.
+ * @param lib Lib class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMLibDescriptionPanel(
wxWindow* parent,
modelCDMLib* lib,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor.
+ */
~wxCDMLibDescriptionPanel();
+ /**
+ * Library manager description panel Creator.
+ * @param parent Parent window reference.
+ * @param lib Lib class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ * @return True if creation was successful.
+ */
bool Create(
wxWindow* parent,
modelCDMLib* lib,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * Library manager described.
+ */
modelCDMLib* lib;
//handlers
protected:
+ /**
+ * Handles when the create library button is pressed.
+ */
void OnBtnCreateLibrary(wxCommandEvent& event);
+ /**
+ * Handles when the open package cmakelists file button is pressed.
+ */
void OnBtnEditCMakeLists(wxCommandEvent& event);
+ /**
+ * Handles when a library link is pressed.
+ * @param event Has the link reference to know which library was selected.
+ */
void OnLnkLibrarySelect(wxHyperlinkEvent& event);
+ /**
+ * Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+ /**
+ * Handles when the open containing folder button is pressed.
+ */
void OnBtnOpenFolder(wxCommandEvent& event);
+ /**
+ * Handles when a library link is hovered.
+ * @param event Has the link reference to know which library was selected.
+ */
void OnMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when a library link button finishes hover.
+ * @param event Has the link reference to know which library was selected.
+ */
void OnMouseExit(wxMouseEvent& event);
+ /**
+ * Handles when the open cmakelists file button is hovered.
+ */
void OnCMakeMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the open cmakelists file button finishes hover.
+ */
void OnCMakeMouseExit(wxMouseEvent& event);
};
#include "modelCDMLibrary.h"
+/**
+ * Library description panel. Shows the available actions on the described library.
+ */
class wxCDMLibraryDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+
+ /**
+ * Library description panel Constructor.
+ * @param parent Parent window reference.
+ * @param library Project class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMLibraryDescriptionPanel(
wxWindow* parent,
modelCDMLibrary* library,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor.
+ */
~wxCDMLibraryDescriptionPanel();
+ /**
+ * Library description panel Creator.
+ * @param parent Parent window reference.
+ * @param library Project class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ * @return True if creation was successful.
+ */
bool Create(
wxWindow* parent,
modelCDMLibrary* library,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * Library described.
+ */
modelCDMLibrary* library;
+ /**
+ * Control with the described library name.
+ */
wxStaticText* libraryNametc;
//handlers
protected:
+ /**
+ * Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+ /**
+ * Handles when the set executable name button is pressed.
+ * @param event Unused.
+ */
void OnBtnSetExeName(wxCommandEvent& event);
+ /**
+ * Handles when the create class button is pressed.
+ * @param event Unused.
+ */
void OnBtnCreateClass(wxCommandEvent& event);
+ /**
+ * Handles when the create folder buttonis pressed.
+ * @param event Unused.
+ */
void OnBtnCreateFolder(wxCommandEvent& event);
+ /**
+ * Handles when Edit Cmakelists button is pressed.
+ * @param event Unused.
+ */
void OnBtnEditCMakeLists(wxCommandEvent& event);
+ /**
+ * Handles when the open containing folder button is pressed.
+ * @param event Unused.
+ */
void OnBtnOpenFolder(wxCommandEvent& event);
+ /**
+ * Handles when the edit cmakelists button is hovered.
+ * @param event Unused.
+ */
void OnCMakeMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the edit cmakelists button exits hover.
+ * @param event Unused.
+ */
void OnCMakeMouseExit(wxMouseEvent& event);
};
#include <creaWx.h>
#include <wx/panel.h>
-
+/**
+ * Main View description panel. Shows the welcome message and allows to open or create Crea projects.
+ */
class wxCDMMainDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * Main description panel Constructor.
+ * @param parent Parent window reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMMainDescriptionPanel(
wxWindow* parent,
wxWindowID id = -1,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor.
+ */
~wxCDMMainDescriptionPanel();
+ /**
+ * Main description panel Constructor.
+ * @param parent Parent window reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
bool Create(
wxWindow* parent,
wxWindowID id = -1,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
//handlers
protected:
+ /**
+ * Handles when the create new project button is pressed.
+ */
void OnBtnNewProject(wxCommandEvent& event);
+ /**
+ * Handles when the open project button is pressed.
+ */
void OnBtnOpenProject(wxCommandEvent& event);
};
#include "modelCDMPackage.h"
+/**
+ * Package description panel. Shows the package's properties and the available actions for a package.
+ */
class wxCDMPackageDescriptionPanel : public wxPanel
{
DECLARE_EVENT_TABLE()
public:
+ /**
+ * Package description panel Constructor.
+ * @param parent Parent window reference.
+ * @param package Package class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ */
wxCDMPackageDescriptionPanel(
wxWindow* parent,
modelCDMPackage* package,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Destructor
+ */
~wxCDMPackageDescriptionPanel();
+ /**
+ * Package description panel Creator.
+ * @param parent Parent window reference.
+ * @param package Package class reference.
+ * @param id Panel ID. By default -1.
+ * @param caption Panel label. By default "Description Frame".
+ * @param pos Panel position. By default wxDefaultPosition.
+ * @param size Panel size. By default wxDefaultSize.
+ * @param style Panel style. By default wxDEFAULT_FRAME_STYLE.
+ * @return True if creation was successful.
+ */
bool Create(
wxWindow* parent,
modelCDMPackage* package,
long style = wxDEFAULT_FRAME_STYLE
);
+ /**
+ * Creates all the controls in the panel (property and action controls).
+ */
void CreateControls();
private:
+ /**
+ * Package described.
+ */
modelCDMPackage* package;
+ /**
+ * Control with the package author.
+ */
wxStaticText* authortc;
+ /**
+ * Control with the package version.
+ */
wxStaticText* versiontc;
+ /**
+ * Control with the package description.
+ */
wxStaticText* descriptiontc;
//handlers
protected:
+ /**
+ * Handles when a return link is pressed.
+ */
void OnBtnReturn(wxHyperlinkEvent& event);
+ /**
+ * Handles when the Set author button is pressed.
+ */
void OnBtnSetAuthor(wxCommandEvent& event);
+ /**
+ * Handles when the Set version button is pressed.
+ */
void OnBtnSetVersion(wxCommandEvent& event);
+ /**
+ * Handles when the Change description button is pressed.
+ */
void OnBtnSetDescription(wxCommandEvent& event);
+ /**
+ * Handles when a black box link is pressed.
+ */
void OnLnkBlackBoxSelect(wxHyperlinkEvent& event);
+ /**
+ * Handles when the create black box button is pressed.
+ */
void OnBtnCreateBlackBox(wxCommandEvent& event);
+ /**
+ * Handles when the edit cmakelists file button is pressed.
+ */
void OnBtnEditCMakeLists(wxCommandEvent& event);
+ /**
+ * Handles when the open folder button is pressed.
+ */
void OnBtnOpenFolder(wxCommandEvent& event);
+ /**
+ * Handles when a black box link is hovered.
+ */
void OnMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when a black box link exits hover.
+ */
void OnMouseExit(wxMouseEvent& event);
+ /**
+ * Handles when the edit cmakelists file button is hovered.
+ */
void OnCMakeMouseEnter(wxMouseEvent& event);
+ /**
+ * Handles when the edit cmakelists file button exits hover.
+ */
void OnCMakeMouseExit(wxMouseEvent& event);
};
private:
/**
- * Project described
+ * Project described.
*/
modelCDMProject* project;
protected:
/**
* Handles when a return link is pressed.
+ * @param event Has the link reference to know where to return
*/
void OnBtnReturn(wxHyperlinkEvent& event);
/**
* Handles when a packages link is pressed.
+ * @param event Has the link reference to know which package was selected.
*/
void OnLnkPackageSelect(wxHyperlinkEvent& event);
/**
/**
* Handles when a package link is hovered.
+ * @param event Has the link reference to know which package was selected.
*/
void OnMouseEnter(wxMouseEvent& event);
/**
* Handles when a package link button finishes hover.
+ * @param event Has the link reference to know which package was selected.
*/
void OnMouseExit(wxMouseEvent& event);
/**