NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
CTitlePanel Class Reference

Search Toolkit Book for CTitlePanel

#include "titlepanel.hpp"
(Private to src/gui/widgets/edit.)

+ Inheritance diagram for CTitlePanel:
+ Collaboration diagram for CTitlePanel:

Public Member Functions

 CTitlePanel ()
 Constructors. More...
 
 CTitlePanel (wxWindow *parent, CRef< objects::CTitle::C_E > title, wxWindowID id=10015, const wxString &caption=_("TitlePanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10015, const wxString &caption=_("TitlePanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CTitlePanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
virtual bool TransferDataFromWindow ()
 
virtual bool TransferDataToWindow ()
 
void OnSearchTitle (wxCommandEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Public Attributes

CRichTextCtrlm_TitleCtrl
 

Private Attributes

CRef< objects::CTitle::C_E > m_Title
 

Detailed Description

CTitlePanel class declaration

Definition at line 83 of file titlepanel.hpp.

Constructor & Destructor Documentation

◆ CTitlePanel() [1/2]

CTitlePanel::CTitlePanel ( )

Constructors.

Definition at line 76 of file titlepanel.cpp.

References Init().

◆ CTitlePanel() [2/2]

CTitlePanel::CTitlePanel ( wxWindow *  parent,
CRef< objects::CTitle::C_E >  title,
wxWindowID  id = 10015,
const wxString &  caption = _("TitlePanel"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Definition at line 81 of file titlepanel.cpp.

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

◆ ~CTitlePanel()

CTitlePanel::~CTitlePanel ( )

Destructor.

Definition at line 114 of file titlepanel.cpp.

Member Function Documentation

◆ Create()

bool CTitlePanel::Create ( wxWindow *  parent,
wxWindowID  id = 10015,
const wxString &  caption = _("TitlePanel"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

Definition at line 93 of file titlepanel.cpp.

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

Referenced by CTitlePanel().

◆ CreateControls()

void CTitlePanel::CreateControls ( )

Creates the controls and sizers.

Definition at line 137 of file titlepanel.cpp.

References _, ID_PUB_TITLE_SEARCH, ID_TEXTCTRL1, and m_TitleCtrl.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CTitlePanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 263 of file titlepanel.cpp.

◆ GetIconResource()

wxIcon CTitlePanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 276 of file titlepanel.cpp.

◆ Init()

void CTitlePanel::Init ( void  )

Initialises member variables.

Definition at line 125 of file titlepanel.cpp.

References m_TitleCtrl, and NULL.

Referenced by CTitlePanel().

◆ OnSearchTitle()

void CTitlePanel::OnSearchTitle ( wxCommandEvent &  event)

Definition at line 285 of file titlepanel.cpp.

References m_TitleCtrl, and wxT.

◆ ShowToolTips()

bool CTitlePanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 254 of file titlepanel.cpp.

◆ TransferDataFromWindow()

bool CTitlePanel::TransferDataFromWindow ( )
virtual

◆ TransferDataToWindow()

bool CTitlePanel::TransferDataToWindow ( )
virtual

Definition at line 158 of file titlepanel.cpp.

References m_Title, m_TitleCtrl, ToWxString(), and wxT.

Member Data Documentation

◆ m_Title

CRef<objects::CTitle::C_E> CTitlePanel::m_Title
private

Definition at line 129 of file titlepanel.hpp.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

◆ m_TitleCtrl

CRichTextCtrl* CTitlePanel::m_TitleCtrl

The documentation for this class was generated from the following files:
Modified on Mon Feb 26 04:01:39 2024 by modify_doxy.py rev. 669887