Exemple #1
0
void Quiddiards::initUI(){
	ui.setupUi(this);
	connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(actAbout()));
	connect(ui.actionAmbient, SIGNAL(triggered()), this, SLOT(actAmbient()));
	connect(ui.actionControl, SIGNAL(triggered()), this, SLOT(actControl()));
	connect(ui.actionPause, SIGNAL(triggered()), this, SLOT(actPause()));
	connect(ui.actionQuit, SIGNAL(triggered()), this, SLOT(actQuit()));
	connect(ui.actionSpotlight, SIGNAL(triggered()), this, SLOT(actSpotlight()));
	connect(ui.actionStart, SIGNAL(triggered()), this, SLOT(actStart()));
	connect(ui.actionSunlight, SIGNAL(triggered()), this, SLOT(actSunlight()));
	connect(ui.actionWind, SIGNAL(triggered()), this, SLOT(actWind()));
}
int ShowEditor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: actRemove(); break;
        case 1: actPopTop(); break;
        case 2: actPopDown(); break;
        case 3: actSizeOrig(); break;
        case 4: actSizeHalf(); break;
        case 5: actSizeAuto(); break;
        case 6: actNew(); break;
        case 7: actOpen(); break;
        case 8: actSave(); break;
        case 9: actRun(); break;
        case 10: actExit(); break;
        case 11: actSceSet(); break;
        case 12: actLineCheck(); break;
        case 13: actHelixSqrCheck(); break;
        case 14: actHelixCirCheck(); break;
        case 15: actSqrCheck(); break;
        case 16: actCubicCheck(); break;
        case 17: actCircleCheck(); break;
        case 18: actCylinderCheck(); break;
        case 19: actHalfCirCheck(); break;
        case 20: actAlbumACheck(); break;
        case 21: actArrayEditorCheck(); break;
        case 22: actTextPix((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 23: actPage(); break;
        case 24: actJpge(); break;
        case 25: actText(); break;
        case 26: actMusic(); break;
        case 27: actBuildAlbum(); break;
        case 28: actFont(); break;
        case 29: actColor(); break;
        case 30: actSetting(); break;
        case 31: actAbout(); break;
        case 32: fontChange((*reinterpret_cast< QFont(*)>(_a[1]))); break;
        case 33: activetext((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 34: itemChange((*reinterpret_cast< QListWidgetItem*(*)>(_a[1])),(*reinterpret_cast< QListWidgetItem*(*)>(_a[2]))); break;
        case 35: pageItemRemove(); break;
        default: ;
        }
        _id -= 36;
    }
    return _id;
}
Exemple #3
0
void MainWindow::createActions()
{
    aConnect = new QAction(this);
    connect(aConnect, SIGNAL(triggered()), this, SLOT(actConnect()));
    aDisconnect = new QAction(this);
    aDisconnect->setEnabled(false);
    connect(aDisconnect, SIGNAL(triggered()), this, SLOT(actDisconnect()));
    aSinglePlayer = new QAction(this);
    connect(aSinglePlayer, SIGNAL(triggered()), this, SLOT(actSinglePlayer()));
    aWatchReplay = new QAction(this);
    connect(aWatchReplay, SIGNAL(triggered()), this, SLOT(actWatchReplay()));
    aDeckEditor = new QAction(this);
    connect(aDeckEditor, SIGNAL(triggered()), this, SLOT(actDeckEditor()));
    aFullScreen = new QAction(this);
    aFullScreen->setCheckable(true);
    connect(aFullScreen, SIGNAL(toggled(bool)), this, SLOT(actFullScreen(bool)));
    aRegister = new QAction(this);
    connect(aRegister, SIGNAL(triggered()), this, SLOT(actRegister()));
    aSettings = new QAction(this);
    connect(aSettings, SIGNAL(triggered()), this, SLOT(actSettings()));
    aExit = new QAction(this);
    connect(aExit, SIGNAL(triggered()), this, SLOT(actExit()));

    aAbout = new QAction(this);
    connect(aAbout, SIGNAL(triggered()), this, SLOT(actAbout()));

    aCheckCardUpdates = new QAction(this);
    connect(aCheckCardUpdates, SIGNAL(triggered()), this, SLOT(actCheckCardUpdates()));

#if defined(__APPLE__)  /* For OSX */
    aSettings->setMenuRole(QAction::PreferencesRole);
    aExit->setMenuRole(QAction::QuitRole);
    aAbout->setMenuRole(QAction::AboutRole);

    char const * foo; // avoid "warning: expression result unused" under clang
    foo = QT_TRANSLATE_NOOP("QMenuBar","Services");
    foo = QT_TRANSLATE_NOOP("QMenuBar","Hide %1");
    foo = QT_TRANSLATE_NOOP("QMenuBar","Hide Others");
    foo = QT_TRANSLATE_NOOP("QMenuBar","Show All");
    foo = QT_TRANSLATE_NOOP("QMenuBar","Preferences...");
    foo = QT_TRANSLATE_NOOP("QMenuBar","Quit %1");
    foo = QT_TRANSLATE_NOOP("QMenuBar","About %1");
#endif
}
Exemple #4
0
void MainWindow::createActions()
{
    aConnect = new QAction(this);
    connect(aConnect, SIGNAL(triggered()), this, SLOT(actConnect()));
    aDisconnect = new QAction(this);
    aDisconnect->setEnabled(false);
    connect(aDisconnect, SIGNAL(triggered()), this, SLOT(actDisconnect()));
    aSinglePlayer = new QAction(this);
    connect(aSinglePlayer, SIGNAL(triggered()), this, SLOT(actSinglePlayer()));
    aWatchReplay = new QAction(this);
    connect(aWatchReplay, SIGNAL(triggered()), this, SLOT(actWatchReplay()));
    aDeckEditor = new QAction(this);
    connect(aDeckEditor, SIGNAL(triggered()), this, SLOT(actDeckEditor()));
    aFullScreen = new QAction(this);
    aFullScreen->setCheckable(true);
    connect(aFullScreen, SIGNAL(toggled(bool)), this, SLOT(actFullScreen(bool)));
    aSettings = new QAction(this);
    connect(aSettings, SIGNAL(triggered()), this, SLOT(actSettings()));
    aExit = new QAction(this);
    connect(aExit, SIGNAL(triggered()), this, SLOT(actExit()));
    
    aAbout = new QAction(this);
    connect(aAbout, SIGNAL(triggered()), this, SLOT(actAbout()));
}