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

Search Toolkit Book for CApplyEditconvertPanel

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

+ Inheritance diagram for CApplyEditconvertPanel:
+ Collaboration diagram for CApplyEditconvertPanel:

Public Types

enum  {
  ID_CAPPLYEDITCONVERTPANEL = 6350 , ID_AECR_CHOICE , ID_AECR_LISTBOX , ID_AECR_BUTTON ,
  ID_AECR_BUTTON1 , ID_AECR_BUTTON2
}
 

Public Member Functions

 CApplyEditconvertPanel ()
 Constructors. More...
 
 CApplyEditconvertPanel (wxWindow *parent, CSeqTableGridPanel *grid_panel, wxArrayString &choices, int init_action=0, bool horizontal=true, wxWindowID id=ID_CAPPLYEDITCONVERTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CAPPLYEDITCONVERTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CApplyEditconvertPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnApplyToAllButtonClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_AECR_BUTTON More...
 
void OnApplyToSelButtonClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_AECR_BUTTON1 More...
 
void OnUndoButtonClick (wxCommandEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
int GetColumn ()
 
wxString GetAutopopulateValue ()
 
void GetSelectedRows (std::set< int > &selected)
 
void SetColumns (wxArrayString &columns)
 
bool GetModified ()
 
void AddUndo (int i, int j, const string &val)
 

Static Public Member Functions

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

Private Member Functions

wxListBox * GetListBox ()
 

Private Attributes

CSeqTableGridPanelm_GridPanel
 
wxGrid * m_Grid
 
wxArrayString * m_Choices
 
wxListbook * m_Notebook
 
bool m_Modified
 
wxButton * m_UndoButton
 
map< int, map< int, string > > m_undo_values
 
int m_init_action
 
bool m_Horizontal
 

Detailed Description

CApplyEditconvertPanel class declaration

Definition at line 81 of file apply_edit_convert_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_CAPPLYEDITCONVERTPANEL 
ID_AECR_CHOICE 
ID_AECR_LISTBOX 
ID_AECR_BUTTON 
ID_AECR_BUTTON1 
ID_AECR_BUTTON2 

Definition at line 146 of file apply_edit_convert_panel.hpp.

Constructor & Destructor Documentation

◆ CApplyEditconvertPanel() [1/2]

CApplyEditconvertPanel::CApplyEditconvertPanel ( )

Constructors.

Definition at line 90 of file apply_edit_convert_panel.cpp.

References Init().

◆ CApplyEditconvertPanel() [2/2]

CApplyEditconvertPanel::CApplyEditconvertPanel ( wxWindow *  parent,
CSeqTableGridPanel grid_panel,
wxArrayString &  choices,
int  init_action = 0,
bool  horizontal = true,
wxWindowID  id = ID_CAPPLYEDITCONVERTPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ ~CApplyEditconvertPanel()

CApplyEditconvertPanel::~CApplyEditconvertPanel ( )

Destructor.

Definition at line 128 of file apply_edit_convert_panel.cpp.

Member Function Documentation

◆ AddUndo()

void CApplyEditconvertPanel::AddUndo ( int  i,
int  j,
const string val 
)
inline

Definition at line 142 of file apply_edit_convert_panel.hpp.

References i, m_undo_values, and val.

Referenced by CSubpanel::ChangeValue().

◆ Create()

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

Creation.

Definition at line 108 of file apply_edit_convert_panel.cpp.

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

Referenced by CApplyEditconvertPanel().

◆ CreateControls()

void CApplyEditconvertPanel::CreateControls ( )

Creates the controls and sizers.

Definition at line 151 of file apply_edit_convert_panel.cpp.

References _, ID_AECR_BUTTON, ID_AECR_BUTTON1, ID_AECR_BUTTON2, ID_AECR_CHOICE, m_Choices, m_Grid, m_Notebook, m_UndoButton, and wxID_ANY.

Referenced by Create().

◆ GetAutopopulateValue()

wxString CApplyEditconvertPanel::GetAutopopulateValue ( )

◆ GetBitmapResource()

wxBitmap CApplyEditconvertPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 219 of file apply_edit_convert_panel.cpp.

◆ GetColumn()

int CApplyEditconvertPanel::GetColumn ( void  )

◆ GetIconResource()

wxIcon CApplyEditconvertPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 232 of file apply_edit_convert_panel.cpp.

◆ GetListBox()

wxListBox * CApplyEditconvertPanel::GetListBox ( )
private

Definition at line 241 of file apply_edit_convert_panel.cpp.

References CSubpanel::GetListBox(), m_Notebook, and NULL.

Referenced by GetColumn().

◆ GetModified()

bool CApplyEditconvertPanel::GetModified ( )
inline

◆ GetSelectedRows()

void CApplyEditconvertPanel::GetSelectedRows ( std::set< int > &  selected)

Definition at line 287 of file apply_edit_convert_panel.cpp.

References i, and m_Grid.

Referenced by GetAutopopulateValue(), and OnApplyToSelButtonClick().

◆ Init()

void CApplyEditconvertPanel::Init ( void  )

Initialises member variables.

Definition at line 139 of file apply_edit_convert_panel.cpp.

References m_Modified.

Referenced by CApplyEditconvertPanel().

◆ OnApplyToAllButtonClick()

void CApplyEditconvertPanel::OnApplyToAllButtonClick ( wxCommandEvent &  event)

◆ OnApplyToSelButtonClick()

void CApplyEditconvertPanel::OnApplyToSelButtonClick ( wxCommandEvent &  event)

◆ OnUndoButtonClick()

void CApplyEditconvertPanel::OnUndoButtonClick ( wxCommandEvent &  event)

◆ SetColumns()

void CApplyEditconvertPanel::SetColumns ( wxArrayString &  columns)

Definition at line 415 of file apply_edit_convert_panel.cpp.

References columns, i, m_Notebook, and CSubpanel::SetColumns().

Referenced by SrcEditDialog::ResetSubPanels().

◆ ShowToolTips()

bool CApplyEditconvertPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 210 of file apply_edit_convert_panel.cpp.

Member Data Documentation

◆ m_Choices

wxArrayString* CApplyEditconvertPanel::m_Choices
private

Definition at line 159 of file apply_edit_convert_panel.hpp.

Referenced by CreateControls().

◆ m_Grid

wxGrid* CApplyEditconvertPanel::m_Grid
private

◆ m_GridPanel

CSeqTableGridPanel* CApplyEditconvertPanel::m_GridPanel
private

◆ m_Horizontal

bool CApplyEditconvertPanel::m_Horizontal
private

Definition at line 166 of file apply_edit_convert_panel.hpp.

◆ m_init_action

int CApplyEditconvertPanel::m_init_action
private

Definition at line 164 of file apply_edit_convert_panel.hpp.

◆ m_Modified

bool CApplyEditconvertPanel::m_Modified
private

◆ m_Notebook

wxListbook* CApplyEditconvertPanel::m_Notebook
private

◆ m_undo_values

map<int, map<int,string> > CApplyEditconvertPanel::m_undo_values
private

◆ m_UndoButton

wxButton* CApplyEditconvertPanel::m_UndoButton
private

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