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

Search Toolkit Book for CMacroAddConstraint

#include <gui/widgets/edit/macro_add_constraint_panel.hpp>

+ Inheritance diagram for CMacroAddConstraint:
+ Collaboration diagram for CMacroAddConstraint:

Public Types

enum  { ID_MACROADDCONSTRAINTCHOICEBK = 10500 }
 

Public Member Functions

 CMacroAddConstraint ()
 
 CMacroAddConstraint (wxWindow *parent, const pair< string, string > &target, wxWindowID id=wxID_ANY, const wxString &caption=_("Add Macro Constraint"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Add Macro Constraint"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
 ~CMacroAddConstraint ()
 
void Init ()
 
void CreateControls ()
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 
void OnAccept (wxCommandEvent &event)
 
void OnCancel (wxCommandEvent &event)
 
virtual void UpdateEditor (void)
 
void SetEditId (int id)
 
void SetNumConstraints (size_t num)
 
void SetConstraint (const SMacroConstraint &constr)
 
void SetAndUpdateConstraint (SMacroConstraint &constr)
 
- Public Member Functions inherited from CFieldNamePanelParent
virtual ~CFieldNamePanelParent ()
 

Static Public Member Functions

static bool ShowToolTips ()
 

Private Member Functions

void SetStringSelection (const string &sel)
 

Private Attributes

wxChoicebook * m_Notebook
 
vector< EMMatcherPanelTypem_MatchingTypes
 
pair< string, stringm_target
 
int m_id { -1 }
 
size_t m_num { 0 }
 

Detailed Description

Definition at line 53 of file macro_add_constraint_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_MACROADDCONSTRAINTCHOICEBK 

Definition at line 105 of file macro_add_constraint_panel.hpp.

Constructor & Destructor Documentation

◆ CMacroAddConstraint() [1/2]

CMacroAddConstraint::CMacroAddConstraint ( )

Definition at line 257 of file macro_add_constraint_panel.cpp.

References Init().

◆ CMacroAddConstraint() [2/2]

CMacroAddConstraint::CMacroAddConstraint ( wxWindow *  parent,
const pair< string, string > &  target,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("Add Macro Constraint"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CMacroAddConstraint()

CMacroAddConstraint::~CMacroAddConstraint ( )

Definition at line 285 of file macro_add_constraint_panel.cpp.

Member Function Documentation

◆ Create()

bool CMacroAddConstraint::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("Add Macro Constraint"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CMacroAddConstraint::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CMacroAddConstraint::GetBitmapResource ( const wxString &  name)

Definition at line 483 of file macro_add_constraint_panel.cpp.

◆ GetIconResource()

wxIcon CMacroAddConstraint::GetIconResource ( const wxString &  name)

Definition at line 488 of file macro_add_constraint_panel.cpp.

◆ Init()

void CMacroAddConstraint::Init ( void  )

Definition at line 291 of file macro_add_constraint_panel.cpp.

References m_Notebook, and NULL.

Referenced by CMacroAddConstraint().

◆ OnAccept()

void CMacroAddConstraint::OnAccept ( wxCommandEvent &  event)

◆ OnCancel()

void CMacroAddConstraint::OnCancel ( wxCommandEvent &  event)

Definition at line 494 of file macro_add_constraint_panel.cpp.

◆ SetAndUpdateConstraint()

void CMacroAddConstraint::SetAndUpdateConstraint ( SMacroConstraint constr)

◆ SetConstraint()

void CMacroAddConstraint::SetConstraint ( const SMacroConstraint constr)

◆ SetEditId()

void CMacroAddConstraint::SetEditId ( int  id)
inline

Definition at line 99 of file macro_add_constraint_panel.hpp.

References m_id.

Referenced by CMacroCompoundConstraintPanel::OnEditConstraint().

◆ SetNumConstraints()

void CMacroAddConstraint::SetNumConstraints ( size_t  num)
inline

◆ SetStringSelection()

void CMacroAddConstraint::SetStringSelection ( const string sel)
private

Definition at line 467 of file macro_add_constraint_panel.cpp.

References i, label, and m_Notebook.

Referenced by CreateControls().

◆ ShowToolTips()

bool CMacroAddConstraint::ShowToolTips ( )
static

Definition at line 478 of file macro_add_constraint_panel.cpp.

◆ UpdateEditor()

virtual void CMacroAddConstraint::UpdateEditor ( void  )
inlinevirtual

Implements CFieldNamePanelParent.

Definition at line 97 of file macro_add_constraint_panel.hpp.

Member Data Documentation

◆ m_id

int CMacroAddConstraint::m_id { -1 }
private

Definition at line 118 of file macro_add_constraint_panel.hpp.

Referenced by OnAccept(), and SetEditId().

◆ m_MatchingTypes

vector<EMMatcherPanelType> CMacroAddConstraint::m_MatchingTypes
private

◆ m_Notebook

wxChoicebook* CMacroAddConstraint::m_Notebook
private

◆ m_num

size_t CMacroAddConstraint::m_num { 0 }
private

◆ m_target

pair<string, string> CMacroAddConstraint::m_target
private

The documentation for this class was generated from the following files:
Modified on Thu Feb 29 12:17:45 2024 by modify_doxy.py rev. 669887