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

Search Toolkit Book for CFolderEditDlg

#include <gui/core/folder_edit_dlg.hpp>

+ Inheritance diagram for CFolderEditDlg:
+ Collaboration diagram for CFolderEditDlg:

Public Member Functions

 CFolderEditDlg ()
 
 CFolderEditDlg (wxWindow *parent, wxWindowID id=ID_CFOLDEREDITDLG, const wxString &caption=_("Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxCLIP_CHILDREN|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CFOLDEREDITDLG, const wxString &caption=_("Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxCLIP_CHILDREN|wxTAB_TRAVERSAL)
 
 ~CFolderEditDlg ()
 
void Init ()
 
void CreateControls ()
 
void OnInitDialog (wxInitDialogEvent &event)
 
void OnRestoreBtn (wxCommandEvent &event)
 
void OnOkClick (wxCommandEvent &event)
 
wxString GetDescr () const
 
void SetDescr (wxString value)
 
bool GetReadOnly () const
 
void SetReadOnly (bool value)
 
wxString GetFolderName () const
 
void SetFolderName (wxString value)
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 
void SetDataObject (const CSerialObject *object, objects::CScope *scope)
 
void SetNameValidator (IFNameValidator *validator)
 
- Public Member Functions inherited from CDialog
 CDialog ()
 
virtual void InitDialog ()
 
virtual void EndModal (int retCode)
 
virtual void SetRegistryPath (const string &path)
 
virtual void LoadSettings ()
 
virtual void SaveSettings () const
 

Static Public Member Functions

static bool ShowToolTips ()
 

Protected Types

enum  { ID_CFOLDEREDITDLG = 10000 , ID_NAME = 10001 , ID_RESTORE = 10026 , ID_DESCR = 10025 }
 

Protected Attributes

wxTextCtrl * m_NameCtrl
 
wxButton * m_RestoreBtn
 
wxTextCtrl * m_DescrCtrl
 
wxString m_Descr
 
bool m_ReadOnly
 
wxString m_Name
 
const CSerialObjectm_Object
 
objects::CScope * m_Scope
 
IFNameValidatorm_NameValidator
 
- Protected Attributes inherited from CDialog
string m_RegPath
 

Additional Inherited Members

- Protected Member Functions inherited from CDialog
virtual void x_LoadSettings (const CRegistryReadView &)
 override these functions in derived classes More...
 
virtual void x_SaveSettings (CRegistryWriteView) const
 
void x_CorrectDisplay (wxRect &rc)
 move to the parent display More...
 

Detailed Description

Definition at line 74 of file folder_edit_dlg.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
ID_CFOLDEREDITDLG 
ID_NAME 
ID_RESTORE 
ID_DESCR 

Definition at line 132 of file folder_edit_dlg.hpp.

Constructor & Destructor Documentation

◆ CFolderEditDlg() [1/2]

CFolderEditDlg::CFolderEditDlg ( )

Definition at line 73 of file folder_edit_dlg.cpp.

References Init().

◆ CFolderEditDlg() [2/2]

CFolderEditDlg::CFolderEditDlg ( wxWindow *  parent,
wxWindowID  id = ID_CFOLDEREDITDLG,
const wxString &  caption = _("Dialog"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxCLIP_CHILDREN|wxTAB_TRAVERSAL 
)

Definition at line 78 of file folder_edit_dlg.cpp.

References Create(), Init(), and ncbi::grid::netcache::search::fields::size.

◆ ~CFolderEditDlg()

CFolderEditDlg::~CFolderEditDlg ( )

Definition at line 101 of file folder_edit_dlg.cpp.

Member Function Documentation

◆ Create()

bool CFolderEditDlg::Create ( wxWindow *  parent,
wxWindowID  id = ID_CFOLDEREDITDLG,
const wxString &  caption = _("Dialog"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxCLIP_CHILDREN|wxTAB_TRAVERSAL 
)

Definition at line 84 of file folder_edit_dlg.cpp.

References CreateControls(), and ncbi::grid::netcache::search::fields::size.

Referenced by CFolderEditDlg().

◆ CreateControls()

void CFolderEditDlg::CreateControls ( )

Definition at line 122 of file folder_edit_dlg.cpp.

References _, ID_DESCR, ID_NAME, ID_RESTORE, m_Descr, m_DescrCtrl, m_Name, m_NameCtrl, and m_RestoreBtn.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CFolderEditDlg::GetBitmapResource ( const wxString &  name)

Definition at line 236 of file folder_edit_dlg.cpp.

◆ GetDescr()

wxString CFolderEditDlg::GetDescr ( void  ) const
inline

Definition at line 102 of file folder_edit_dlg.hpp.

References m_Descr.

Referenced by PT::CProjectItem::DoProperties(), and s_EditFolder().

◆ GetFolderName()

wxString CFolderEditDlg::GetFolderName ( ) const
inline

Definition at line 108 of file folder_edit_dlg.hpp.

References m_Name.

Referenced by PT::CProjectItem::DoProperties(), and s_EditFolder().

◆ GetIconResource()

wxIcon CFolderEditDlg::GetIconResource ( const wxString &  name)

Definition at line 246 of file folder_edit_dlg.cpp.

◆ GetReadOnly()

bool CFolderEditDlg::GetReadOnly ( ) const
inline

Definition at line 105 of file folder_edit_dlg.hpp.

References m_ReadOnly.

◆ Init()

void CFolderEditDlg::Init ( void  )

Definition at line 108 of file folder_edit_dlg.cpp.

References m_DescrCtrl, m_NameCtrl, m_NameValidator, m_Object, m_ReadOnly, m_RestoreBtn, m_Scope, and NULL.

Referenced by CFolderEditDlg().

◆ OnInitDialog()

void CFolderEditDlg::OnInitDialog ( wxInitDialogEvent &  event)

Definition at line 199 of file folder_edit_dlg.cpp.

References m_DescrCtrl, m_NameCtrl, m_Object, m_ReadOnly, m_RestoreBtn, m_Scope, and NULL.

◆ OnOkClick()

void CFolderEditDlg::OnOkClick ( wxCommandEvent &  event)

◆ OnRestoreBtn()

void CFolderEditDlg::OnRestoreBtn ( wxCommandEvent &  event)

◆ SetDataObject()

void CFolderEditDlg::SetDataObject ( const CSerialObject object,
objects::CScope *  scope 
)

Definition at line 216 of file folder_edit_dlg.cpp.

References m_Object, and m_Scope.

Referenced by PT::CProjectItem::DoProperties().

◆ SetDescr()

void CFolderEditDlg::SetDescr ( wxString  value)
inline

Definition at line 103 of file folder_edit_dlg.hpp.

References m_Descr, and rapidjson::value.

Referenced by PT::CProjectItem::DoProperties(), and s_EditFolder().

◆ SetFolderName()

void CFolderEditDlg::SetFolderName ( wxString  value)
inline

Definition at line 109 of file folder_edit_dlg.hpp.

References m_Name, and rapidjson::value.

Referenced by PT::CProjectItem::DoProperties(), and s_EditFolder().

◆ SetNameValidator()

void CFolderEditDlg::SetNameValidator ( IFNameValidator validator)

Definition at line 223 of file folder_edit_dlg.cpp.

References m_NameValidator.

Referenced by PT::CProjectItem::DoProperties(), and s_EditFolder().

◆ SetReadOnly()

void CFolderEditDlg::SetReadOnly ( bool  value)
inline

Definition at line 106 of file folder_edit_dlg.hpp.

References m_ReadOnly, and rapidjson::value.

Referenced by s_EditFolder().

◆ ShowToolTips()

bool CFolderEditDlg::ShowToolTips ( )
static

Definition at line 230 of file folder_edit_dlg.cpp.

Member Data Documentation

◆ m_Descr

wxString CFolderEditDlg::m_Descr
protected

Definition at line 129 of file folder_edit_dlg.hpp.

Referenced by CreateControls(), GetDescr(), and SetDescr().

◆ m_DescrCtrl

wxTextCtrl* CFolderEditDlg::m_DescrCtrl
protected

Definition at line 127 of file folder_edit_dlg.hpp.

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

◆ m_Name

wxString CFolderEditDlg::m_Name
protected

◆ m_NameCtrl

wxTextCtrl* CFolderEditDlg::m_NameCtrl
protected

Definition at line 125 of file folder_edit_dlg.hpp.

Referenced by CreateControls(), Init(), OnInitDialog(), and OnRestoreBtn().

◆ m_NameValidator

IFNameValidator* CFolderEditDlg::m_NameValidator
protected

Definition at line 142 of file folder_edit_dlg.hpp.

Referenced by Init(), OnOkClick(), and SetNameValidator().

◆ m_Object

const CSerialObject* CFolderEditDlg::m_Object
protected

Definition at line 140 of file folder_edit_dlg.hpp.

Referenced by Init(), OnInitDialog(), OnRestoreBtn(), and SetDataObject().

◆ m_ReadOnly

bool CFolderEditDlg::m_ReadOnly
protected

Definition at line 130 of file folder_edit_dlg.hpp.

Referenced by GetReadOnly(), Init(), OnInitDialog(), and SetReadOnly().

◆ m_RestoreBtn

wxButton* CFolderEditDlg::m_RestoreBtn
protected

Definition at line 126 of file folder_edit_dlg.hpp.

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

◆ m_Scope

objects::CScope* CFolderEditDlg::m_Scope
protected

Definition at line 141 of file folder_edit_dlg.hpp.

Referenced by Init(), OnInitDialog(), OnRestoreBtn(), and SetDataObject().


The documentation for this class was generated from the following files:
Modified on Sun Jun 23 05:22:05 2024 by modify_doxy.py rev. 669887