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

Search Toolkit Book for CFarPointerSeq

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

+ Inheritance diagram for CFarPointerSeq:
+ Collaboration diagram for CFarPointerSeq:

Public Member Functions

 CFarPointerSeq ()
 Constructors. More...
 
 CFarPointerSeq (wxWindow *parent, CSeq_entry_Handle seh, wxWindowID id=wxID_ANY, const wxString &caption=_("Far Pointer Sequences"), 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=wxID_ANY, const wxString &caption=_("Far Pointer Sequences"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CFarPointerSeq ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnCheck (wxCommandEvent &event)
 
void OnExport (wxCommandEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
CRef< CCmdCompositeGetCommand ()
 
- Public Member Functions inherited from CReportEditingDialog
virtual bool Show (bool show=1)
 Report opening events in dialogs used in the editing package. More...
 

Static Public Member Functions

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

Private Member Functions

string GetMessageForId (const CSeq_id &id, string label, bool &check, bool &disable)
 
CRef< objects::CSeq_align > RunBlast (const CBioseq_Handle &sh, const CBioseq_Handle &qh)
 
string ValidateAlignment (CRef< objects::CSeq_align > align, CBioseq_Handle bsh1, CBioseq_Handle bsh2, bool &check)
 
void AddSpaces (string &str, const string &label_max, wxGraphicsContext *gc)
 
void ReverseRow (CDense_seg &dense_seg, int offset, size_t row, CSeq_align::TDim num_rows)
 

Private Attributes

wxCheckListBox * m_CheckListBox
 
CSeq_entry_Handle m_TopSeqEntry
 
vector< boolm_disabled
 
map< string, stringm_errors
 
vector< stringm_labels
 
map< string, CBioseq_Handlem_label_to_bsh1
 
map< string, CBioseq_Handlem_label_to_bsh2
 
map< CBioseq_Handle, intm_offset
 
map< CBioseq_Handle, boolm_flip_strand
 

Detailed Description

CFarPointerSeq class declaration

Definition at line 77 of file far_pointer_seq.hpp.

Constructor & Destructor Documentation

◆ CFarPointerSeq() [1/2]

CFarPointerSeq::CFarPointerSeq ( )

Constructors.

Definition at line 94 of file far_pointer_seq.cpp.

References Init().

◆ CFarPointerSeq() [2/2]

CFarPointerSeq::CFarPointerSeq ( wxWindow *  parent,
CSeq_entry_Handle  seh,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("Far Pointer Sequences"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Definition at line 99 of file far_pointer_seq.cpp.

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

◆ ~CFarPointerSeq()

CFarPointerSeq::~CFarPointerSeq ( )

Destructor.

Definition at line 132 of file far_pointer_seq.cpp.

Member Function Documentation

◆ AddSpaces()

void CFarPointerSeq::AddSpaces ( string str,
const string label_max,
wxGraphicsContext *  gc 
)
private

Definition at line 225 of file far_pointer_seq.cpp.

References _, int, str(), and string.

Referenced by CreateControls().

◆ Create()

bool CFarPointerSeq::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("Far Pointer Sequences"),
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 111 of file far_pointer_seq.cpp.

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

Referenced by CFarPointerSeq().

◆ CreateControls()

void CFarPointerSeq::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CFarPointerSeq::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 388 of file far_pointer_seq.cpp.

◆ GetCommand()

CRef< CCmdComposite > CFarPointerSeq::GetCommand ( void  )

◆ GetIconResource()

wxIcon CFarPointerSeq::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 401 of file far_pointer_seq.cpp.

◆ GetMessageForId()

string CFarPointerSeq::GetMessageForId ( const CSeq_id id,
string  label,
bool check,
bool disable 
)
private

◆ Init()

void CFarPointerSeq::Init ( void  )

Initialises member variables.

Definition at line 143 of file far_pointer_seq.cpp.

References m_CheckListBox, and NULL.

Referenced by CFarPointerSeq().

◆ OnCheck()

void CFarPointerSeq::OnCheck ( wxCommandEvent &  event)

Definition at line 243 of file far_pointer_seq.cpp.

References i, m_CheckListBox, and m_disabled.

◆ OnExport()

void CFarPointerSeq::OnExport ( wxCommandEvent &  event)

◆ ReverseRow()

void CFarPointerSeq::ReverseRow ( CDense_seg dense_seg,
int  offset,
size_t  row,
CSeq_align::TDim  num_rows 
)
private

◆ RunBlast()

CRef< objects::CSeq_align > CFarPointerSeq::RunBlast ( const CBioseq_Handle sh,
const CBioseq_Handle qh 
)
private

◆ ShowToolTips()

bool CFarPointerSeq::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 379 of file far_pointer_seq.cpp.

◆ ValidateAlignment()

string CFarPointerSeq::ValidateAlignment ( CRef< objects::CSeq_align >  align,
CBioseq_Handle  bsh1,
CBioseq_Handle  bsh2,
bool check 
)
private

Member Data Documentation

◆ m_CheckListBox

wxCheckListBox* CFarPointerSeq::m_CheckListBox
private

Definition at line 125 of file far_pointer_seq.hpp.

Referenced by CreateControls(), GetCommand(), Init(), and OnCheck().

◆ m_disabled

vector<bool> CFarPointerSeq::m_disabled
private

Definition at line 128 of file far_pointer_seq.hpp.

Referenced by CreateControls(), and OnCheck().

◆ m_errors

map<string, string> CFarPointerSeq::m_errors
private

Definition at line 129 of file far_pointer_seq.hpp.

Referenced by CreateControls(), and OnExport().

◆ m_flip_strand

map<CBioseq_Handle, bool> CFarPointerSeq::m_flip_strand
private

Definition at line 134 of file far_pointer_seq.hpp.

Referenced by GetCommand(), and ValidateAlignment().

◆ m_label_to_bsh1

map<string, CBioseq_Handle> CFarPointerSeq::m_label_to_bsh1
private

Definition at line 131 of file far_pointer_seq.hpp.

Referenced by GetCommand(), and GetMessageForId().

◆ m_label_to_bsh2

map<string, CBioseq_Handle> CFarPointerSeq::m_label_to_bsh2
private

Definition at line 132 of file far_pointer_seq.hpp.

Referenced by GetCommand(), and GetMessageForId().

◆ m_labels

vector<string> CFarPointerSeq::m_labels
private

Definition at line 130 of file far_pointer_seq.hpp.

Referenced by CreateControls(), and GetCommand().

◆ m_offset

map<CBioseq_Handle, int> CFarPointerSeq::m_offset
private

Definition at line 133 of file far_pointer_seq.hpp.

Referenced by GetCommand(), and ValidateAlignment().

◆ m_TopSeqEntry

CSeq_entry_Handle CFarPointerSeq::m_TopSeqEntry
private

Definition at line 127 of file far_pointer_seq.hpp.

Referenced by CreateControls(), GetCommand(), and GetMessageForId().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:59 2024 by modify_doxy.py rev. 669887