19#ifndef _TMCHECKLISTBOXRANK_H_
20#define _TMCHECKLISTBOXRANK_H_
30#include "../database/database_tm.h"
31#include "tmchecklistbox.h"
34const int tmCHECK_MENU_SAVE_RANK = 10005;
48 wxString m_RankColName;
58 void OnSaveOrder(wxCommandEvent& event);
63 void EnableRelevantMenuEntries();
68 tmCheckListBoxRank(wxWindow* parent, wxWindowID
id,
const wxPoint& pos = wxDefaultPosition,
69 const wxSize& size = wxDefaultSize,
int nStrings = 0,
const wxString* choices =
nullptr,
70 long style = 0,
const wxValidator& validator = wxDefaultValidator,
71 const wxString& name = wxListBoxNameStr);
73 bool Create(wxWindow* parent, wxWindowID
id,
const wxPoint& pos = wxDefaultPosition,
74 const wxSize& size = wxDefaultSize,
int nStrings = 0,
const wxString* choices =
nullptr,
long style = 0,
75 const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr);
78 wxString GetRankColName() {
85 wxString GetTableName() {
89 void SetTableName(
const wxString& tabname = TABLE_NAME_OBJECTS);
Definition database_tm.h:80
Enhance the tmCheckListBox class.
Definition tmchecklistboxrank.h:45
bool PrepareOrderStatement(wxString &sqlstatement)
Prepare the statement for setting order.
Definition tmchecklistboxrank.cpp:178
bool Create(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int nStrings=0, const wxString *choices=nullptr, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxListBoxNameStr)
Constructor for two steps creation.
Definition tmchecklistboxrank.cpp:40
void SetTableName(const wxString &tabname=TABLE_NAME_OBJECTS)
Set the table name.
Definition tmchecklistboxrank.cpp:139
~tmCheckListBoxRank()
Destructor Do nothing actually.
Definition tmchecklistboxrank.cpp:72
void SetRankColName(const wxString &colrank=_T("RANK"))
Set the rank column name.
Definition tmchecklistboxrank.cpp:126
Deals with checkbox list.
Definition tmchecklistbox.h:56