本文整理汇总了C++中FXMAPFUNC函数的典型用法代码示例。如果您正苦于以下问题:C++ FXMAPFUNC函数的具体用法?C++ FXMAPFUNC怎么用?C++ FXMAPFUNC使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FXMAPFUNC函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: FXDEFMAP
#include "GNELane.h"
#include "GNEConnection.h"
#include "GNEInternalLane.h"
#include "GNEEdge.h"
#include "GNEJunction.h"
#ifdef CHECK_MEMORY_LEAKS
#include <foreign/nvwa/debug_new.h>
#endif // CHECK_MEMORY_LEAKS
// ===========================================================================
// FOX callback mapping
// ===========================================================================
FXDEFMAP(GNEConnectorFrame) GNEConnectorFrameMap[] = {
FXMAPFUNC(SEL_COMMAND, MID_CANCEL, GNEConnectorFrame::onCmdCancel),
FXMAPFUNC(SEL_COMMAND, MID_OK, GNEConnectorFrame::onCmdOK),
FXMAPFUNC(SEL_COMMAND, MID_GNE_SELECT_DEAD_ENDS, GNEConnectorFrame::onCmdSelectDeadEnds),
FXMAPFUNC(SEL_COMMAND, MID_GNE_SELECT_DEAD_STARTS, GNEConnectorFrame::onCmdSelectDeadStarts),
FXMAPFUNC(SEL_COMMAND, MID_GNE_SELECT_CONFLICTS, GNEConnectorFrame::onCmdSelectConflicts),
FXMAPFUNC(SEL_COMMAND, MID_GNE_SELECT_PASS, GNEConnectorFrame::onCmdSelectPass),
FXMAPFUNC(SEL_COMMAND, MID_CHOOSEN_CLEAR, GNEConnectorFrame::onCmdClearSelectedConnections),
FXMAPFUNC(SEL_COMMAND, MID_CHOOSEN_RESET, GNEConnectorFrame::onCmdResetSelectedConnections),
};
// Object implementation
FXIMPLEMENT(GNEConnectorFrame, FXVerticalFrame, GNEConnectorFrameMap, ARRAYNUMBER(GNEConnectorFrameMap))
// ===========================================================================
// static members
// ===========================================================================
开发者ID:planetsumo,项目名称:sumo,代码行数:31,代码来源:GNEConnectorFrame.cpp
示例2: FXDEFMAP
*/
#include "ftpclientwindow.h"
#include <fox-1.6/FXMessageBox.h>
/** The Fox-toolkit event mapping
*
* This map is needed by the Fox-Toolkit event model. It defines
* the event used by the
* \ref RainbruRPG::Gui::FtpClientWindow "FtpClientWindow" class.
*
*/
FXDEFMAP(RainbruRPG::Gui::FtpClientWindow) FtpClientWindowMap[]={
//____Message_Type_____________ID_______________Message_Handler_______
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::FtpClientWindow::ID_NYI, RainbruRPG::Gui::FtpClientWindow::onNotYetImplemented),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::FtpClientWindow::ID_NEW_CMD, RainbruRPG::Gui::FtpClientWindow::treatNewCommand),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::FtpClientWindow::ID_CONN, RainbruRPG::Gui::FtpClientWindow::onConnect),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::FtpClientWindow::ID_HELP, RainbruRPG::Gui::FtpClientWindow::onHelp),
FXMAPFUNC(SEL_TIMEOUT, RainbruRPG::Gui::FtpClientWindow::ID_UPDT, RainbruRPG::Gui::FtpClientWindow::onUpdateTransfer),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::FtpClientWindow::ID_SERV, RainbruRPG::Gui::FtpClientWindow::onServerChanged),
};
/** Declares the implementation of the class
*
开发者ID:dreamsxin,项目名称:rainbrurpg,代码行数:31,代码来源:ftpclientwindow.cpp
示例3: FXDEFMAP
#include <gdal_priv.h>
#endif
#ifdef CHECK_MEMORY_LEAKS
#include <foreign/nvwa/debug_new.h>
#endif // CHECK_MEMORY_LEAKS
// ===========================================================================
// member method definitions
// ===========================================================================
/* -------------------------------------------------------------------------
* GUISUMOAbstractView - FOX callback mapping
* ----------------------------------------------------------------------- */
FXDEFMAP(GUISUMOAbstractView) GUISUMOAbstractViewMap[] = {
FXMAPFUNC(SEL_CONFIGURE, 0, GUISUMOAbstractView::onConfigure),
FXMAPFUNC(SEL_PAINT, 0, GUISUMOAbstractView::onPaint),
FXMAPFUNC(SEL_LEFTBUTTONPRESS, 0, GUISUMOAbstractView::onLeftBtnPress),
FXMAPFUNC(SEL_LEFTBUTTONRELEASE, 0, GUISUMOAbstractView::onLeftBtnRelease),
FXMAPFUNC(SEL_MIDDLEBUTTONPRESS, 0, GUISUMOAbstractView::onMiddleBtnPress),
FXMAPFUNC(SEL_MIDDLEBUTTONRELEASE, 0, GUISUMOAbstractView::onMiddleBtnRelease),
FXMAPFUNC(SEL_RIGHTBUTTONPRESS, 0, GUISUMOAbstractView::onRightBtnPress),
FXMAPFUNC(SEL_RIGHTBUTTONRELEASE, 0, GUISUMOAbstractView::onRightBtnRelease),
FXMAPFUNC(SEL_MOUSEWHEEL, 0, GUISUMOAbstractView::onMouseWheel),
FXMAPFUNC(SEL_MOTION, 0, GUISUMOAbstractView::onMouseMove),
FXMAPFUNC(SEL_LEAVE, 0, GUISUMOAbstractView::onMouseLeft),
FXMAPFUNC(SEL_KEYPRESS, 0, GUISUMOAbstractView::onKeyPress),
FXMAPFUNC(SEL_KEYRELEASE, 0, GUISUMOAbstractView::onKeyRelease),
};
开发者ID:kbleeck,项目名称:customSumo26,代码行数:30,代码来源:GUISUMOAbstractView.cpp
示例4: FXDEFMAP
#include <utils/gui/globjects/GLIncludes.h>
#ifdef CHECK_MEMORY_LEAKS
#include <foreign/nvwa/debug_new.h>
#endif // CHECK_MEMORY_LEAKS
// ===========================================================================
// FOX callback mapping
// ===========================================================================
/* -------------------------------------------------------------------------
* GUITriggeredRerouter::GUITriggeredRerouterPopupMenu - mapping
* ----------------------------------------------------------------------- */
FXDEFMAP(GUITriggeredRerouter::GUITriggeredRerouterPopupMenu)
GUITriggeredRerouterPopupMenuMap[] = {
FXMAPFUNC(SEL_COMMAND, MID_MANIP, GUITriggeredRerouter::GUITriggeredRerouterPopupMenu::onCmdOpenManip),
};
// Object implementation
FXIMPLEMENT(GUITriggeredRerouter::GUITriggeredRerouterPopupMenu, GUIGLObjectPopupMenu, GUITriggeredRerouterPopupMenuMap, ARRAYNUMBER(GUITriggeredRerouterPopupMenuMap))
/* -------------------------------------------------------------------------
* GUITriggeredRerouter::GUIManip_TriggeredRerouter - mapping
* ----------------------------------------------------------------------- */
FXDEFMAP(GUITriggeredRerouter::GUIManip_TriggeredRerouter) GUIManip_TriggeredRerouterMap[] = {
FXMAPFUNC(SEL_COMMAND, GUITriggeredRerouter::GUIManip_TriggeredRerouter::MID_USER_DEF, GUITriggeredRerouter::GUIManip_TriggeredRerouter::onCmdUserDef),
FXMAPFUNC(SEL_UPDATE, GUITriggeredRerouter::GUIManip_TriggeredRerouter::MID_USER_DEF, GUITriggeredRerouter::GUIManip_TriggeredRerouter::onUpdUserDef),
FXMAPFUNC(SEL_COMMAND, GUITriggeredRerouter::GUIManip_TriggeredRerouter::MID_OPTION, GUITriggeredRerouter::GUIManip_TriggeredRerouter::onCmdChangeOption),
FXMAPFUNC(SEL_COMMAND, GUITriggeredRerouter::GUIManip_TriggeredRerouter::MID_CLOSE, GUITriggeredRerouter::GUIManip_TriggeredRerouter::onCmdClose),
开发者ID:kbleeck,项目名称:customSumo26,代码行数:31,代码来源:GUITriggeredRerouter.cpp
示例5: FXDEFMAP
#include <fx.h>
#include <fxkeys.h>
#include "fx_numeric_field.h"
FXDEFMAP(fx_numeric_field) fx_numeric_field_map[]= {
FXMAPFUNC(SEL_COMMAND, fx_numeric_field::ID_INCREMENT_DIGIT, fx_numeric_field::on_cmd_increment),
FXMAPFUNC(SEL_COMMAND, fx_numeric_field::ID_DECREMENT_DIGIT, fx_numeric_field::on_cmd_decrement),
FXMAPFUNC(SEL_KEYPRESS, 0, fx_numeric_field::on_key_press),
};
// Object implementation
FXIMPLEMENT(fx_numeric_field,FXTextField,fx_numeric_field_map,ARRAYNUMBER(fx_numeric_field_map));
long fx_numeric_field::on_key_press(FXObject* obj, FXSelector sel, void* ptr)
{
FXEvent* event= (FXEvent*) ptr;
flags &= ~FLAG_TIP;
if(isEnabled()) {
flags &=~ FLAG_UPDATE;
switch (event->code) {
case KEY_Up:
case KEY_KP_Up:
if(event->state & SHIFTMASK)
{
handle(this, FXSEL(SEL_COMMAND, ID_INCREMENT_DIGIT), NULL);
return 1;
}
break;
case KEY_Down:
开发者ID:lulzzz,项目名称:regress-pro,代码行数:30,代码来源:fx_numeric_field.cpp
示例6: FXDEFMAP
#include "GUIParam_PopupMenu.h"
#include <utils/gui/tracker/GUIParameterTracker.h>
#include <utils/gui/tracker/TrackerValueDesc.h>
#include <utils/gui/windows/GUIAppEnum.h>
#include <utils/gui/windows/GUIMainWindow.h>
#ifdef CHECK_MEMORY_LEAKS
#include <foreign/nvwa/debug_new.h>
#endif // CHECK_MEMORY_LEAKS
// ===========================================================================
// FOX callback mapping
// ===========================================================================
FXDEFMAP(GUIParam_PopupMenuInterface) GUIParam_PopupMenuInterfaceMap[]= {
FXMAPFUNC(SEL_COMMAND, MID_OPENTRACKER, GUIParam_PopupMenuInterface::onCmdOpenTracker),
};
// Object implementation
FXIMPLEMENT(GUIParam_PopupMenuInterface, FXMenuPane, GUIParam_PopupMenuInterfaceMap, ARRAYNUMBER(GUIParam_PopupMenuInterfaceMap))
// ===========================================================================
// method definitions
// ===========================================================================
GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface(GUIMainWindow &app,
GUIParameterTableWindow &parentWindow, GUIGlObject &o, const std::string &varName,
ValueSource<SUMOReal> *src) throw()
: FXMenuPane(&parentWindow), myObject(&o), myParentWindow(&parentWindow),
myApplication(&app), myVarName(varName), mySource(src) {
}
开发者ID:NeziheSozen,项目名称:sumo,代码行数:31,代码来源:GUIParam_PopupMenu.cpp
示例7: FXDEFMAP
#ifndef NO_TRACI
#include <traci-server/TraCIServer.h>
#include "TraCIServerAPI_GUI.h"
#endif
#ifdef CHECK_MEMORY_LEAKS
#include <foreign/nvwa/debug_new.h>
#endif
// ===========================================================================
// FOX-declarations
// ===========================================================================
FXDEFMAP(GUIApplicationWindow) GUIApplicationWindowMap[] = {
FXMAPFUNC(SEL_COMMAND, MID_QUIT, GUIApplicationWindow::onCmdQuit),
FXMAPFUNC(SEL_SIGNAL, MID_QUIT, GUIApplicationWindow::onCmdQuit),
FXMAPFUNC(SEL_CLOSE, MID_WINDOW, GUIApplicationWindow::onCmdQuit),
FXMAPFUNC(SEL_COMMAND, MID_OPEN_CONFIG, GUIApplicationWindow::onCmdOpenConfiguration),
FXMAPFUNC(SEL_COMMAND, MID_OPEN_NETWORK, GUIApplicationWindow::onCmdOpenNetwork),
FXMAPFUNC(SEL_COMMAND, MID_RECENTFILE, GUIApplicationWindow::onCmdOpenRecent),
FXMAPFUNC(SEL_COMMAND, MID_RELOAD, GUIApplicationWindow::onCmdReload),
FXMAPFUNC(SEL_COMMAND, MID_CLOSE, GUIApplicationWindow::onCmdClose),
FXMAPFUNC(SEL_COMMAND, MID_EDITCHOSEN, GUIApplicationWindow::onCmdEditChosen),
FXMAPFUNC(SEL_COMMAND, MID_EDIT_BREAKPOINTS, GUIApplicationWindow::onCmdEditBreakpoints),
FXMAPFUNC(SEL_COMMAND, MID_APPSETTINGS, GUIApplicationWindow::onCmdAppSettings),
FXMAPFUNC(SEL_COMMAND, MID_GAMING, GUIApplicationWindow::onCmdGaming),
FXMAPFUNC(SEL_COMMAND, MID_LISTINTERNAL, GUIApplicationWindow::onCmdListInternal),
FXMAPFUNC(SEL_COMMAND, MID_ABOUT, GUIApplicationWindow::onCmdAbout),
开发者ID:rudhir-upretee,项目名称:Sumo17_With_Netsim,代码行数:30,代码来源:GUIApplicationWindow.cpp
示例8: FXDEFMAP
#include <utils/gui/div/GUIParameterTableWindow.h>
#include <utils/gui/div/GUIGlobalSelection.h>
#include <utils/gui/div/GUIUserIO.h>
#include <utils/common/ToString.h>
#include "GUIGLObjectPopupMenu.h"
#ifdef CHECK_MEMORY_LEAKS
#include <foreign/nvwa/debug_new.h>
#endif // CHECK_MEMORY_LEAKS
// ===========================================================================
// FOX callback mapping
// ===========================================================================
FXDEFMAP(GUIGLObjectPopupMenu) GUIGLObjectPopupMenuMap[] = {
FXMAPFUNC(SEL_COMMAND, MID_CENTER, GUIGLObjectPopupMenu::onCmdCenter),
FXMAPFUNC(SEL_COMMAND, MID_COPY_NAME, GUIGLObjectPopupMenu::onCmdCopyName),
FXMAPFUNC(SEL_COMMAND, MID_COPY_TYPED_NAME, GUIGLObjectPopupMenu::onCmdCopyTypedName),
FXMAPFUNC(SEL_COMMAND, MID_COPY_CURSOR_POSITION, GUIGLObjectPopupMenu::onCmdCopyCursorPosition),
FXMAPFUNC(SEL_COMMAND, MID_COPY_CURSOR_GEOPOSITION, GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition),
FXMAPFUNC(SEL_COMMAND, MID_SHOWPARS, GUIGLObjectPopupMenu::onCmdShowPars),
FXMAPFUNC(SEL_COMMAND, MID_ADDSELECT, GUIGLObjectPopupMenu::onCmdAddSelected),
FXMAPFUNC(SEL_COMMAND, MID_REMOVESELECT, GUIGLObjectPopupMenu::onCmdRemoveSelected)
};
// Object implementation
FXIMPLEMENT(GUIGLObjectPopupMenu, FXMenuPane, GUIGLObjectPopupMenuMap, ARRAYNUMBER(GUIGLObjectPopupMenuMap))
// ===========================================================================
// method definitions
开发者ID:cathyyul,项目名称:sumo-0.18,代码行数:31,代码来源:GUIGLObjectPopupMenu.cpp
示例9: defined
#include "SettingsDialog.h"
#include "fx.h"
#include "fx3d.h"
#include <cstdio>
#if defined(WIN32)
#pragma warning(disable: 4996)
#endif
#define PRINT_YESNO(x) ( x ? "yes" : "no" )
// implementation
FXDEFMAP(SettingsDialog) SettingsDialogMap[] = {
FXMAPFUNC(SEL_COMMAND, SettingsDialog::ID_SAVE, SettingsDialog::onCmdSave)
};
FXIMPLEMENT(SettingsDialog, FXDialogBox, SettingsDialogMap, ARRAYNUMBER(SettingsDialogMap))
SettingsDialog::SettingsDialog():canvas(nullptr), thickfont(nullptr), extensionlist(nullptr)
{}
// construct with GL canvas (free floating version)
SettingsDialog::SettingsDialog(FXApp* a, FXGLCanvas* ca)
:FXDialogBox(a, FXString::null, DECOR_STRETCHABLE|DECOR_TITLE|DECOR_BORDER, 0,0,0,0,0,0,0,0,0,0),
canvas(ca), thickfont(nullptr), extensionlist(nullptr)
{
setup();
}
开发者ID:wangfeilong321,项目名称:OpenEaaglesExamples,代码行数:30,代码来源:SettingsDialog.cpp
示例10: FXDEFMAP
#include <utils/gui/div/GUIGlobalSelection.h>
#include <utils/gui/globjects/GUIGlObjectStorage.h>
#include <utils/gui/div/GUIIOGlobals.h>
#include <utils/foxtools/MFXImageHelper.h>
#include <utils/common/UtilExceptions.h>
#ifdef CHECK_MEMORY_LEAKS
#include <foreign/nvwa/debug_new.h>
#endif // CHECK_MEMORY_LEAKS
// ===========================================================================
// FOX callback mapping
// ===========================================================================
FXDEFMAP(GUISUMOViewParent) GUISUMOViewParentMap[]= {
FXMAPFUNC(SEL_COMMAND, MID_MAKESNAPSHOT, GUISUMOViewParent::onCmdMakeSnapshot),
// FXMAPFUNC(SEL_COMMAND, MID_ALLOWROTATION, GUISUMOViewParent::onCmdAllowRotation),
FXMAPFUNC(SEL_COMMAND, MID_LOCATEJUNCTION, GUISUMOViewParent::onCmdLocateJunction),
FXMAPFUNC(SEL_COMMAND, MID_LOCATEEDGE, GUISUMOViewParent::onCmdLocateEdge),
FXMAPFUNC(SEL_COMMAND, MID_LOCATEVEHICLE, GUISUMOViewParent::onCmdLocateVehicle),
FXMAPFUNC(SEL_COMMAND, MID_LOCATETLS, GUISUMOViewParent::onCmdLocateTLS),
FXMAPFUNC(SEL_COMMAND, MID_LOCATEADD, GUISUMOViewParent::onCmdLocateAdd),
FXMAPFUNC(SEL_COMMAND, MID_LOCATESHAPE, GUISUMOViewParent::onCmdLocateShape),
FXMAPFUNC(SEL_COMMAND, MID_SIMSTEP, GUISUMOViewParent::onSimStep),
};
// Object implementation
FXIMPLEMENT(GUISUMOViewParent, GUIGlChildWindow, GUISUMOViewParentMap, ARRAYNUMBER(GUISUMOViewParentMap))
开发者ID:NeziheSozen,项目名称:sumo,代码行数:29,代码来源:GUISUMOViewParent.cpp
示例11: FXDEFMAP
#ifdef HAVE_LIBXML2
# include "fxcy_readerflash2.hpp"
#endif
#include <errno.h>
#include <string.h>
#define DISABLE_FLASHING
FXDEFMAP(FXCY_ReaderView) FXCY_ReaderViewMap[]={
FXMAPFUNC(SEL_COMMAND, FXCY_ReaderView::ID_BUTTON_DETAILS, FXCY_ReaderView::onCmdDetails),
FXMAPFUNC(SEL_COMMAND, FXCY_ReaderView::ID_BUTTON_TEST, FXCY_ReaderView::onCmdTest),
FXMAPFUNC(SEL_COMMAND, FXCY_ReaderView::ID_BUTTON_FIRMWARE, FXCY_ReaderView::onCmdFirmware),
FXMAPFUNC(SEL_COMMAND, FXCY_ReaderView::ID_BUTTON_UPD_KEYS, FXCY_ReaderView::onCmdUpdateKeys),
FXMAPFUNC(SEL_COMMAND, FXCY_ReaderView::ID_BUTTON_DEL_MODS, FXCY_ReaderView::onCmdDelModules),
FXMAPFUNC(SEL_COMMAND, FXCY_ReaderView::ID_BUTTON_FLASH, FXCY_ReaderView::onCmdFlash),
};
FXIMPLEMENT(FXCY_ReaderView, FXHorizontalFrame, FXCY_ReaderViewMap, ARRAYNUMBER(FXCY_ReaderViewMap))
FXCY_ReaderView::FXCY_ReaderView(FXComposite *p,
FXuint opts,
开发者ID:larskanis,项目名称:ctapi-cyberjack,代码行数:30,代码来源:fxcy_readerview.cpp
示例12: FXDEFMAP
#include <netedit/GNEViewNet.h>
#include <netedit/GNEAttributeCarrier.h>
#include <netedit/dialogs/GNEGenericParameterDialog.h>
#include "GNEFrame.h"
#include "GNEInspectorFrame.h"
#include "GNEPolygonFrame.h"
#include "GNEDeleteFrame.h"
// ===========================================================================
// FOX callback mapping
// ===========================================================================
FXDEFMAP(GNEFrame::ACHierarchy) GNEFrameACHierarchyMap[] = {
FXMAPFUNC(SEL_COMMAND, MID_GNE_INSPECTORFRAME_CENTER, GNEFrame::ACHierarchy::onCmdCenterItem),
FXMAPFUNC(SEL_COMMAND, MID_GNE_INSPECTORFRAME_INSPECT, GNEFrame::ACHierarchy::onCmdInspectItem),
FXMAPFUNC(SEL_COMMAND, MID_GNE_INSPECTORFRAME_DELETE, GNEFrame::ACHierarchy::onCmdDeleteItem),
FXMAPFUNC(SEL_RIGHTBUTTONRELEASE, MID_GNE_DELETEFRAME_CHILDS, GNEFrame::ACHierarchy::onCmdShowChildMenu),
};
FXDEFMAP(GNEFrame::GenericParametersEditor) GenericParametersEditorMap[] = {
FXMAPFUNC(SEL_COMMAND, MID_GNE_SET_ATTRIBUTE_DIALOG, GNEFrame::GenericParametersEditor::onCmdEditGenericParameter),
FXMAPFUNC(SEL_COMMAND, MID_GNE_SET_ATTRIBUTE, GNEFrame::GenericParametersEditor::onCmdSetGenericParameter),
};
// Object implementation
FXIMPLEMENT(GNEFrame::ACHierarchy, FXGroupBox, GNEFrameACHierarchyMap, ARRAYNUMBER(GNEFrameACHierarchyMap))
FXIMPLEMENT(GNEFrame::GenericParametersEditor, FXGroupBox, GenericParametersEditorMap, ARRAYNUMBER(GenericParametersEditorMap))
开发者ID:fieryzig,项目名称:sumo,代码行数:29,代码来源:GNEFrame.cpp
示例13: FXDEFMAP
#include <netedit/netelements/GNEEdge.h>
#include <netedit/netelements/GNEJunction.h>
#include <netedit/GNEUndoList.h>
#include <netedit/GNENet.h>
#include <netedit/GNEViewNet.h>
#include <netedit/GNEViewParent.h>
#include "GNECreateEdgeFrame.h"
#include "GNEInspectorFrame.h"
// ===========================================================================
// FOX callback mapping
// ===========================================================================
FXDEFMAP(GNECreateEdgeFrame) GNECreateEdgeFrameMap[] = {
/** currently unused **/
FXMAPFUNC(SEL_COMMAND, MID_CANCEL, GNECreateEdgeFrame::onCmdCancel),
FXMAPFUNC(SEL_COMMAND, MID_OK, GNECreateEdgeFrame::onCmdOK)
/** **/
};
// Object implementation
FXIMPLEMENT(GNECreateEdgeFrame, FXVerticalFrame, GNECreateEdgeFrameMap, ARRAYNUMBER(GNECreateEdgeFrameMap))
// ===========================================================================
// static members
// ===========================================================================
// ===========================================================================
// method definitions
// ===========================================================================
开发者ID:behrisch,项目名称:sumo,代码行数:31,代码来源:GNECreateEdgeFrame.cpp
示例14: FXDEFMAP
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "fox16_gui_updater_l.hpp"
#include <gwenhywfar/debug.h>
FXDEFMAP(FOX16_GuiUpdater) FOX16_GuiUpdaterMap[]= {
FXMAPFUNC(SEL_CHORE, FOX16_GuiUpdater::ID_CHORE, FOX16_GuiUpdater::onChore),
};
FXIMPLEMENT(FOX16_GuiUpdater, FXObject, FOX16_GuiUpdaterMap, ARRAYNUMBER(FOX16_GuiUpdaterMap))
FOX16_GuiUpdater::FOX16_GuiUpdater()
:FXObject()
, m_guiIdleFlag(0) {
}
FOX16_GuiUpdater::~FOX16_GuiUpdater() {
开发者ID:Zauberstuhl,项目名称:gwenhywfar,代码行数:29,代码来源:fox16_gui_updater.cpp
示例15: FXDECLARE
protected:
FXDECLARE(MyIconList);
MyIconList() {}
public:
MyIconList(ShortcutList*o,FXSelector sel,FXuint opts):FXIconList(o,o,sel,opts) {}
long onQueryTip(FXObject*o,FXSelector sel,void*p) {
if (getParent()->handle(o,sel,this)) {
return 1;
} else {
return FXIconList::onQueryTip(o,sel,p);
}
}
};
FXDEFMAP(MyIconList) MyIconListMap[] = {
FXMAPFUNC(SEL_QUERY_TIP,0,MyIconList::onQueryTip),
};
FXIMPLEMENT(MyIconList,FXIconList,MyIconListMap,ARRAYNUMBER(MyIconListMap))
FXDEFMAP(ShortcutList) ShortcutListMap[]= {
FXMAPFUNC(SEL_CHANGED, ShortcutList::ID_SEL_KEYBIND, ShortcutList::onSelectKeybinding),
FXMAPFUNC(SEL_CHANGED, ShortcutList::ID_EDIT_KEYBIND, ShortcutList::onEditKeybinding),
FXMAPFUNC(SEL_COMMAND, ShortcutList::ID_APPLY_CHANGES, ShortcutList::onApplyChanges),
FXMAPFUNC(SEL_COMMAND, ShortcutList::ID_REMOVE_KEYBIND, ShortcutList::onRemoveKeybinding),
FXMAPFUNC(SEL_QUERY_TIP, 0, ShortcutList::onQueryTip),
};
FXIMPLEMENT(ShortcutList,FXHorizontalFrame,ShortcutListMap,ARRAYNUMBER(ShortcutListMap));
开发者ID:yetanothergeek,项目名称:fxite,代码行数:30,代码来源:cfg_keybind.cpp
示例16: FXDEFMAP
#include <unistd.h>
#include "gsl_shell_app.h"
#include "gsl_shell_window.h"
#include "fx_plot_window.h"
#include "lua_plot_window.h"
#include "fatal.h"
#include "icons.h"
FXDEFMAP(gsl_shell_app) gsl_shell_app_map[]=
{
FXMAPFUNC(SEL_IO_READ, gsl_shell_app::ID_LUA_REQUEST, gsl_shell_app::on_lua_request),
FXMAPFUNC(SEL_IO_READ, gsl_shell_app::ID_LUA_QUIT, gsl_shell_app::on_lua_quit),
FXMAPFUNC(SEL_COMMAND, gsl_shell_app::ID_CONSOLE_CLOSE, gsl_shell_app::on_console_close),
FXMAPFUNC(SEL_COMMAND, gsl_shell_app::ID_LUA_RESTART, gsl_shell_app::on_restart_lua_request),
FXMAPFUNC(SEL_COMMAND, gsl_shell_app::ID_LUA_INTERRUPT, gsl_shell_app::on_lua_interrupt),
FXMAPFUNC(SEL_CLOSE, 0, gsl_shell_app::on_window_close),
};
FXIMPLEMENT(gsl_shell_app,FXApp,gsl_shell_app_map,ARRAYNUMBER(gsl_shell_app_map))
gsl_shell_app* global_app;
gsl_shell_app::gsl_shell_app():
FXApp("GSL Shell", "GSL Shell"), m_engine(this), m_redirect(2048, 2048)
{
m_signal_request = new FXGUISignal(this, this, ID_LUA_REQUEST);
FXGUISignal* quit = new FXGUISignal(this, this, ID_LUA_QUIT);
m_engine.set_closing_signal(quit);
开发者ID:LuaDist,项目名称:gsl-shell,代码行数:30,代码来源:gsl_shell_app.cpp
示例17: FXDEFMAP
#ifdef _WIN32
#include <windows.h>
#endif
#include <GL/gl.h>
#ifdef CHECK_MEMORY_LEAKS
#include <foreign/nvwa/debug_new.h>
#endif // CHECK_MEMORY_LEAKS
// ===========================================================================
// FOX callback mapping
// ===========================================================================
FXDEFMAP(GUIDialog_GLChosenEditor) GUIDialog_GLChosenEditorMap[]= {
FXMAPFUNC(SEL_COMMAND, MID_CHOOSEN_LOAD, GUIDialog_GLChosenEditor::onCmdLoad),
FXMAPFUNC(SEL_COMMAND, MID_CHOOSEN_SAVE, GUIDialog_GLChosenEditor::onCmdSave),
FXMAPFUNC(SEL_COMMAND, MID_CHOOSEN_DESELECT, GUIDialog_GLChosenEditor::onCmdDeselect),
FXMAPFUNC(SEL_COMMAND, MID_CHOOSEN_CLEAR, GUIDialog_GLChosenEditor::onCmdClear),
FXMAPFUNC(SEL_COMMAND, MID_CANCEL, GUIDialog_GLChosenEditor::onCmdClose),
};
FXIMPLEMENT(GUIDialog_GLChosenEditor, FXMainWindow, GUIDialog_GLChosenEditorMap, ARRAYNUMBER(GUIDialog_GLChosenEditorMap))
// ===========================================================================
// method definitions
// ===========================================================================
GUIDialog_GLChosenEditor::GUIDialog_GLChosenEditor(GUIMainWindow *parent,
GUISelectedStorage *str) throw()
: FXMainWindow(parent->getApp(), "List of Selected Items", NULL, NULL, DECOR_ALL, 20,20,300, 300),
开发者ID:sagarc,项目名称:Indian_traffic_control,代码行数:31,代码来源:GUIDialog_GLChosenEditor.cpp
示例18: FXDEFMAP
#include <iostream>
#include "LauncherOptions.hpp"
#include "LanguageSelector.hpp"
#include "GameEngine.hpp"
#include <fox-1.6/FXPNGImage.h>
#include <fox-1.6/FXMessageBox.h>
#include "config.h"
/** The Fox-toolkit event mapping */
FXDEFMAP(RainbruRPG::Gui::Launcher) LauncherMap[]={
//____Message_Type_____________ID_______________Message_Handler_______
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::Launcher::ID_BTN_PLAY, RainbruRPG::Gui::Launcher::onPlayButtonPressed),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::Launcher::ID_BTN_OPTS, RainbruRPG::Gui::Launcher::onOptionsButtonPressed),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::Launcher::ID_BTN_QUIT, RainbruRPG::Gui::Launcher::onQuitButtonPressed),
FXMAPFUNC(SEL_CLICKED, RainbruRPG::Gui::Launcher::ID_RENDERER, RainbruRPG::Gui::Launcher::onRenderComboPressed),
FXMAPFUNC(SEL_DOUBLECLICKED, RainbruRPG::Gui::Launcher::ID_RENDERER, RainbruRPG::Gui::Launcher::onRenderComboDoubleClick),
};
/** Declares the implementation of the class */
FXIMPLEMENT(RainbruRPG::Gui::Launcher,FXMainWindow,LauncherMap,ARRAYNUMBER(LauncherMap));
/** The constructor
*
* \param a The fox application instance the launcher will be used with
*
开发者ID:dreamsxin,项目名称:rainbrurpg,代码行数:30,代码来源:Launcher.cpp
示例19: FXDEFMAP
*
*
*/
#include <iostream>
#include "LanguageSelector.hpp"
#include <Options.hpp>
#include <XmlOptions.hpp>
/** Defines the Fox-toolkit event mapping
*
*/
FXDEFMAP(RainbruRPG::Gui::LanguageSelector) LanguageSelectorMap[]={
//____Message_Type_____________ID_______________Message_Handler_______
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::LanguageSelector::ID_BUTTON,
RainbruRPG::Gui::LanguageSelector::onNotImplemented),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::LanguageSelector::ID_CHANGE_SNAP,
RainbruRPG::Gui::LanguageSelector::onChangeLanguage),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::LanguageSelector::ID_BTN_CANCEL,
RainbruRPG::Gui::LanguageSelector::onCancelClicked),
FXMAPFUNC(SEL_COMMAND, RainbruRPG::Gui::LanguageSelector::ID_BTN_OK,
RainbruRPG::Gui::LanguageSelector::onOkClicked),
};
/** Declares the implementation of the class
*
*/
开发者ID:dreamsxin,项目名称:rainbrurpg,代码行数:32,代码来源:LanguageSelector.cpp
示例20: FXDEFMAP
***************************************************************************
* This file is licensed under the GPL version 2. *
* Please see toplevel file COPYING for license details *
***************************************************************************/
#include "fxcy_diag.h"
#include "checkwidget.h"
#include <string>
FXDEFMAP(FXCY_Diagnosis) FXCY_DiagnosisMap[]= {
FXMAPFUNC(SEL_COMMAND, FXDialogBox::ID_ACCEPT, FXCY_Diagnosis::onCmdAccept),
FXMAPFUNC(SEL_COMMAND, FXDialogBox::ID_CANCEL, FXCY_Diagnosis::onCmdCancel),
FXMAPFUNC(SEL_COMMAND, FXCY_Diagnosis::ID_MENU_NEWTEST, FXCY_Diagnosis::onCmdNewTest),
};
FXIMPLEMENT(FXCY_Diagnosis, FXDialogBox,
FXCY_DiagnosisMap, ARRAYNUMBER(FXCY_DiagnosisMap));
FXCY_Diagnosis::FXCY_Diagnosis()
:FXDialogBox()
,m_withReaders(false)
,tabbook(NULL)
开发者ID:larskanis,项目名称:ctapi-cyberjack,代码行数:30,代码来源:fxcy_diag.cpp
注:本文中的FXMAPFUNC函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论