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

Search Toolkit Book for CSuspectProductRulesEditor

#include <gui/packages/pkg_sequence_edit/suspect_product_rule_editor.hpp>

+ Inheritance diagram for CSuspectProductRulesEditor:
+ Collaboration diagram for CSuspectProductRulesEditor:

Public Member Functions

 CSuspectProductRulesEditor ()
 Constructors. More...
 
 CSuspectProductRulesEditor (wxWindow *parent, IWorkbench *workbench, wxWindowID id=wxID_ANY, const wxString &caption=_("Suspect Product Rule Editor"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(704, 504), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Suspect Product Rule Editor"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(704, 504), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
virtual ~CSuspectProductRulesEditor ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void OnFileLoad (wxCommandEvent &event)
 
void OnFileAdd (wxCommandEvent &event)
 
void OnFileSave (wxCommandEvent &event)
 
void CanFileSave (wxUpdateUIEvent &event)
 
void OnFileSaveAs (wxCommandEvent &event)
 
void CanFileSaveAs (wxUpdateUIEvent &event)
 
void OnQuit (wxCommandEvent &event)
 
void CanSort (wxUpdateUIEvent &event)
 
void OnSortByFind (wxCommandEvent &event)
 
void OnSortByCat (wxCommandEvent &event)
 
void OnDisplay (wxCommandEvent &event)
 
void OnShowDiffs (wxCommandEvent &event)
 
void OnApplyFixes (wxCommandEvent &event)
 
void OnListMatches (wxCommandEvent &event)
 
void OnDeleteRules (wxCommandEvent &event)
 
void OnAddRuleBefore (wxCommandEvent &event)
 
void OnAddRuleAfter (wxCommandEvent &event)
 
virtual void UpdateCheckedState (size_t checked)
 
void AddRule (CRef< CSuspect_rule > rule, bool before)
 
void ReplaceRule (CRef< CSuspect_rule > rule, int n)
 
virtual void DoubleClick (int n)
 
- Public Member Functions inherited from CCheckListBoxListener
virtual ~CCheckListBoxListener ()
 
- Public Member Functions inherited from CDoubleClickConsumer
virtual ~CDoubleClickConsumer ()
 

Static Public Member Functions

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

Private Member Functions

void x_SetUpTSEandUnDoManager ()
 
bool MatchConstraint (CRef< CSuspect_rule > rule, const string &str)
 

Private Attributes

IWorkbenchm_Workbench
 
objects::CSeq_entry_Handle m_TopSeqEntry
 
ICommandProccessorm_CmdProcessor
 
CRearrangeCtrlm_Panel
 
wxString m_File
 
wxString m_DefaultDir
 
vector< CRef< CSuspect_rule > > m_Rules
 
wxButton * m_DeleteButton
 

Detailed Description

Definition at line 93 of file suspect_product_rule_editor.hpp.

Constructor & Destructor Documentation

◆ CSuspectProductRulesEditor() [1/2]

CSuspectProductRulesEditor::CSuspectProductRulesEditor ( )

Constructors.

CSuspectProductRulesEditor event table definition

CSuspectProductRulesEditor constructors

Definition at line 106 of file suspect_product_rule_editor.cpp.

References Init().

◆ CSuspectProductRulesEditor() [2/2]

CSuspectProductRulesEditor::CSuspectProductRulesEditor ( wxWindow *  parent,
IWorkbench workbench,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("Suspect Product Rule Editor"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(704, 504),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CSuspectProductRulesEditor()

CSuspectProductRulesEditor::~CSuspectProductRulesEditor ( )
virtual

Destructor.

CSuspectProductRulesEditor destructor

Definition at line 145 of file suspect_product_rule_editor.cpp.

Member Function Documentation

◆ AddRule()

void CSuspectProductRulesEditor::AddRule ( CRef< CSuspect_rule rule,
bool  before 
)

◆ CanFileSave()

void CSuspectProductRulesEditor::CanFileSave ( wxUpdateUIEvent &  event)

Definition at line 360 of file suspect_product_rule_editor.cpp.

References m_File, and m_Rules.

◆ CanFileSaveAs()

void CSuspectProductRulesEditor::CanFileSaveAs ( wxUpdateUIEvent &  event)

Definition at line 384 of file suspect_product_rule_editor.cpp.

References m_Rules.

◆ CanSort()

void CSuspectProductRulesEditor::CanSort ( wxUpdateUIEvent &  event)

Definition at line 423 of file suspect_product_rule_editor.cpp.

References m_Rules.

◆ Create()

bool CSuspectProductRulesEditor::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("Suspect Product Rule Editor"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(704, 504),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CSuspectProductRulesEditor::CreateControls ( )

◆ DoubleClick()

void CSuspectProductRulesEditor::DoubleClick ( int  n)
virtual

◆ GetBitmapResource()

wxBitmap CSuspectProductRulesEditor::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 264 of file suspect_product_rule_editor.cpp.

◆ GetIconResource()

wxIcon CSuspectProductRulesEditor::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 275 of file suspect_product_rule_editor.cpp.

◆ Init()

void CSuspectProductRulesEditor::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 156 of file suspect_product_rule_editor.cpp.

References m_DeleteButton, m_Panel, and NULL.

Referenced by CSuspectProductRulesEditor().

◆ MatchConstraint()

bool CSuspectProductRulesEditor::MatchConstraint ( CRef< CSuspect_rule rule,
const string str 
)
private

◆ OnAddRuleAfter()

void CSuspectProductRulesEditor::OnAddRuleAfter ( wxCommandEvent &  event)

Definition at line 891 of file suspect_product_rule_editor.cpp.

References m_TopSeqEntry, and x_SetUpTSEandUnDoManager().

◆ OnAddRuleBefore()

void CSuspectProductRulesEditor::OnAddRuleBefore ( wxCommandEvent &  event)

Definition at line 884 of file suspect_product_rule_editor.cpp.

References m_TopSeqEntry, and x_SetUpTSEandUnDoManager().

◆ OnApplyFixes()

void CSuspectProductRulesEditor::OnApplyFixes ( wxCommandEvent &  event)

◆ OnDeleteRules()

void CSuspectProductRulesEditor::OnDeleteRules ( wxCommandEvent &  event)

◆ OnDisplay()

void CSuspectProductRulesEditor::OnDisplay ( wxCommandEvent &  event)

◆ OnFileAdd()

void CSuspectProductRulesEditor::OnFileAdd ( wxCommandEvent &  event)

◆ OnFileLoad()

void CSuspectProductRulesEditor::OnFileLoad ( wxCommandEvent &  event)

◆ OnFileSave()

void CSuspectProductRulesEditor::OnFileSave ( wxCommandEvent &  event)

◆ OnFileSaveAs()

void CSuspectProductRulesEditor::OnFileSaveAs ( wxCommandEvent &  event)

◆ OnListMatches()

void CSuspectProductRulesEditor::OnListMatches ( wxCommandEvent &  event)

◆ OnQuit()

void CSuspectProductRulesEditor::OnQuit ( wxCommandEvent &  event)

Definition at line 418 of file suspect_product_rule_editor.cpp.

◆ OnShowDiffs()

void CSuspectProductRulesEditor::OnShowDiffs ( wxCommandEvent &  event)

◆ OnSortByCat()

void CSuspectProductRulesEditor::OnSortByCat ( wxCommandEvent &  event)

◆ OnSortByFind()

void CSuspectProductRulesEditor::OnSortByFind ( wxCommandEvent &  event)

◆ ReplaceRule()

void CSuspectProductRulesEditor::ReplaceRule ( CRef< CSuspect_rule rule,
int  n 
)

◆ ShowToolTips()

bool CSuspectProductRulesEditor::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 255 of file suspect_product_rule_editor.cpp.

◆ UpdateCheckedState()

void CSuspectProductRulesEditor::UpdateCheckedState ( size_t  checked)
virtual

Reimplemented from CCheckListBoxListener.

Definition at line 876 of file suspect_product_rule_editor.cpp.

References m_DeleteButton.

◆ x_SetUpTSEandUnDoManager()

void CSuspectProductRulesEditor::x_SetUpTSEandUnDoManager ( )
private

Member Data Documentation

◆ m_CmdProcessor

ICommandProccessor* CSuspectProductRulesEditor::m_CmdProcessor
private

Definition at line 155 of file suspect_product_rule_editor.hpp.

Referenced by OnApplyFixes(), and x_SetUpTSEandUnDoManager().

◆ m_DefaultDir

wxString CSuspectProductRulesEditor::m_DefaultDir
private

Definition at line 158 of file suspect_product_rule_editor.hpp.

Referenced by OnFileAdd(), OnFileLoad(), OnFileSaveAs(), and OnShowDiffs().

◆ m_DeleteButton

wxButton* CSuspectProductRulesEditor::m_DeleteButton
private

◆ m_File

wxString CSuspectProductRulesEditor::m_File
private

Definition at line 157 of file suspect_product_rule_editor.hpp.

Referenced by CanFileSave(), OnFileLoad(), OnFileSave(), and OnFileSaveAs().

◆ m_Panel

CRearrangeCtrl* CSuspectProductRulesEditor::m_Panel
private

◆ m_Rules

vector< CRef<CSuspect_rule> > CSuspectProductRulesEditor::m_Rules
private

◆ m_TopSeqEntry

objects::CSeq_entry_Handle CSuspectProductRulesEditor::m_TopSeqEntry
private

◆ m_Workbench

IWorkbench* CSuspectProductRulesEditor::m_Workbench
private

Definition at line 153 of file suspect_product_rule_editor.hpp.

Referenced by x_SetUpTSEandUnDoManager().


The documentation for this class was generated from the following files:
Modified on Fri Jan 05 07:25:11 2024 by modify_doxy.py rev. 669887