Logo Search packages:      
Sourcecode: q4wine version File versions  Download package

Run::Run ( QWidget *  parent = 0,
Qt::WFlags  f = 0 
)

This is class constructor.

Parameters:
prefix_name Current user selected prefix name.

Definition at line 22 of file run.cpp.

References cbUseConsole_stateChanged(), cmdAdd_Click(), cmdCancel_Click(), cmdGetProgram_Click(), cmdGetWorkDir_Click(), cmdHelp_Click(), cmdOk_Click(), comboPrefixes_indexChanged(), libq4wine, loadThemeIcons(), and ResizeContent().

                                     : QDialog(parent, f)
{
      // Setup base UI
      setupUi(this);
      // Loading libq4wine-core.so
      libq4wine.setFileName("libq4wine-core");

      if (!libq4wine.load()){
            libq4wine.load();
      }

      // Getting corelib calss pointer
      CoreLibClassPointer = (CoreLibPrototype *) libq4wine.resolve("createCoreLib");
      CoreLib.reset((corelib *)CoreLibClassPointer(true));

      loadThemeIcons();

      connect(cmdCancel, SIGNAL(clicked()), this, SLOT(cmdCancel_Click()));
      connect(cmdOk, SIGNAL(clicked()), this, SLOT(cmdOk_Click()));
      connect(cmdGetProgramBin, SIGNAL(clicked()), this, SLOT(cmdGetProgram_Click()));
      connect(cmdGetWorkDir, SIGNAL(clicked()), this, SLOT(cmdGetWorkDir_Click()));
      connect(cmdAdd, SIGNAL(clicked()), this, SLOT(cmdAdd_Click()));
      connect(cmdHelp, SIGNAL(clicked()), this, SLOT(cmdHelp_Click()));
      connect(comboPrefixes, SIGNAL(currentIndexChanged (int)), this, SLOT(comboPrefixes_indexChanged (int)));
      connect(cbUseConsole, SIGNAL(stateChanged(int)), this, SLOT(cbUseConsole_stateChanged(int)));
      connect(twbGeneral, SIGNAL(currentChanged(int)), this, SLOT(ResizeContent(int)));

    QString res = CoreLib->getSetting("advanced", "defaultDesktopSize", false, "").toString();
    if (res.isEmpty()){
        cboxDesktopSize->setCurrentIndex(0);
    } else {
        cboxDesktopSize->setCurrentIndex(cboxDesktopSize->findText(res));
    }

      cmdGetProgramBin->installEventFilter(this);
      cmdGetWorkDir->installEventFilter(this);
      cmdOk->setFocus(Qt::ActiveWindowFocusReason);
      return;
}


Generated by  Doxygen 1.6.0   Back to index