コード例 #1
0
int MainWindow::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: on_pushButton_clicked(); break;
        case 1: on_webViewBrowser_loadProgress((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: on_webViewBrowser_loadStarted(); break;
        case 3: on_webViewBrowser_loadFinished((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: on_webViewBrowser_anyError((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 5: on_actionAbout_triggered(); break;
        case 6: on_actionAbout_QT_triggered(); break;
        case 7: on_actionLoad_triggered(); break;
        case 8: PopulateSubjectGrid(); break;
        case 9: on_pushButtonUpdateMrks_clicked(); break;
        case 10: on_actionMake_all_0_triggered(); break;
        case 11: on_actionMake_empty_0_triggered(); break;
        case 12: on_actionBlackout_Cancelled_triggered(); break;
        default: ;
        }
        _id -= 13;
    }
    return _id;
}
コード例 #2
0
ファイル: mainwindow.cpp プロジェクト: davidle93/PROJET-BTS
void MainWindow::on_actionRaffraichir_triggered()
{
    QSettings settings("MaConfig.ini", QSettings::IniFormat);
    settings.beginGroup("config");
    settings.remove("");
    on_actionLoad_triggered();
    qDebug() << "reset";
    ui->label_message->setText("Reset...");
}
コード例 #3
0
ファイル: mainwindow.cpp プロジェクト: davidle93/PROJET-BTS
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    socket = new QUdpSocket(this);
    connect(socket,SIGNAL(readyRead()),this,SLOT(on_ReadyData()));

    ui->comboBox_color->addItem("MultiCouleur");
    ui->comboBox_color->addItem("Rouge");
    ui->comboBox_color->addItem("Vert");
    ui->comboBox_color->addItem("Ambre");
    ui->comboBox_color->addItem("Rouge sombre");
    ui->comboBox_color->addItem("Vert sombre");
    ui->comboBox_color->addItem("Marron");
    ui->comboBox_color->addItem("Orange");
    ui->comboBox_color->addItem("Jaune");

    for (int pos_X1 = 0; pos_X1 <= 9; pos_X1++)
    {
        ui->comboBox_X->addItem("0"+QString::number(pos_X1));
    }

    for (int pos_X2 = 10; pos_X2 <= 80; pos_X2++)
    {
        ui->comboBox_X->addItem(QString::number(pos_X2));
    }

    for (int pos_Y1 = 0; pos_Y1 <= 9; pos_Y1++)
    {
        ui->comboBox_Y->addItem("0"+QString::number(pos_Y1));
    }

    for (int pos_Y2 = 10; pos_Y2 <= 32; pos_Y2++)
    {
        ui->comboBox_Y->addItem(QString::number(pos_Y2));
    }

    //recharge la liste des messages
    on_actionLoad_triggered();
}
コード例 #4
0
ファイル: filebar.cpp プロジェクト: DreamSourceLab/DSView
FileBar::FileBar(SigSession &session, QWidget *parent) :
    QToolBar("File Bar", parent),
    _enable(true),
    _session(session),
    _file_button(this)
{
    setMovable(false);

    _action_load = new QAction(this);
    _action_load->setText(QApplication::translate(
        "File", "&Load...", 0));
    _action_load->setIcon(QIcon::fromTheme("file",
        QIcon(":/icons/open.png")));
    _action_load->setObjectName(QString::fromUtf8("actionLoad"));
    connect(_action_load, SIGNAL(triggered()), this, SLOT(on_actionLoad_triggered()));

    _action_store = new QAction(this);
    _action_store->setText(QApplication::translate(
        "File", "S&tore...", 0));
    _action_store->setIcon(QIcon::fromTheme("file",
        QIcon(":/icons/save.png")));
    _action_store->setObjectName(QString::fromUtf8("actionStore"));
    connect(_action_store, SIGNAL(triggered()), this, SLOT(on_actionStore_triggered()));

    _action_default = new QAction(this);
    _action_default->setText(QApplication::translate(
        "File", "&Default...", 0));
    _action_default->setIcon(QIcon::fromTheme("file",
        QIcon(":/icons/gear.png")));
    _action_default->setObjectName(QString::fromUtf8("actionDefault"));
    connect(_action_default, SIGNAL(triggered()), this, SLOT(on_actionDefault_triggered()));

    _menu_session = new QMenu(tr("Settings"), parent);
    _menu_session->setIcon(QIcon::fromTheme("file",
        QIcon(":/icons/gear.png")));
    _menu_session->setObjectName(QString::fromUtf8("menuSession"));
    _menu_session->addAction(_action_load);
    _menu_session->addAction(_action_store);
    _menu_session->addAction(_action_default);

    _action_open = new QAction(this);
    _action_open->setText(QApplication::translate(
        "File", "&Open...", 0));
    _action_open->setIcon(QIcon::fromTheme("file",
        QIcon(":/icons/open.png")));
    _action_open->setObjectName(QString::fromUtf8("actionOpen"));
    connect(_action_open, SIGNAL(triggered()), this, SLOT(on_actionOpen_triggered()));

    _action_save = new QAction(this);
    _action_save->setText(QApplication::translate(
        "File", "&Save...", 0));
    _action_save->setIcon(QIcon::fromTheme("file",
        QIcon(":/icons/save.png")));
    _action_save->setObjectName(QString::fromUtf8("actionSave"));
    connect(_action_save, SIGNAL(triggered()), this, SIGNAL(on_save()));

    _action_export = new QAction(this);
    _action_export->setText(QApplication::translate("File", "&Export...", 0));
    _action_export->setIcon(QIcon::fromTheme("file",QIcon(":/icons/export.png")));
    _action_export->setObjectName(QString::fromUtf8("actionExport"));
    connect(_action_export, SIGNAL(triggered()), this, SIGNAL(on_export()));


    _action_capture = new QAction(this);
    _action_capture->setText(QApplication::translate(
        "File", "&Capture...", 0));
    _action_capture->setIcon(QIcon::fromTheme("file",
        QIcon(":/icons/capture.png")));
    _action_capture->setObjectName(QString::fromUtf8("actionCapture"));
    connect(_action_capture, SIGNAL(triggered()), this, SLOT(on_actionCapture_triggered()));

    _file_button.setPopupMode(QToolButton::InstantPopup);
    _file_button.setIcon(QIcon(":/icons/file.png"));

    _menu = new QMenu(this);
    _menu->addMenu(_menu_session);
    _menu->addAction(_action_open);
    _menu->addAction(_action_save);
    _menu->addAction(_action_export);
    _menu->addAction(_action_capture);
    _file_button.setMenu(_menu);
    addWidget(&_file_button);
}