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

Search Toolkit Book for CMacroCompoundConstraintPanel

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

+ Inheritance diagram for CMacroCompoundConstraintPanel:
+ Collaboration diagram for CMacroCompoundConstraintPanel:

Public Member Functions

 CMacroCompoundConstraintPanel ()
 
 CMacroCompoundConstraintPanel (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
 ~CMacroCompoundConstraintPanel ()
 
void Init ()
 
void CreateControls ()
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 
void ClearValues (bool enable_add)
 
void OnAddConstraint (wxCommandEvent &event)
 
void OnRemoveConstraint (wxCommandEvent &event)
 
void OnEditConstraint (wxCommandEvent &event)
 Called when a constraint is edited It should work both when a macro is created and when a macro is edited. More...
 
void OnUpdateClearButton (wxUpdateUIEvent &event)
 
void AddConstraint (pair< string, string > item, int id, const vector< string > &vars=vector< string >(), const string &qual_name=kEmptyStr, EMMatcherPanelType panel_type=EMMatcherPanelType::eMMatcher_NotSet, const vector< CFuncWithArgs > &func_info=vector< CFuncWithArgs >())
 
void SetConstraints (const vector< CFuncWithArgs > &)
 When setting constraints from a macro that's edited 1. More...
 
bool IsSetConstraints ()
 
TStringPairsVector GetConstraints ()
 
vector< stringGetDescription ()
 
bool HasVariables ()
 
string GetVariables ()
 

Static Public Member Functions

static bool ShowToolTips ()
 

Private Member Functions

void x_PrintState () const
 

Private Attributes

wxCheckListBox * m_CheckListBox
 
wxButton * m_Add
 
wxButton * m_Clear
 
size_t m_Num { 0 }
 
map< string, unsigned > m_ConstraintMap
 
vector< SMacroConstraintm_Constraints
 

Detailed Description

Definition at line 53 of file macro_constraint_panel.hpp.

Constructor & Destructor Documentation

◆ CMacroCompoundConstraintPanel() [1/2]

CMacroCompoundConstraintPanel::CMacroCompoundConstraintPanel ( )

CMacroCompoundConstraintPanel event table definition

CMacroCompoundConstraintPanel constructors

Definition at line 64 of file macro_constraint_panel.cpp.

References Init().

◆ CMacroCompoundConstraintPanel() [2/2]

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

◆ ~CMacroCompoundConstraintPanel()

CMacroCompoundConstraintPanel::~CMacroCompoundConstraintPanel ( )

CMacroCompoundConstraintPanel destructor

Definition at line 101 of file macro_constraint_panel.cpp.

Member Function Documentation

◆ AddConstraint()

void CMacroCompoundConstraintPanel::AddConstraint ( pair< string, string item,
int  id,
const vector< string > &  vars = vector<string>(),
const string qual_name = kEmptyStr,
EMMatcherPanelType  panel_type = EMMatcherPanelType::eMMatcher_NotSet,
const vector< CFuncWithArgs > &  func_info = vector<CFuncWithArgs>() 
)

◆ ClearValues()

void CMacroCompoundConstraintPanel::ClearValues ( bool  enable_add)

◆ Create()

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

◆ CreateControls()

void CMacroCompoundConstraintPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CMacroCompoundConstraintPanel::GetBitmapResource ( const wxString &  name)

Get bitmap resources

Definition at line 169 of file macro_constraint_panel.cpp.

◆ GetConstraints()

TStringPairsVector CMacroCompoundConstraintPanel::GetConstraints ( )

◆ GetDescription()

vector< string > CMacroCompoundConstraintPanel::GetDescription ( void  )

Definition at line 487 of file macro_constraint_panel.cpp.

References i, label, and m_CheckListBox.

Referenced by CMacroEditingActionPanel::GetMacro().

◆ GetIconResource()

wxIcon CMacroCompoundConstraintPanel::GetIconResource ( const wxString &  name)

Get icon resources

Definition at line 182 of file macro_constraint_panel.cpp.

◆ GetVariables()

string CMacroCompoundConstraintPanel::GetVariables ( )

◆ HasVariables()

bool CMacroCompoundConstraintPanel::HasVariables ( )

Definition at line 500 of file macro_constraint_panel.cpp.

References i, label, m_CheckListBox, and m_Constraints.

Referenced by CMacroEditingActionPanel::GetMacro().

◆ Init()

void CMacroCompoundConstraintPanel::Init ( void  )

Member initialisation

Definition at line 112 of file macro_constraint_panel.cpp.

References m_Add, m_CheckListBox, m_Clear, and NULL.

Referenced by CMacroCompoundConstraintPanel().

◆ IsSetConstraints()

bool CMacroCompoundConstraintPanel::IsSetConstraints ( )

Definition at line 467 of file macro_constraint_panel.cpp.

References m_CheckListBox.

◆ OnAddConstraint()

void CMacroCompoundConstraintPanel::OnAddConstraint ( wxCommandEvent &  event)

◆ OnEditConstraint()

void CMacroCompoundConstraintPanel::OnEditConstraint ( wxCommandEvent &  event)

Called when a constraint is edited It should work both when a macro is created and when a macro is edited.

Definition at line 293 of file macro_constraint_panel.cpp.

References Error(), CMacroEditingActionPanel::GetForTarget(), CException::GetMsg(), label, LOG_POST, m_ConstraintMap, m_Constraints, NcbiErrorBox(), CMacroAddConstraint::SetConstraint(), CMacroAddConstraint::SetEditId(), and CMacroAddConstraint::SetNumConstraints().

◆ OnRemoveConstraint()

void CMacroCompoundConstraintPanel::OnRemoveConstraint ( wxCommandEvent &  event)

◆ OnUpdateClearButton()

void CMacroCompoundConstraintPanel::OnUpdateClearButton ( wxUpdateUIEvent &  event)

Definition at line 320 of file macro_constraint_panel.cpp.

References m_CheckListBox.

◆ SetConstraints()

void CMacroCompoundConstraintPanel::SetConstraints ( const vector< CFuncWithArgs > &  func_info)

◆ ShowToolTips()

bool CMacroCompoundConstraintPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 160 of file macro_constraint_panel.cpp.

◆ x_PrintState()

void CMacroCompoundConstraintPanel::x_PrintState ( ) const
private

Definition at line 522 of file macro_constraint_panel.cpp.

References Info(), LOG_POST, m_Constraints, and m_Num.

Member Data Documentation

◆ m_Add

wxButton* CMacroCompoundConstraintPanel::m_Add
private

Definition at line 106 of file macro_constraint_panel.hpp.

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

◆ m_CheckListBox

wxCheckListBox* CMacroCompoundConstraintPanel::m_CheckListBox
private

◆ m_Clear

wxButton* CMacroCompoundConstraintPanel::m_Clear
private

Definition at line 107 of file macro_constraint_panel.hpp.

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

◆ m_ConstraintMap

map<string, unsigned> CMacroCompoundConstraintPanel::m_ConstraintMap
private

◆ m_Constraints

vector<SMacroConstraint> CMacroCompoundConstraintPanel::m_Constraints
private

◆ m_Num

size_t CMacroCompoundConstraintPanel::m_Num { 0 }
private

The documentation for this class was generated from the following files:
Modified on Wed Feb 21 09:56:48 2024 by modify_doxy.py rev. 669887