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

Search Toolkit Book for CRemoveSeqFromAlignDlg

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

+ Inheritance diagram for CRemoveSeqFromAlignDlg:
+ Collaboration diagram for CRemoveSeqFromAlignDlg:

Public Member Functions

 CRemoveSeqFromAlignDlg ()
 Constructors. More...
 
 CRemoveSeqFromAlignDlg (wxWindow *parent, objects::CSeq_entry_Handle seh, wxWindowID id=12000, const wxString &caption=_("Remove Sequences From Alignments"), 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=12000, const wxString &caption=_("Remove Sequences From Alignments"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CRemoveSeqFromAlignDlg ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void Init (objects::CSeq_entry_Handle seh)
 
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...
 
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...
 
static void ApplyToCSeq_entry (objects::CSeq_entry_Handle tse, CCmdComposite *composite, const vector< string > &names)
 

Private Member Functions

void GetAlignLabel (const CSeq_align &align)
 
void SearchSeq_entry (objects::CSeq_entry_Handle tse, const CSeq_entry &se)
 

Static Private Member Functions

static bool RemoveIdLabel (const CSeq_align &align, string name, bool &modified)
 
static void ModifyAlign (CRef< CSeq_align > align, const string name)
 
static bool GetIdsFromLocs (const CStd_seg::TLoc &locs, set< string > &labels, const string name="", bool detect=false, bool found=false)
 
static bool GetIdsFromLoc (const CSeq_loc &loc, set< string > &labels, const string name="", bool detect=false, bool found=false)
 

Private Attributes

objects::CSeq_entry_Handle m_TopSeqEntry
 
set< stringm_Label
 
wxListCtrl * m_ListCtrl
 

Detailed Description

Definition at line 77 of file remove_sequences_from_alignments.hpp.

Constructor & Destructor Documentation

◆ CRemoveSeqFromAlignDlg() [1/2]

CRemoveSeqFromAlignDlg::CRemoveSeqFromAlignDlg ( )

Constructors.

Definition at line 102 of file remove_sequences_from_alignments.cpp.

References Init().

◆ CRemoveSeqFromAlignDlg() [2/2]

CRemoveSeqFromAlignDlg::CRemoveSeqFromAlignDlg ( wxWindow *  parent,
objects::CSeq_entry_Handle  seh,
wxWindowID  id = 12000,
const wxString &  caption = _("Remove Sequences From Alignments"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CRemoveSeqFromAlignDlg()

CRemoveSeqFromAlignDlg::~CRemoveSeqFromAlignDlg ( )

Destructor.

Definition at line 132 of file remove_sequences_from_alignments.cpp.

Member Function Documentation

◆ ApplyToCSeq_entry()

void CRemoveSeqFromAlignDlg::ApplyToCSeq_entry ( objects::CSeq_entry_Handle  tse,
CCmdComposite composite,
const vector< string > &  names 
)
static

◆ Create()

bool CRemoveSeqFromAlignDlg::Create ( wxWindow *  parent,
wxWindowID  id = 12000,
const wxString &  caption = _("Remove Sequences From Alignments"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CRemoveSeqFromAlignDlg::CreateControls ( )

Creates the controls and sizers.

Definition at line 155 of file remove_sequences_from_alignments.cpp.

References _, set< Key, Compare >::begin(), set< Key, Compare >::end(), i, ID_LISTCTRL_SEQ_ALIGN, m_Label, m_ListCtrl, and ToWxString().

Referenced by Create().

◆ GetAlignLabel()

void CRemoveSeqFromAlignDlg::GetAlignLabel ( const CSeq_align align)
private

◆ GetBitmapResource()

wxBitmap CRemoveSeqFromAlignDlg::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 200 of file remove_sequences_from_alignments.cpp.

◆ GetCommand()

CRef< CCmdComposite > CRemoveSeqFromAlignDlg::GetCommand ( void  )

◆ GetIconResource()

wxIcon CRemoveSeqFromAlignDlg::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 211 of file remove_sequences_from_alignments.cpp.

◆ GetIdsFromLoc()

bool CRemoveSeqFromAlignDlg::GetIdsFromLoc ( const CSeq_loc loc,
set< string > &  labels,
const string  name = "",
bool  detect = false,
bool  found = false 
)
staticprivate

◆ GetIdsFromLocs()

bool CRemoveSeqFromAlignDlg::GetIdsFromLocs ( const CStd_seg::TLoc locs,
set< string > &  labels,
const string  name = "",
bool  detect = false,
bool  found = false 
)
staticprivate

Definition at line 242 of file remove_sequences_from_alignments.cpp.

References GetIdsFromLoc(), and l().

Referenced by GetAlignLabel(), and RemoveIdLabel().

◆ Init() [1/2]

void CRemoveSeqFromAlignDlg::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 141 of file remove_sequences_from_alignments.cpp.

References m_ListCtrl, and NULL.

Referenced by CRemoveSeqFromAlignDlg().

◆ Init() [2/2]

void CRemoveSeqFromAlignDlg::Init ( objects::CSeq_entry_Handle  seh)

Definition at line 146 of file remove_sequences_from_alignments.cpp.

References m_ListCtrl, NULL, and SearchSeq_entry().

◆ ModifyAlign()

void CRemoveSeqFromAlignDlg::ModifyAlign ( CRef< CSeq_align align,
const string  name 
)
staticprivate

◆ RemoveIdLabel()

bool CRemoveSeqFromAlignDlg::RemoveIdLabel ( const CSeq_align align,
string  name,
bool modified 
)
staticprivate

◆ SearchSeq_entry()

void CRemoveSeqFromAlignDlg::SearchSeq_entry ( objects::CSeq_entry_Handle  tse,
const CSeq_entry se 
)
private

◆ ShowToolTips()

bool CRemoveSeqFromAlignDlg::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 191 of file remove_sequences_from_alignments.cpp.

Member Data Documentation

◆ m_Label

set<string> CRemoveSeqFromAlignDlg::m_Label
private

Definition at line 114 of file remove_sequences_from_alignments.hpp.

Referenced by CreateControls(), and GetAlignLabel().

◆ m_ListCtrl

wxListCtrl* CRemoveSeqFromAlignDlg::m_ListCtrl
private

Definition at line 115 of file remove_sequences_from_alignments.hpp.

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

◆ m_TopSeqEntry

objects::CSeq_entry_Handle CRemoveSeqFromAlignDlg::m_TopSeqEntry
private

Definition at line 113 of file remove_sequences_from_alignments.hpp.

Referenced by GetCommand().


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