这篇教程C++ wxNewEventType函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中wxNewEventType函数的典型用法代码示例。如果您正苦于以下问题:C++ wxNewEventType函数的具体用法?C++ wxNewEventType怎么用?C++ wxNewEventType使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了wxNewEventType函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: wxProgress OscapePrg::OscapePrg(wxWindow *parent) : wxProgress(parent) { evtLeave = wxNewEventType(); idLeave = wxNewId(); /* Connect to event handler that will make us close */ Connect(wxID_ANY, evtLeave, (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)wxStaticCastEvent(LeaveEventFunction, &OscapePrg::Leave), NULL, this); evtProgress = wxNewEventType(); idProgress = wxNewId(); /* Connect to event handler that will make us close */ Connect(wxID_ANY, evtProgress, (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)wxStaticCastEvent(ProgressEventFunction, &OscapePrg::Progress), NULL, this); tinit = time(NULL); paused = false; quit = false; prg = this; evt = CreateEvent( NULL, // default security attributes TRUE, // manual reset TRUE, // initially set NULL // unnamed mutex ); end = CreateEvent( NULL, // default security attributes TRUE, // manual reset FALSE, // initially not set NULL // unnamed mutex ); SetSize(600, 265); }
开发者ID:Ethatron,项目名称:Oscape,代码行数:40,
示例2: wxNewEventType#include "refactorengine.h"#include "cppwordscanner.h"#include "entry.h"#include "ctags_manager.h"#include "fileextmanager.h"#include <wx/progdlg.h>#include <wx/sizer.h>#include "progress_dialog.h"#include "refactoring_storage.h"const wxEventType wxEVT_REFACTORING_ENGINE_CACHE_INITIALIZING = wxNewEventType();RefactoringEngine::RefactoringEngine(){}RefactoringEngine::~RefactoringEngine(){}RefactoringEngine* RefactoringEngine::Instance(){ static RefactoringEngine ms_instance; return &ms_instance;}void RefactoringEngine::Clear(){ m_possibleCandidates.clear(); m_candidates.clear();
开发者ID:AndrianDTR,项目名称:codelite,代码行数:31,
示例3: Nevent#endif // __WXMSW__void OCP_DataStreamInput_Thread::Parse_And_Send_Posn(const char *buf){ if( m_pMessageTarget ) { OCPN_DataStreamEvent Nevent(wxEVT_OCPN_DATASTREAM, 0); Nevent.SetNMEAString( buf ); Nevent.SetStream( m_launcher ); m_pMessageTarget->AddPendingEvent(Nevent); } return;}const wxEventType wxEVT_OCPN_THREADMSG = wxNewEventType();void OCP_DataStreamInput_Thread::ThreadMessage(const wxString &msg){ // Signal the main program thread OCPN_ThreadMessageEvent event(wxEVT_OCPN_THREADMSG, 0); event.SetSString( std::string(msg.mb_str())); if( gFrame ) gFrame->GetEventHandler()->AddPendingEvent(event);}bool OCP_DataStreamInput_Thread::SetOutMsg(const wxString &msg){ // Assume that the caller already owns the mutex wxCriticalSectionLocker locker( m_outCritical );
开发者ID:libai245,项目名称:wht1,代码行数:30,
示例4: object One quirk is that the top-level implementation object (m_top) always keeps a pointer to the implementation object where a new child is needed. (m_add_child_target). This is so that when a new uesr view is added to the hierarchy, AddChild() is able to reparent the new user view to the correct implementation object's leaf.*/#include "wx/dcmemory.h"#include "wx/dcscreen.h"#include "wx/layout.h"#include "wx/scrolbar.h"#include "wx/settings.h"const wxEventType wxEVT_DYNAMIC_SASH_SPLIT = wxNewEventType();const wxEventType wxEVT_DYNAMIC_SASH_UNIFY = wxNewEventType();const wxEventType wxEVT_DYNAMIC_SASH_REPARENT = wxNewEventType();enum DynamicSashRegion{ DSR_NONE, DSR_VERTICAL_TAB, DSR_HORIZONTAL_TAB, DSR_CORNER, DSR_LEFT_EDGE, DSR_TOP_EDGE, DSR_RIGHT_EDGE, DSR_BOTTOM_EDGE};
开发者ID:gitrider,项目名称:wxsj2,代码行数:30,
示例5: wxNewEventType// along with this program. If not, see <http://www.gnu.org/licenses/>.//////////////////////////////////////////////////////////////////////// $URL: http://svn.rebarp.se/svn/RME/trunk/source/updater.hpp $// $Id: updater.hpp 310 2010-02-26 18:03:48Z admin $#include "main.h"#ifdef _USE_UPDATER_#include <wx/url.h>#include "json.h"#include "updater.h"const wxEventType EVT_UPDATE_CHECK_FINISHED = wxNewEventType();UpdateChecker::UpdateChecker(){ ////}UpdateChecker::~UpdateChecker(){ ////}void UpdateChecker::connect(wxEvtHandler* receiver){ wxString address = wxT("http://www.remeresmapeditor.com/update.php"); address << wxT("?os=") <<
开发者ID:Codex-NG,项目名称:rme,代码行数:31,
示例6: T4P_STR_EXPAND#include <wx/tokenzr.h>#include <wx/valgen.h>#include "project/Assets.h"#include "Triumph.h"// these macros will expand a pre-processor define into code// these are needed to expand the update host which// are given as aa pre-processor define by the premake script#define T4P_STR_EXPAND(s) #s#define T4P_STR(s) T4P_STR_EXPAND(s)static int ID_VERSION_FEATURE_TIMER = wxNewId();static int ID_VERSION_DIALOG_TIMER = wxNewId();static int ID_EVENT_VERSION_UPDATES = wxNewId();static int ID_EVENT_VERSION_UPDATES_ON_DIALOG = wxNewId();static wxEventType EVENT_VERSION_CHECK = wxNewEventType();t4p::VersionUpdateViewClass::VersionUpdateViewClass(t4p::VersionUpdateFeatureClass& feature) : FeatureViewClass() , Feature(feature) , Timer(this, ID_VERSION_FEATURE_TIMER) {}void t4p::VersionUpdateViewClass::AddHelpMenuItems(wxMenu* helpMenu) { helpMenu->Append(t4p::MENU_VERSION_UPDATE, _("Check for updates"), _("Check for new version of Triumph"), wxITEM_NORMAL);}void t4p::VersionUpdateViewClass::AddPreferenceWindow(wxBookCtrlBase* parent) { VersionUpdatePreferencesPanelClass* panel = new t4p::VersionUpdatePreferencesPanelClass(
开发者ID:62BRAINS,项目名称:triumph4php,代码行数:31,
|