本文整理汇总了C++中wxNewId函数的典型用法代码示例。如果您正苦于以下问题:C++ wxNewId函数的具体用法?C++ wxNewId怎么用?C++ wxNewId使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wxNewId函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wxNewId
#include <wx/tokenzr.h>
#include <manager.h>
#include <configmanager.h>
#include <pluginmanager.h>
#include <editormanager.h>
#include <projectmanager.h>
#include <cbeditor.h>
#include <globals.h>
#include "cbstyledtextctrl.h"
#ifndef CB_PRECOMP
#include "cbproject.h"
#endif
int idMenuJumpToImplementation = wxNewId();
int idMenuRefreshTree = wxNewId();
int idMenuForceReparse = wxNewId();
int idMenuDoNotSort = wxNewId();
int idMenuSortAlphabetically = wxNewId();
int idMenuBottomTree = wxNewId();
BEGIN_EVENT_TABLE(WorkspaceBrowserF, wxPanel)
// m_TreeBottom
EVT_TREE_ITEM_ACTIVATED(XRCID("treeMembersWBF"), WorkspaceBrowserF::OnTreeItemDoubleClick)
EVT_TREE_ITEM_RIGHT_CLICK(XRCID("treeMembersWBF"), WorkspaceBrowserF::OnTreeItemRightClick)
// m_TreeTop
EVT_TREE_ITEM_ACTIVATED(XRCID("treeAllWBF"), WorkspaceBrowserF::OnTreeItemDoubleClick)
EVT_TREE_ITEM_RIGHT_CLICK(XRCID("treeAllWBF"), WorkspaceBrowserF::OnTreeItemRightClick)
EVT_TREE_SEL_CHANGED(XRCID("treeAllWBF"), WorkspaceBrowserF::OnTreeItemSelected)
EVT_TREE_ITEM_EXPANDING(XRCID("treeAllWBF"), WorkspaceBrowserF::OnTreeItemExpanding)
示例2: wxNewId
#include <wx/menu.h>
#include <wx/filedlg.h>
#include <wx/panel.h>
#include <wx/string.h>
#include <wx/statusbr.h>
#include <wx/intl.h>
#include <wx/richtext/richtextctrl.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/artprov.h>
//*)
#include <wx/numdlg.h>
//(*IdInit(frControlPanel)
const long frControlPanel::ID_PANEL2 = wxNewId();
const long frControlPanel::ID_PANEL3 = wxNewId();
const long frControlPanel::ID_PANEL4 = wxNewId();
const long frControlPanel::ID_PANEL5 = wxNewId();
const long frControlPanel::ID_PANEL6 = wxNewId();
const long frControlPanel::ID_PANEL7 = wxNewId();
const long frControlPanel::ID_PANEL8 = wxNewId();
const long frControlPanel::ID_PANEL9 = wxNewId();
const long frControlPanel::ID_PANEL10 = wxNewId();
const long frControlPanel::ID_PANEL11 = wxNewId();
const long frControlPanel::ID_PANEL13 = wxNewId();
const long frControlPanel::ID_PANEL1 = wxNewId();
const long frControlPanel::ID_NOTEBOOK1 = wxNewId();
const long frControlPanel::ID_RICHTEXTCTRL1 = wxNewId();
const long frControlPanel::ID_MENUITEM1 = wxNewId();
const long frControlPanel::ID_MENUITEM2 = wxNewId();
示例3: while
if(list==_T("")) //any empty list matches everything by default
return true;
wxString wildlist=list;
wxString wild=list.BeforeFirst(';');
while(wildlist!=_T(""))
{
if(wild!=_T("") && ::wxMatchWild(wild,name))
return true;
wildlist=wildlist.AfterFirst(';');
wild=wildlist.BeforeFirst(';');
}
return false;
}
int ID_INTERP_WINDOW_TOGGLE=wxNewId();
// events handling
BEGIN_EVENT_TABLE(PythonInterpreter, cbPlugin)
// add any events you want to handle here
EVT_MENU(ID_INTERP_WINDOW_TOGGLE,PythonInterpreter::OnToggleInterpreterWindow)
EVT_UPDATE_UI(ID_INTERP_WINDOW_TOGGLE, PythonInterpreter::OnUpdateUI)
EVT_COMMAND(0,wxEVT_SHELL_ADD_CLICKED, PythonInterpreter::AddNewInterpreter)
END_EVENT_TABLE()
void PythonInterpreter::OnUpdateUI(wxUpdateUIEvent& event)
{
#ifndef TOOLSPLUSLINK
if(m_ViewMenu)
{
示例4: wxNewId
#include "AssistPanel.h"
#include "../../xLightsMain.h"
//(*InternalHeaders(AssistPanel)
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*IdInit(AssistPanel)
const long AssistPanel::ID_SCROLLEDWINDOW_Assist = wxNewId();
//*)
BEGIN_EVENT_TABLE(AssistPanel,wxPanel)
//(*EventTable(AssistPanel)
//*)
END_EVENT_TABLE()
AssistPanel::AssistPanel(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
: mGridCanvas(nullptr)
{
//(*Initialize(AssistPanel)
Create(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL|wxWANTS_CHARS, _T("id"));
FlexGridSizer1 = new wxFlexGridSizer(1, 1, 0, 0);
ScrolledWindowAssist = new wxScrolledWindow(this, ID_SCROLLEDWINDOW_Assist, wxDefaultPosition, wxDefaultSize, wxWANTS_CHARS|wxVSCROLL|wxHSCROLL, _T("ID_SCROLLEDWINDOW_Assist"));
FlexGridSizer2 = new wxFlexGridSizer(2, 1, 0, 0);
FlexGridSizer2->AddGrowableCol(0);
FlexGridSizer2->AddGrowableRow(0);
ScrolledWindowAssist->SetSizer(FlexGridSizer2);
FlexGridSizer2->Fit(ScrolledWindowAssist);
FlexGridSizer2->SetSizeHints(ScrolledWindowAssist);
FlexGridSizer1->Add(ScrolledWindowAssist, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
示例5: wxNewId
#include <wx/button.h>
#include <wx/string.h>
#include <wx/slider.h>
#include <wx/intl.h>
#include <wx/stattext.h>
#include <wx/choice.h>
#include <wx/radiobox.h>
//*)
#include <wx/colordlg.h>
#include <configmanager.h>
#include "cbDiffUtils.h"
//(*IdInit(cbDiffConfigPanel)
const long cbDiffConfigPanel::ID_BUTTON2 = wxNewId();
const long cbDiffConfigPanel::ID_STATICTEXT1 = wxNewId();
const long cbDiffConfigPanel::ID_SLIDER1 = wxNewId();
const long cbDiffConfigPanel::ID_BUTTON1 = wxNewId();
const long cbDiffConfigPanel::ID_STATICTEXT2 = wxNewId();
const long cbDiffConfigPanel::ID_SLIDER2 = wxNewId();
const long cbDiffConfigPanel::ID_CHOICE1 = wxNewId();
const long cbDiffConfigPanel::ID_BUTTON3 = wxNewId();
const long cbDiffConfigPanel::ID_STATICTEXT3 = wxNewId();
const long cbDiffConfigPanel::ID_SLIDER3 = wxNewId();
const long cbDiffConfigPanel::ID_RADIOBOX1 = wxNewId();
const long cbDiffConfigPanel::ID_CHOICE2 = wxNewId();
//*)
BEGIN_EVENT_TABLE(cbDiffConfigPanel, cbConfigurationPanel)
//(*EventTable(cbDiffConfigPanel)
示例6: OnLabelKillFocus
void OnLabelKillFocus(wxFocusEvent& event);
void OnSelectionChange(wxCommandEvent& event);
//*)
//(*Declarations(wxsListbookParentQP)
wxCheckBox* Selected;
wxTextCtrl* Label;
//*)
wxsListbookExtra* m_Extra;
DECLARE_EVENT_TABLE()
};
//(*IdInit(wxsListbookParentQP)
const long wxsListbookParentQP::ID_TEXTCTRL1 = wxNewId();
const long wxsListbookParentQP::ID_CHECKBOX1 = wxNewId();
//*)
BEGIN_EVENT_TABLE(wxsListbookParentQP,wxPanel)
//(*EventTable(wxsListbookParentQP)
//*)
END_EVENT_TABLE()
void wxsListbookParentQP::OnLabelText(wxCommandEvent& event) { SaveData(); }
void wxsListbookParentQP::OnLabelKillFocus(wxFocusEvent& event) { SaveData(); event.Skip(); }
void wxsListbookParentQP::OnSelectionChange(wxCommandEvent& event) { SaveData(); }
WXS_ST_BEGIN(wxsListbookStyles,_T(""))
WXS_ST_CATEGORY("wxListbook")
WXS_ST(wxLB_DEFAULT)
示例7: AssistPanel
AssistPanel *RenderableEffect::GetAssistPanel(wxWindow *parent, xLightsFrame* xl_frame) {
AssistPanel *assist_panel = new AssistPanel(parent);
xlGridCanvas* grid = new xlGridCanvasEmpty(assist_panel->GetCanvasParent(), wxNewId(), wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL|wxFULL_REPAINT_ON_RESIZE, _T("EmptyGrid"));
assist_panel->SetGridCanvas(grid);
return assist_panel;
}
示例8: wxNewId
*/
#include <sdk.h>
#ifndef CB_PRECOMP
#include <wx/filedlg.h>
#include <wx/intl.h>
#include <cbproject.h>
#include <projectbuildtarget.h>
#include <projectmanager.h>
#include <manager.h>
#endif
#include <wx/filefn.h>
#include "filepathpanel.h"
//(*IdInit(FilePathPanel)
const long FilePathPanel::ID_STATICTEXT1 = wxNewId();
const long FilePathPanel::ID_STATICTEXT2 = wxNewId();
const long FilePathPanel::ID_TEXTCTRL1 = wxNewId();
const long FilePathPanel::ID_BUTTON1 = wxNewId();
const long FilePathPanel::ID_STATICTEXT3 = wxNewId();
const long FilePathPanel::ID_TEXTCTRL2 = wxNewId();
const long FilePathPanel::ID_CHECKBOX1 = wxNewId();
const long FilePathPanel::ID_STATICTEXT4 = wxNewId();
const long FilePathPanel::ID_CHECKLISTBOX2 = wxNewId();
const long FilePathPanel::ID_BUTTON2 = wxNewId();
const long FilePathPanel::ID_BUTTON3 = wxNewId();
//*)
BEGIN_EVENT_TABLE(FilePathPanel,wxPanel)
//(*EventTable(FilePathPanel)
//*)
示例9: wxNewId
//(*InternalHeaders(ExternalEventsEditor)
#include <wx/intl.h>
#include <wx/string.h>
//*)
#include <wx/textctrl.h>
#include "GDCore/Tools/Log.h"
#include <wx/ribbon/bar.h>
#include "GDCore/Tools/Localization.h"
#include "GDCore/Project/ExternalEvents.h"
#include "GDCore/CommonTools.h"
#include "GDCore/Project/Project.h"
#include "GDCore/IDE/Dialogs/MainFrameWrapper.h"
#include "EventsEditor.h"
//(*IdInit(ExternalEventsEditor)
const long ExternalEventsEditor::ID_STATICTEXT1 = wxNewId();
const long ExternalEventsEditor::ID_COMBOBOX1 = wxNewId();
const long ExternalEventsEditor::ID_CUSTOM2 = wxNewId();
//*)
BEGIN_EVENT_TABLE(ExternalEventsEditor,wxPanel)
//(*EventTable(ExternalEventsEditor)
//*)
END_EVENT_TABLE()
ExternalEventsEditor::ExternalEventsEditor(wxWindow* parent, gd::Project & game_, gd::ExternalEvents & events_, const gd::MainFrameWrapper & mainFrameWrapper_) :
events(events_),
game(game_),
mainFrameWrapper(mainFrameWrapper_)
{
//(*Initialize(ExternalEventsEditor)
示例10: wxNewId
#include "AnalysisPanel.h"
#include "word/GuematricNumber.h"
//(*InternalHeaders(AnalysisPanel)
#include <wx/button.h>
#include <wx/combobox.h>
#include <wx/intl.h>
#include <wx/listctrl.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/string.h>
#include <wx/textctrl.h>
//*)
//(*IdInit(AnalysisPanel)
const long AnalysisPanel::ID_STATICTEXT1 = wxNewId();
const long AnalysisPanel::ID_COMBOBOX1 = wxNewId();
const long AnalysisPanel::ID_TEXTCTRL1 = wxNewId();
const long AnalysisPanel::ID_STATICTEXT2 = wxNewId();
const long AnalysisPanel::ID_BUTTON1 = wxNewId();
const long AnalysisPanel::ID_STATICTEXT3 = wxNewId();
const long AnalysisPanel::ID_STATICTEXT4 = wxNewId();
const long AnalysisPanel::ID_LISTVIEW1 = wxNewId();
//*)
BEGIN_EVENT_TABLE(AnalysisPanel,wxPanel)
//(*EventTable(AnalysisPanel)
//*)
END_EVENT_TABLE()
AnalysisPanel::AnalysisPanel(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size, long style, const wxString& name)
示例11: defined
#elif defined(__UNIX__)
wxbuild << _T("-Linux");
#endif
#if wxUSE_UNICODE
wxbuild << _T("-Unicode build");
#else
wxbuild << _T("-ANSI build");
#endif // wxUSE_UNICODE
}
return wxbuild;
}
//(*IdInit(wxSmith_DialogDialog)
const long wxSmith_DialogDialog::ID_STATICTEXT1 = wxNewId();
const long wxSmith_DialogDialog::ID_BUTTON1 = wxNewId();
const long wxSmith_DialogDialog::ID_STATICLINE1 = wxNewId();
const long wxSmith_DialogDialog::ID_BUTTON2 = wxNewId();
//*)
BEGIN_EVENT_TABLE(wxSmith_DialogDialog,wxDialog)
//(*EventTable(wxSmith_DialogDialog)
//*)
END_EVENT_TABLE()
wxSmith_DialogDialog::wxSmith_DialogDialog(wxWindow* parent,wxWindowID id)
{
//(*Initialize(wxSmith_DialogDialog)
Create(parent, id, _("wxWidgets app"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
BoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
示例12: wxNewId
#include "TrueOrFalse.h"
//(*InternalHeaders(TrueOrFalse)
#include <wx/artprov.h>
#include <wx/bitmap.h>
#include <wx/intl.h>
#include <wx/image.h>
#include <wx/string.h>
//*)
#include "GDCore/Tools/HelpFileAccess.h"
#include "GDCore/IDE/SkinHelper.h"
//(*IdInit(TrueOrFalse)
const long TrueOrFalse::ID_STATICBITMAP1 = wxNewId();
const long TrueOrFalse::ID_STATICTEXT1 = wxNewId();
const long TrueOrFalse::ID_STATICLINE1 = wxNewId();
const long TrueOrFalse::ID_STATICBITMAP2 = wxNewId();
const long TrueOrFalse::ID_HYPERLINKCTRL1 = wxNewId();
const long TrueOrFalse::ID_BUTTON2 = wxNewId();
const long TrueOrFalse::ID_BUTTON1 = wxNewId();
//*)
BEGIN_EVENT_TABLE(TrueOrFalse,wxDialog)
//(*EventTable(TrueOrFalse)
//*)
END_EVENT_TABLE()
TrueOrFalse::TrueOrFalse(wxWindow* parent, wxString message, wxString caption)
{
//(*Initialize(TrueOrFalse)
wxFlexGridSizer* FlexGridSizer3;
示例13: wxNewId
* $Revision$
* $Id$
* $HeadURL$
*/
#include <sdk.h>
#ifndef CB_PRECOMP
//(*InternalHeadersPCH(GenericSelectPath)
#include <wx/string.h>
#include <wx/intl.h>
//*)
#endif
#include "genericselectpath.h"
//(*IdInit(GenericSelectPath)
const long GenericSelectPath::ID_STATICTEXT1 = wxNewId();
const long GenericSelectPath::ID_STATICTEXT2 = wxNewId();
const long GenericSelectPath::ID_TEXTCTRL1 = wxNewId();
const long GenericSelectPath::ID_BUTTON1 = wxNewId();
//*)
BEGIN_EVENT_TABLE(GenericSelectPath,wxPanel)
//(*EventTable(GenericSelectPath)
//*)
END_EVENT_TABLE()
GenericSelectPath::GenericSelectPath(wxWindow* parent,wxWindowID id)
{
//(*Initialize(GenericSelectPath)
Create(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("id"));
BoxSizer1 = new wxBoxSizer(wxVERTICAL);
示例14: defined
#elif defined(__UNIX__)
wxbuild << _T("-Linux");
#endif
#if wxUSE_UNICODE
wxbuild << _T("-Unicode build");
#else
wxbuild << _T("-ANSI build");
#endif // wxUSE_UNICODE
}
return wxbuild;
}
//(*IdInit(VideoInputGUITesterDialog)
const long VideoInputGUITesterDialog::ID_BUTTON1 = wxNewId();
const long VideoInputGUITesterDialog::ID_STATICBOX1 = wxNewId();
const long VideoInputGUITesterDialog::ID_BUTTON2 = wxNewId();
const long VideoInputGUITesterDialog::ID_TIMER1 = wxNewId();
//*)
BEGIN_EVENT_TABLE(VideoInputGUITesterDialog,wxDialog)
//(*EventTable(VideoInputGUITesterDialog)
//*)
EVT_PAINT(VideoInputGUITesterDialog::OnPaint)
END_EVENT_TABLE()
VideoInputGUITesterDialog::VideoInputGUITesterDialog(wxWindow* parent,wxWindowID id)
{
//(*Initialize(VideoInputGUITesterDialog)
Create(parent, id, _("Video Input GUI Tester"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
示例15: BubblePanel
BubbleHardwareManager::BubbleHardwareManager( wxWindow* parent,
wxWindowID id,
Bubble *const bubble,
const wxString& boardName,
const wxColour& colour,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString& name) : BubblePanel(parent,
id,
colour,
true,
pos,
size,
style,
name
),
parent(parent),
bubble(bubble),
boardName(boardName),
currentBoardProperties(NULL),
lblBootPortName(NULL),
comboBootPortName(NULL),
lblBoardName(NULL),
comboBoardName(NULL),
buttonReloadBlocks(NULL),
buttonReloadHardware(NULL),
lblURL0(NULL),
lblURL1(NULL),
buttonGoToDriversDir(NULL),
buttonMainImage(NULL),
emptyDummyString(wxString(""))
{
if (bubble == NULL)
return; //Nothing to do.
currentBoardProperties = new BubbleBoardProperties();
//Hide();
//##The following line crashes the application when the BubbleHardwareManager is closed by the user, so
//##don't delete it, because it may be possibly a wxAUI's bug, and I would like to document it:
//SetSize(400, 450);
lblBoardName = new wxStaticText( this,
wxNewId(), //##
//##Future: Make configurable by the user if he want to see these
//shorcuts on screen or not:
_("Hardware (Alt+W):"), //##Load shorcuts from XML.
wxPoint(10, 10),
wxSize(150, 20),
wxALIGN_CENTRE,
wxString("lblBoardName")
);
comboBoardName = new BubbleCombo( this,
wxNewId(),
wxImage(bubble->getThemePath() + wxString("/ComboSelectDefault.png")),
wxImage(bubble->getThemePath() + wxString("/ComboSelectPressed.png")),
wxImage(bubble->getThemePath() + wxString("/ComboSelectHover.png")),
wxImage(bubble->getThemePath() + wxString("/ComboSelectDisabled.png")),
false,
wxPoint(10, 25), //##Make this automatic.
wxSize(190, 16),
//wxTAB_TRAVERSAL|
//wxNO_BORDER|
//wxBORDER_SIMPLE|
//wxBORDER_RAISED|
wxBORDER_SUNKEN|
wxTRANSPARENT_WINDOW,
//wxDefaultSize,
//##wxALIGN_CENTRE,
wxString("comboBoardName")
);
if (comboBoardName)
{
comboBoardName->setSorted(false);
bubble->loadHardwareTargets(this);
boardName = "DuinoBot.v2.3 HID";
if (boardName == wxString(""))
{
selectFirstBoard();
}
else
{
BubbleBoardProperties *initialBoard = NULL;
initialBoard = &(boardsProperties.Item(0));
//Find board:
bool found = false;
BubbleBoardProperties *iterator = NULL;
for (unsigned int i = 0; i < boardsProperties.GetCount(); i++)
{
iterator = &(boardsProperties.Item(i)); //##In theory, this is faster than the other index based form, but I'm not sure yet...
if (iterator)
{
if (iterator->getName() == boardName)
{
initialBoard = iterator;
//.........这里部分代码省略.........