// Constructor XYWndManager::XYWndManager() : _activeXY(NULL), _globalParentWindow(NULL) { // Connect self to the according registry keys GlobalRegistry().addKeyObserver(this, RKEY_CHASE_MOUSE); GlobalRegistry().addKeyObserver(this, RKEY_CAMERA_XY_UPDATE); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_CROSSHAIRS); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_GRID); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_SIZE_INFO); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_ENTITY_ANGLES); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_ENTITY_NAMES); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_BLOCKS); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_COORDINATES); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_OUTLINE); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_AXES); GlobalRegistry().addKeyObserver(this, RKEY_SHOW_WORKZONE); GlobalRegistry().addKeyObserver(this, RKEY_DEFAULT_BLOCKSIZE); GlobalRegistry().addKeyObserver(this, RKEY_ALWAYS_CAULK_FOR_NEW_BRUSHES); GlobalRegistry().addKeyObserver(this, RKEY_CAULK_TEXTURE); // Trigger loading the values of the observed registry keys keyChanged("", ""); // greebo: Register this class in the preference system so that the constructPreferencePage() gets called. GlobalPreferenceSystem().addConstructor(this); // Add the commands to the EventManager registerCommands(); }
AcRx::AppRetCode ArxDbgApp::initApp() { acrxUnlockApplication(m_acadAppPtr); acrxDynamicLinker->registerAppMDIAware(m_acadAppPtr); // get the name of this app so we can find where other // things are located. CString appFileName = acedGetAppName(); char dir[_MAX_DIR], drive[_MAX_DRIVE], path[_MAX_PATH]; _splitpath(appFileName, drive, dir, NULL, NULL); _makepath(path, drive, dir, NULL, NULL); m_appPath = path; CWnd* splashScreen = startSplashScreen(); registerClasses(); registerCommands(); acrxBuildClassHierarchy(); m_appServicePtr = acrxRegisterService("ArxDbgServices"); ArxDbgAppEditorReactor::getInstance(); MapTestReactor::getInstance(); registerDialogExtensions(); registerAppMenu(); endSplashScreen(splashScreen); m_didInit = true; return AcRx::kRetOK; }
LuaCommands::LuaCommands(Commands* commands, const std::string& path, Client* client, TimerFactory* timerFactory, MUCs* mucs) : path_(path), scriptsPath_(boost::filesystem::path(path_) / "scripts") { commands_ = commands; client_ = client; timerFactory_ = timerFactory; mucs_ = mucs; commands_->onReset.connect(boost::bind(&LuaCommands::registerCommands, this)); registerCommands(); }
/** \brief Initialize the CLI context. The CLI context is defined in the #dnm_cli_cont_t structure. This function initializes a pre-allocated variable of that type. Every context needs a unique channel. \note Call this function after the OS has started. \warning The last <tt>cmdArr</tt> entry must contain a <tt>NULL</tt> command pointer. \param[in,out] pCont Pointer to a pre-allocated CLI context. This function will clear the information contained in that variable. \param[in] inpCh Channel for receiving CLI input. \param[in] cmdArr Array of commands to register with the \ref device_cli. \return #DN_ERR_NONE if the initialization is successful. \return #DN_ERR_ERROR if a command length specified in the command array is longer than #DN_CLI_CTRL_SIZE. \return The error received from calling #dn_ioctl() in the \ref device_cli, if that call fails. */ dn_error_t dnm_cli_initContext (dnm_cli_cont_t *pCont, CH_DESC inpCh, const dnm_cli_cmdDef_t *cmdArr) { memset(pCont, 0, sizeof(dnm_cli_cont_t)); pCont->inpCh = inpCh; pCont->cmdArr = cmdArr; return (registerCommands (pCont)); }
void GlobalCameraManager::initialiseModule(const ApplicationContext& ctx) { globalOutputStream() << getName() << "::initialiseModule called." << std::endl; registerCommands(); CamWnd::captureStates(); }
DevConsole::DevConsole(QWidget *parent) : QWidget(parent), ui(new Ui::DevConsole) { ui->setupUi(this); setWindowFlags(windowFlags() | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint); connect(ui->button_cl_sysLog, SIGNAL(clicked()), this, SLOT(clearCurrentLog())); registerCommands(); }
EmuWindow:: EmuWindow(const char * name, const char * title, unsigned int x, unsigned int y, unsigned int width, unsigned int height) : Commandable(std::string(name)) { registerCommands(); m_sdl_window = SDL_CreateWindow(title, x, y, width, height, 0); }
void Map::initialiseModule(const ApplicationContext& ctx) { rMessage() << getName() << "::initialiseModule called." << std::endl; // Register for the startup event _startupMapLoader = StartupMapLoaderPtr(new StartupMapLoader); GlobalRadiant().signal_radiantStarted().connect( sigc::mem_fun(*_startupMapLoader, &StartupMapLoader::onRadiantStartup) ); GlobalRadiant().signal_radiantShutdown().connect( sigc::mem_fun(*_startupMapLoader, &StartupMapLoader::onRadiantShutdown) ); // Add the Map-related commands to the EventManager registerCommands(); // Add the region-related commands to the EventManager RegionManager::initialiseCommands(); // Add the map position commands to the EventManager GlobalMapPosition().initialise(); }
DevConsole::DevConsole(QWidget *parent) : QWidget(parent), ui(new Ui::DevConsole) { ui->setupUi(this); setWindowFlags(windowFlags() | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint); connect(ui->button_cl_sysLog, SIGNAL(clicked()), this, SLOT(clearCurrentLog())); connect(ui->tabWidget, SIGNAL(tabBarClicked(int)), this, SLOT(update())); registerCommands(); LogWriter::installConsole(this); #ifdef Q_OS_MAC this->setWindowIcon(QIcon(":/cat_builder.icns")); #endif #ifdef Q_OS_WIN this->setWindowIcon(QIcon(":/cat_builder.ico")); QFont font = ui->plainTextEdit->font(); font.setFamily("Courier New"); ui->plainTextEdit->setFont(font); if(QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA) { if(QtWin::isCompositionEnabled()) { this->setAttribute(Qt::WA_TranslucentBackground, true); QtWin::extendFrameIntoClientArea(this, -1, -1, -1, -1); QtWin::enableBlurBehindWindow(this); } else { QtWin::resetExtendedFrame(this); setAttribute(Qt::WA_TranslucentBackground, false); } } #endif if(!hasFocus()) setWindowOpacity(0.9); }
NodeInstanceServerInterface::NodeInstanceServerInterface(QObject *parent) : QObject(parent) { registerCommands(); }
Commands::Commands(QObject *parent) : QObject(parent) { _cmdCollection.clear(); registerCommands(); }