NCBI C++ ToolKit
|
Search Toolkit Book for CAddSuspectProductRule
#include <gui/packages/pkg_sequence_edit/suspect_product_rule_editor.hpp>
Public Member Functions | |
CAddSuspectProductRule () | |
CAddSuspectProductRule (wxWindow *parent, bool before, objects::CSeq_entry_Handle seh, wxWindowID id=wxID_ANY, const wxString &caption=_("Suspect Rule"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Suspect Rule"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
~CAddSuspectProductRule () | |
void | Init () |
void | CreateControls () |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
void | OnAccept (wxCommandEvent &event) |
void | OnCancel (wxCommandEvent &event) |
void | SetRule (CRef< CSuspect_rule > rule, int pos) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Private Attributes | |
wxChoice * | m_Type |
wxChoicebook * | m_Matches |
wxChoicebook * | m_DoesNotMatch |
wxChoicebook * | m_Action |
wxCheckBox * | m_OriginalToNote |
wxCheckBox * | m_Fatal |
wxTextCtrl * | m_Description |
bool | m_before |
bool | m_replace |
CRef< CSuspect_rule > | m_rule |
int | m_pos |
CSuspectCompoundConstraintPanel * | m_CompoundConstraintPanel |
objects::CSeq_entry_Handle | m_TopSeqEntry |
Definition at line 173 of file suspect_product_rule_editor.hpp.
CAddSuspectProductRule::CAddSuspectProductRule | ( | ) |
Definition at line 985 of file suspect_product_rule_editor.cpp.
References Init().
CAddSuspectProductRule::CAddSuspectProductRule | ( | wxWindow * | parent, |
bool | before, | ||
objects::CSeq_entry_Handle | seh, | ||
wxWindowID | id = wxID_ANY , |
||
const wxString & | caption = _("Suspect Rule") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 990 of file suspect_product_rule_editor.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CAddSuspectProductRule::~CAddSuspectProductRule | ( | ) |
Definition at line 1013 of file suspect_product_rule_editor.cpp.
bool CAddSuspectProductRule::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxString & | caption = _("Suspect Rule") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 997 of file suspect_product_rule_editor.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CAddSuspectProductRule().
void CAddSuspectProductRule::CreateControls | ( | ) |
Definition at line 1025 of file suspect_product_rule_editor.cpp.
References _, ENUM_METHOD_NAME, i, m_Action, m_CompoundConstraintPanel, m_Description, m_DoesNotMatch, m_Fatal, m_Matches, m_OriginalToNote, m_Type, CRef< C, Locker >::Reset(), CSearch_func_Base::SetAll_caps(), CSearch_func_Base::SetContains_plural(), CSearch_func_Base::SetHas_term(), CSearch_func_Base::SetN_or_more_brackets_or_parentheses(), CSearch_func_Base::SetPrefix_and_numbers(), CSearch_func_Base::SetThree_numbers(), CSearch_func_Base::SetToo_long(), CSearch_func_Base::SetUnbalanced_paren(), CSearch_func_Base::SetUnderscore(), and wxID_ANY.
Referenced by Create().
wxBitmap CAddSuspectProductRule::GetBitmapResource | ( | const wxString & | name | ) |
Definition at line 1212 of file suspect_product_rule_editor.cpp.
wxIcon CAddSuspectProductRule::GetIconResource | ( | const wxString & | name | ) |
Definition at line 1220 of file suspect_product_rule_editor.cpp.
void CAddSuspectProductRule::Init | ( | void | ) |
Definition at line 1019 of file suspect_product_rule_editor.cpp.
Referenced by CAddSuspectProductRule().
void CAddSuspectProductRule::OnAccept | ( | wxCommandEvent & | event | ) |
Definition at line 1234 of file suspect_product_rule_editor.cpp.
References CSuspectProductRulesEditor::AddRule(), CSuspectCompoundConstraintPanel::GetConstraints(), CReplace_rule_provider::GetReplace(), CSearch_func_provider::GetSearchFunc(), CSuspectCompoundConstraintPanel::IsSetConstraints(), m_Action, m_before, m_CompoundConstraintPanel, m_Description, m_DoesNotMatch, m_Fatal, m_Matches, m_OriginalToNote, m_pos, m_replace, m_rule, m_Type, match(), CSuspectProductRulesEditor::ReplaceRule(), CRef< C, Locker >::Reset(), CSuspect_rule_Base::ResetDescription(), CSuspect_rule_Base::ResetExcept(), CSuspect_rule_Base::ResetFeat_constraint(), CSuspect_rule_Base::ResetReplace(), CSuspect_rule_Base::SetDescription(), CSuspect_rule_Base::SetExcept(), CSuspect_rule_Base::SetFatal(), CSuspect_rule_Base::SetFeat_constraint(), CSuspect_rule_Base::SetFind(), CSuspect_rule_Base::SetReplace(), CSuspect_rule_Base::SetRule_type(), and NStr::TruncateSpaces().
void CAddSuspectProductRule::OnCancel | ( | wxCommandEvent & | event | ) |
Definition at line 1229 of file suspect_product_rule_editor.cpp.
void CAddSuspectProductRule::SetRule | ( | CRef< CSuspect_rule > | rule, |
int | pos | ||
) |
Definition at line 1288 of file suspect_product_rule_editor.cpp.
References CSuspect_rule_Base::GetDescription(), CSuspect_rule_Base::GetExcept(), CSuspect_rule_Base::GetFatal(), CSuspect_rule_Base::GetFeat_constraint(), CSuspect_rule_Base::GetFind(), CReplace_rule_Base::GetMove_to_note(), CSimple_replace_Base::GetReplace(), CSuspect_rule_Base::GetReplace(), CReplace_rule_Base::GetReplace_func(), CSuspect_rule_Base::GetRule_type(), CReplace_func_Base::GetSimple_replace(), CSimple_replace_Base::GetWeasel_to_putative(), CSimple_replace_Base::GetWhole_string(), CReplace_func_Base::IsHaem_replace(), CSuspect_rule_Base::IsSetDescription(), CSuspect_rule_Base::IsSetExcept(), CSuspect_rule_Base::IsSetFatal(), CSuspect_rule_Base::IsSetFeat_constraint(), CSuspect_rule_Base::IsSetFind(), CReplace_rule_Base::IsSetMove_to_note(), CSimple_replace_Base::IsSetReplace(), CSuspect_rule_Base::IsSetReplace(), CReplace_rule_Base::IsSetReplace_func(), CSuspect_rule_Base::IsSetRule_type(), CSimple_replace_Base::IsSetWeasel_to_putative(), CSimple_replace_Base::IsSetWhole_string(), CReplace_func_Base::IsSimple_replace(), m_Action, m_before, m_CompoundConstraintPanel, m_Description, m_DoesNotMatch, m_Fatal, m_Matches, m_OriginalToNote, m_pos, m_replace, m_rule, m_Type, match(), CSuspectCompoundConstraintPanel::SetConstraints(), CReplace_rule_provider::SetReplace(), CSearch_func_provider::SetSearchFunc(), and CSearch_func_Base::Which().
Referenced by CSuspectProductRulesEditor::DoubleClick().
|
static |
Definition at line 1208 of file suspect_product_rule_editor.cpp.
|
private |
Definition at line 213 of file suspect_product_rule_editor.hpp.
Referenced by CreateControls(), OnAccept(), and SetRule().
|
private |
Definition at line 217 of file suspect_product_rule_editor.hpp.
Referenced by OnAccept(), and SetRule().
|
private |
Definition at line 221 of file suspect_product_rule_editor.hpp.
Referenced by CreateControls(), OnAccept(), and SetRule().
|
private |
Definition at line 216 of file suspect_product_rule_editor.hpp.
Referenced by CreateControls(), OnAccept(), and SetRule().
|
private |
Definition at line 212 of file suspect_product_rule_editor.hpp.
Referenced by CreateControls(), OnAccept(), and SetRule().
|
private |
Definition at line 215 of file suspect_product_rule_editor.hpp.
Referenced by CreateControls(), OnAccept(), and SetRule().
|
private |
Definition at line 211 of file suspect_product_rule_editor.hpp.
Referenced by CreateControls(), OnAccept(), and SetRule().
|
private |
Definition at line 214 of file suspect_product_rule_editor.hpp.
Referenced by CreateControls(), OnAccept(), and SetRule().
|
private |
Definition at line 220 of file suspect_product_rule_editor.hpp.
Referenced by OnAccept(), and SetRule().
|
private |
Definition at line 218 of file suspect_product_rule_editor.hpp.
Referenced by OnAccept(), and SetRule().
|
private |
Definition at line 219 of file suspect_product_rule_editor.hpp.
Referenced by OnAccept(), and SetRule().
|
private |
Definition at line 222 of file suspect_product_rule_editor.hpp.
|
private |
Definition at line 210 of file suspect_product_rule_editor.hpp.
Referenced by CreateControls(), OnAccept(), and SetRule().