16DIALOG_USER_DEFINED_SIGNALS_BASE::DIALOG_USER_DEFINED_SIGNALS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
18 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
20 wxBoxSizer* bMainSizer;
21 bMainSizer =
new wxBoxSizer( wxVERTICAL );
24 m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
28 bMainSizer->Add(
m_infoBar, 0, wxEXPAND|wxBOTTOM, 5 );
30 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
33 m_grid->CreateGrid( 0, 2 );
34 m_grid->EnableEditing(
true );
35 m_grid->EnableGridLines(
true );
36 m_grid->EnableDragGridSize(
false );
37 m_grid->SetMargins( 0, 0 );
40 m_grid->SetColSize( 0, 400 );
41 m_grid->SetColSize( 1, 0 );
42 m_grid->EnableDragColMove(
false );
43 m_grid->EnableDragColSize(
true );
45 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
48 m_grid->EnableDragRowSize(
false );
49 m_grid->SetRowLabelSize( 0 );
50 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
55 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
56 m_grid->SetMinSize( wxSize( -1,120 ) );
58 bMainSizer->Add(
m_grid, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
78 m_syntaxHelp =
new wxHyperlinkCtrl(
this, wxID_ANY,
_(
"Syntax help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
84 bMainSizer->Add(
bButtonSize, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
93 bMainSizer->Add(
m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
96 this->SetSizer( bMainSizer );
98 bMainSizer->Fit(
this );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
virtual void OnFormattingHelp(wxHyperlinkEvent &event)
wxHyperlinkCtrl * m_syntaxHelp
DIALOG_USER_DEFINED_SIGNALS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("User-defined Signals"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onGridCellClick(wxGridEvent &event)
virtual void onDeleteSignal(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer1
~DIALOG_USER_DEFINED_SIGNALS_BASE()
STD_BITMAP_BUTTON * m_addButton
STD_BITMAP_BUTTON * m_deleteButton
virtual void onAddSignal(wxCommandEvent &event)
wxButton * m_sdbSizer1Cancel
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...
A modified version of the wxInfoBar class that allows us to: