UIVisoCreator::UIVisoCreator(QWidget *pParent /* =0 */, const QString& strMachineName /* = QString() */) : QIWithRetranslateUI<QIMainDialog>(pParent) , m_pActionConfiguration(0) , m_pActionOptions(0) , m_pAddAction(0) , m_pRemoveAction(0) , m_pNewDirectoryAction(0) , m_pRenameAction(0) , m_pResetAction(0) , m_pMainLayout(0) , m_pHostBrowser(0) , m_pVisoBrowser(0) , m_pButtonBox(0) , m_pToolBar(0) , m_pVerticalToolBar(0) , m_pCentralWidget(0) , m_pMainMenu(0) , m_strMachineName(strMachineName) , m_pCreatorOptionsPanel(0) , m_pConfigurationPanel(0) { m_visoOptions.m_strVisoName = !strMachineName.isEmpty() ? strMachineName : "ad-hoc"; loadSettings(); prepareActions(); prepareWidgets(); populateMenuMainToolbar(); prepareConnections(); manageEscapeShortCut(); retranslateUi(); }
void UIHostNetworkManagerWidget::prepare() { /* Prepare actions: */ prepareActions(); /* Prepare widgets: */ prepareWidgets(); /* Load settings: */ loadSettings(); /* Apply language settings: */ retranslateUi(); /* Load host networks: */ loadHostNetworks(); }
ScProcess::ScProcess( Settings::Manager * settings, QObject * parent ): QProcess( parent ), mIpcServer( new QLocalServer(this) ), mIpcSocket(NULL), mIpcServerName("SCIde_" + QString::number(QCoreApplication::applicationPid())), mTerminationRequested(false), mCompiled(false) { mIntrospectionParser = new ScIntrospectionParser( this ); mIntrospectionParser->start(); prepareActions(settings); connect(this, SIGNAL( readyRead() ), this, SLOT( onReadyRead() )); connect(mIpcServer, SIGNAL(newConnection()), this, SLOT(onNewIpcConnection())); connect(mIntrospectionParser, SIGNAL(done(ScLanguage::Introspection*)), this, SLOT(swapIntrospection(ScLanguage::Introspection*))); connect(this, SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(onProcessStateChanged(QProcess::ProcessState))); }