NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CProjectSelectorPanel Class Reference

Search Toolkit Book for CProjectSelectorPanel

CProjectSelectorPanel - a panel that allows the user to specify how the project items created by a plug-in should be packaged. More...

#include <gui/core/project_selector_panel.hpp>

+ Inheritance diagram for CProjectSelectorPanel:
+ Collaboration diagram for CProjectSelectorPanel:

Public Types

enum  {
  ID_CPROJECTSELECTORPANEL = 10008 , ID_CREATE_NEW_BTN = 10015 , ID_CREATE_DEP_BTN = 10016 , ID_ADD_TO_EXIST_BTN = 10017 ,
  ID_PROJECT_LIST = 10018 , ID_PACKAGE_CHECK = 10019 , ID_CREATE_FOLDER_CHECK = 10020 , ID_FOLDER_INPUT = 10021
}
 

Public Member Functions

 CProjectSelectorPanel ()
 CProjectSelectorPanel. More...
 
 CProjectSelectorPanel (wxWindow *parent, wxWindowID id=ID_CPROJECTSELECTORPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CPROJECTSELECTORPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
 ~CProjectSelectorPanel ()
 
void Init ()
 
void CreateControls ()
 
void SetParams (const SProjectSelectorParams &params)
 
void GetParams (SProjectSelectorParams &params) const
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
void OnInitDialog (wxInitDialogEvent &event)
 
void OnCreateNewBtnSelected (wxCommandEvent &event)
 
void OnCreateDepBtnSelected (wxCommandEvent &event)
 
void OnAddToExistBtnSelected (wxCommandEvent &event)
 
void OnProjectListSelected (wxCommandEvent &event)
 
void OnCreateFolderCheckClick (wxCommandEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 
void SetProjectService (CProjectService *service)
 
void SetSimpleMode ()
 

Static Public Member Functions

static bool ShowToolTips ()
 

Public Attributes

wxRadioButton * m_CreateSeparateRadio
 
wxRadioButton * m_ExistingRadio
 
wxListBox * m_ProjectList
 
wxStaticLine * m_Separator
 
wxCheckBox * m_PackageCheck
 
wxCheckBox * m_FolderCheck
 
wxTextCtrl * m_FolderInput
 

Protected Types

using TProjectId = objects::CGBProjectHandle::TId
 
typedef vector< TProjectIdTProjectIdVector
 

Protected Member Functions

void x_FillProjectsList ()
 
void x_SelectProjectByParams ()
 

Protected Attributes

CProjectServicem_ProjectService
 this member is used for saving projects IDs within the session static TProjectId m_LastSelectedProjectId; More...
 
TProjectIdVector m_ProjectIds
 
SProjectSelectorParams m_Params
 
bool m_SimpleMode
 
bool m_CreateOption
 
bool m_SeparateOption
 
bool m_ExistingOption
 
wxString m_FolderName
 
int m_SelProjectIndex
 

Detailed Description

CProjectSelectorPanel - a panel that allows the user to specify how the project items created by a plug-in should be packaged.

Definition at line 109 of file project_selector_panel.hpp.

Member Typedef Documentation

◆ TProjectId

using CProjectSelectorPanel::TProjectId = objects::CGBProjectHandle::TId
protected

Definition at line 186 of file project_selector_panel.hpp.

◆ TProjectIdVector

Definition at line 187 of file project_selector_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_CPROJECTSELECTORPANEL 
ID_CREATE_NEW_BTN 
ID_CREATE_DEP_BTN 
ID_ADD_TO_EXIST_BTN 
ID_PROJECT_LIST 
ID_PACKAGE_CHECK 
ID_CREATE_FOLDER_CHECK 
ID_FOLDER_INPUT 

Definition at line 165 of file project_selector_panel.hpp.

Constructor & Destructor Documentation

◆ CProjectSelectorPanel() [1/2]

CProjectSelectorPanel::CProjectSelectorPanel ( )

CProjectSelectorPanel.

Definition at line 182 of file project_selector_panel.cpp.

References Init().

◆ CProjectSelectorPanel() [2/2]

CProjectSelectorPanel::CProjectSelectorPanel ( wxWindow *  parent,
wxWindowID  id = ID_CPROJECTSELECTORPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ ~CProjectSelectorPanel()

CProjectSelectorPanel::~CProjectSelectorPanel ( )

Definition at line 209 of file project_selector_panel.cpp.

Member Function Documentation

◆ Create()

bool CProjectSelectorPanel::Create ( wxWindow *  parent,
wxWindowID  id = ID_CPROJECTSELECTORPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CProjectSelectorPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CProjectSelectorPanel::GetBitmapResource ( const wxString &  name)

Definition at line 476 of file project_selector_panel.cpp.

◆ GetIconResource()

wxIcon CProjectSelectorPanel::GetIconResource ( const wxString &  name)

Definition at line 486 of file project_selector_panel.cpp.

◆ GetParams()

void CProjectSelectorPanel::GetParams ( SProjectSelectorParams params) const

◆ Init()

void CProjectSelectorPanel::Init ( void  )

◆ OnAddToExistBtnSelected()

void CProjectSelectorPanel::OnAddToExistBtnSelected ( wxCommandEvent &  event)

Definition at line 364 of file project_selector_panel.cpp.

References TransferDataFromWindow(), and TransferDataToWindow().

◆ OnCreateDepBtnSelected()

void CProjectSelectorPanel::OnCreateDepBtnSelected ( wxCommandEvent &  event)

Definition at line 357 of file project_selector_panel.cpp.

References TransferDataFromWindow(), and TransferDataToWindow().

◆ OnCreateFolderCheckClick()

void CProjectSelectorPanel::OnCreateFolderCheckClick ( wxCommandEvent &  event)

Definition at line 394 of file project_selector_panel.cpp.

References TransferDataFromWindow(), and TransferDataToWindow().

◆ OnCreateNewBtnSelected()

void CProjectSelectorPanel::OnCreateNewBtnSelected ( wxCommandEvent &  event)

Definition at line 350 of file project_selector_panel.cpp.

References TransferDataFromWindow(), and TransferDataToWindow().

◆ OnInitDialog()

void CProjectSelectorPanel::OnInitDialog ( wxInitDialogEvent &  event)

Definition at line 464 of file project_selector_panel.cpp.

◆ OnProjectListSelected()

void CProjectSelectorPanel::OnProjectListSelected ( wxCommandEvent &  event)

◆ SetParams()

void CProjectSelectorPanel::SetParams ( const SProjectSelectorParams params)

◆ SetProjectService()

void CProjectSelectorPanel::SetProjectService ( CProjectService service)

◆ SetSimpleMode()

void CProjectSelectorPanel::SetSimpleMode ( )

◆ ShowToolTips()

bool CProjectSelectorPanel::ShowToolTips ( )
static

Definition at line 470 of file project_selector_panel.cpp.

◆ TransferDataFromWindow()

bool CProjectSelectorPanel::TransferDataFromWindow ( )
virtual

◆ TransferDataToWindow()

bool CProjectSelectorPanel::TransferDataToWindow ( )
virtual

◆ x_FillProjectsList()

void CProjectSelectorPanel::x_FillProjectsList ( )
protected

◆ x_SelectProjectByParams()

void CProjectSelectorPanel::x_SelectProjectByParams ( )
protected

Member Data Documentation

◆ m_CreateOption

bool CProjectSelectorPanel::m_CreateOption
protected

◆ m_CreateSeparateRadio

wxRadioButton* CProjectSelectorPanel::m_CreateSeparateRadio

Definition at line 158 of file project_selector_panel.hpp.

Referenced by CreateControls(), Init(), and TransferDataToWindow().

◆ m_ExistingOption

bool CProjectSelectorPanel::m_ExistingOption
protected

◆ m_ExistingRadio

wxRadioButton* CProjectSelectorPanel::m_ExistingRadio

◆ m_FolderCheck

wxCheckBox* CProjectSelectorPanel::m_FolderCheck

Definition at line 163 of file project_selector_panel.hpp.

Referenced by CreateControls(), Init(), and SetSimpleMode().

◆ m_FolderInput

wxTextCtrl* CProjectSelectorPanel::m_FolderInput

Definition at line 164 of file project_selector_panel.hpp.

Referenced by CreateControls(), Init(), and TransferDataToWindow().

◆ m_FolderName

wxString CProjectSelectorPanel::m_FolderName
protected

◆ m_PackageCheck

wxCheckBox* CProjectSelectorPanel::m_PackageCheck

◆ m_Params

SProjectSelectorParams CProjectSelectorPanel::m_Params
protected

◆ m_ProjectIds

TProjectIdVector CProjectSelectorPanel::m_ProjectIds
protected

◆ m_ProjectList

wxListBox* CProjectSelectorPanel::m_ProjectList

◆ m_ProjectService

CProjectService* CProjectSelectorPanel::m_ProjectService
protected

this member is used for saving projects IDs within the session static TProjectId m_LastSelectedProjectId;

Definition at line 193 of file project_selector_panel.hpp.

Referenced by Init(), SetProjectService(), and x_FillProjectsList().

◆ m_SelProjectIndex

int CProjectSelectorPanel::m_SelProjectIndex
protected

◆ m_SeparateOption

bool CProjectSelectorPanel::m_SeparateOption
protected

◆ m_Separator

wxStaticLine* CProjectSelectorPanel::m_Separator

Definition at line 161 of file project_selector_panel.hpp.

Referenced by CreateControls(), Init(), and SetSimpleMode().

◆ m_SimpleMode

bool CProjectSelectorPanel::m_SimpleMode
protected

Definition at line 199 of file project_selector_panel.hpp.

Referenced by Init().


The documentation for this class was generated from the following files:
Modified on Sun Mar 03 03:11:23 2024 by modify_doxy.py rev. 669887