void HybridTestViewManager::WireButtons() { connect(&m_hybridTestTab, SIGNAL(startHybridTest()), &m_hybridTest, SLOT(initialiseSettings())); connect(&m_hybridTest, SIGNAL(getVcthValue()), &m_hybridTestTab, SLOT(getVcthDialValue())); connect(&m_hybridTestTab, SIGNAL(sendVcthValue(int)), &m_hybridTest, SLOT(setVcthValue(int))); connect(&m_hybridTest, SIGNAL(getEventsValue()), &m_hybridTestTab, SLOT(getEventsDial())); connect(&m_hybridTestTab, SIGNAL(sendEventsNumber(int)), &m_hybridTest, SLOT(setEventsValue(int))); connect(&m_hybridTest, SIGNAL(getIsRegTestChecked()), &m_hybridTestTab, SLOT(getIsRegTestChecked())); connect(&m_hybridTest, SIGNAL(getIsScanChecked()), &m_hybridTestTab, SLOT(getIsScanChecked())); connect(&m_hybridTestTab, SIGNAL(sendIsRegTestChecked(bool)), &m_hybridTest, SLOT(setTestReg(bool))); connect(&m_hybridTestTab, SIGNAL(sendIsScanChecked(bool)), &m_hybridTest, SLOT(setScanThreshold(bool))); connect(&m_hybridTest, SIGNAL(getIsHoleModeChecked()), &m_hybridTestTab, SLOT(getIsHoleModeChecked())); connect(&m_hybridTestTab, SIGNAL(sendIsHoleModeChecked(bool)), &m_hybridTest, SLOT(setHoleMode(bool))); }
int main(int argc, char *argv[]) { QApplication a(argc, argv); // settings QString distDir = QDir::currentPath() + QDir::separator() + ".." + QDir::separator() + ".." + QDir::separator() + "dist" + QDir::separator(); QString themesDir = QDir::currentPath() + QDir::separator() + ".." + QDir::separator() + ".." + QDir::separator() + "theme" + QDir::separator(); QString settingsFile = distDir + "settings.db"; // initialize settings initialiseSettings(distDir, settingsFile, themesDir); // initialize project database initialiseProjectsDatbase(distDir); // instanciate Gui QString iconsDir = themesDir + "default" + QDir::separator(); bioseController w(iconsDir); w.setWindowTitle("Biose"); w.show(); QRect rec = QApplication::desktop()->screenGeometry(); w.resize(0.8*rec.width(), 0.8*rec.height()); a.setWindowIcon(QIcon(iconsDir + "icon.png")); w.setGeometry( QStyle::alignedRect( Qt::LeftToRight, Qt::AlignCenter, w.size(), qApp->desktop()->availableGeometry() )); // set stylesheet QString styleFile = blSettingsAccess::instance()->settings()->value("Home", "stylesheet"); a.setStyleSheet("file:///" + styleFile); return a.exec(); }