A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/table__cols__more__dlg_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/wx/table_cols_more_dlg.cpp Source File

33 #include "wx/imaglist.h" 86  Create

(parent,

id

, caption, pos,

size

, style);

103 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

104

CDialog::Create( parent,

id

, caption, pos,

size

, style );

109

GetSizer()->SetSizeHints(

this

);

166

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

167

itemCDialog1->SetSizer(itemBoxSizer2);

170

itemBoxSizer2->Add(

m_ColTable

, 1, wxGROW|wxALL, 5);

172

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxVERTICAL);

173

itemBoxSizer2->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);

175  m_ShowBtn

=

new

wxButton( itemCDialog1,

ID_SHOW

,

_

(

"&Show"

), wxDefaultPosition, wxDefaultSize, 0 );

176  m_ShowBtn

->SetHelpText(

_

(

"Make column visible"

));

178  m_ShowBtn

->SetToolTip(

_

(

"Make column visible"

));

179

itemBoxSizer4->Add(

m_ShowBtn

, 0, wxGROW|wxALL, 5);

181  m_SortBtn

=

new

wxButton( itemCDialog1,

ID_HIDE

,

_

(

"&Sorting"

), wxDefaultPosition, wxDefaultSize, 0 );

182  m_SortBtn

->SetHelpText(

_

(

"Roll sorting state"

));

184  m_SortBtn

->SetToolTip(

_

(

"Roll sorting state"

));

185

itemBoxSizer4->Add(

m_SortBtn

, 0, wxGROW|wxALL, 5);

187  m_ClearBtn

=

new

wxButton( itemCDialog1,

ID_CLEAR_SORT

,

_

(

"&Clear Sort"

), wxDefaultPosition, wxDefaultSize, 0 );

188  m_ClearBtn

->SetHelpText(

_

(

"Clear Sort State"

));

190  m_ClearBtn

->SetToolTip(

_

(

"Clear Sort State"

));

191

itemBoxSizer4->Add(

m_ClearBtn

, 0, wxGROW|wxALL, 5);

193

itemBoxSizer4->Add(4, 19, 1, wxGROW|wxALL, 5);

195

wxButton* itemButton9 =

new

wxButton( itemCDialog1, wxID_OK,

_

(

"OK"

), wxDefaultPosition, wxDefaultSize, 0 );

196

itemButton9->SetDefault();

197

itemBoxSizer4->Add(itemButton9, 0, wxGROW|wxALL, 5);

199

wxButton* itemButton10 =

new

wxButton( itemCDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

200

itemBoxSizer4->Add(itemButton10, 0, wxGROW|wxALL, 5);

218  if

( !

table

)

return

;

224  m_Shown

.resize( cols_num,

false

);

226  for

(

int

ix = 0; ix < cols_num; ix++ ){

240  m_Shown

[ix] ?

wxT

(

"tlc_checked"

) :

wxT

(

"tlc_unchecked"

)

248  for

(

size_t

jx = 0; jx <

m_Sorted

.size(); jx++ ){

321  if

(

row

>=0 && row < m_ColTable->GetItemCount() ){

322  if

(

flags

& wxLIST_HITTEST_ONITEMICON ){

326  for

(

size_t

ix = 0; ix <

m_Sorted

.size(); ix++ ){

336

}

else if

(

flags

& wxLIST_HITTEST_ONITEMLABEL ){

338  for

(

size_t

ix = 0; ix <

m_Sorted

.size(); ix++ ){

368 # ifdef _WX_GENERIC_LISTCTRL_H_ 389  for

(

size_t

ix = 0; ix <

m_Sorted

.size(); ix++ ){

413  for

(

size_t

ix = 0; ix <

m_Sorted

.size(); ix++ ){

473  if

( event.GetKeyCode() == WXK_SPACE ){

490  if

( retCode == wxID_OK ){

491  for

(

size_t

ix = 0; ix <

m_Shown

.size(); ix++ ){

502  for

(

size_t

ix = 0; ix <

m_Sorted

.size(); ix++ ){

virtual void EndModal(int retCode)

void CreateControls()

Creates the controls and sizers.

vector< CwxTableListCtrl::TSortedCol > m_Sorted

void OnSortingClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_HIDE

void EndModal(int retCode)

void SetTable(CwxTableListCtrl *table)

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

void OnColTableRowFocused(wxListEvent &event)

wxEVT_COMMAND_LIST_ITEM_FOCUSED event handler for ID_COLTABLE

CMoreTableColsDlg()

Constructors.

void OnShowClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SHOW

CwxTableListCtrl * m_ColTable

void OnColTableSelected(wxListEvent &event)

wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_COLTABLE

static bool ShowToolTips()

Should we show tooltips?

bool Create(wxWindow *parent, wxWindowID id=ID_MORECOLDLG, const wxString &caption=_("More on Table Columns"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(399, 299), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

void OnColTableLeftDown(wxMouseEvent &event)

wxEVT_LEFT_DOWN event handler for ID_COLTABLE It is out of DialogBlocks because of Table ID Linux iss...

void OnColTableHeaderMenu(wxListEvent &event)

wxEVT_COMMAND_LIST_COL_RIGHT_CLICK event handler for ID_COLTABLE

CwxTableListCtrl * m_BaseTable

~CMoreTableColsDlg()

Destructor.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

void Init()

Initialises member variables.

void OnColTableDeselected(wxListEvent &event)

wxEVT_COMMAND_LIST_ITEM_DESELECTED event handler for ID_COLTABLE

void OnClearSortClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CLEAR_SORT

void OnColTableKeyDown(wxListEvent &event)

wxEVT_COMMAND_LIST_KEY_DOWN event handler for ID_COLTABLE

virtual void Init(int n_cols, int n_rows)

void SetNumRows(int n_rows)

virtual void SetIcon(int row, const wxString &icon_alias)

virtual void SetStringValueAt(int row, int col, const wxString &value)

virtual void FireRowsUpdated(int first_row, int last_row=-1)

virtual int GetNumRows() const

Returns the number of rows in the model.

CwxTableListCtrl - generic wxListCtrl-based Table Control.

void ApplySorting(bool preserve_state=true)

const vector< TSortedCol > & GetSortedCols() const

void ShowColumn(int col_ix)

void SetSortedState(ESortedState sorted)

void AddSorterIndex(size_t col, ESortedState state)

wxString GetColumnNameByIndex(int col) const

bool IsColumnVisibleByIndex(int col) const

pair< int, ESortedState > TSortedCol

void SetSorterByColumns()

void SetModel(IwxTableModel *data_model, bool own=false)

void HideColumn(int col_ix)

static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table

const struct ncbi::grid::netcache::search::fields::SIZE size

#define row(bind, expected)

static const string s_ColNames[CTableDataAlnSummary::eMaxColNum]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4