From d6d5c86a736537828a59ddc6389d5d0490942f8c Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 9 Jan 2013 12:22:22 -0600 Subject: Initial commit --- gui/mainwindow.cpp | 77 +++++++++++++++++++++++++ gui/mainwindow.h | 56 ++++++++++++++++++ gui/mainwindow.ui | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 296 insertions(+) create mode 100644 gui/mainwindow.cpp create mode 100644 gui/mainwindow.h create mode 100644 gui/mainwindow.ui (limited to 'gui') diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp new file mode 100644 index 00000000..875cc256 --- /dev/null +++ b/gui/mainwindow.cpp @@ -0,0 +1,77 @@ +/* Copyright 2013 MultiMC Contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "mainwindow.h" +#include "ui_mainwindow.h" + +#include +#include + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} + +void MainWindow::on_actionAddInstance_triggered() +{ + +} + +void MainWindow::on_actionViewInstanceFolder_triggered() +{ + +} + +void MainWindow::on_actionRefresh_triggered() +{ + +} + +void MainWindow::on_actionViewCentralModsFolder_triggered() +{ + +} + +void MainWindow::on_actionCheckUpdate_triggered() +{ + +} + +void MainWindow::on_actionSettings_triggered() +{ + +} + +void MainWindow::on_actionReportBug_triggered() +{ + +} + +void MainWindow::on_actionNews_triggered() +{ + +} + +void MainWindow::on_actionAbout_triggered() +{ + +} diff --git a/gui/mainwindow.h b/gui/mainwindow.h new file mode 100644 index 00000000..6d9a0216 --- /dev/null +++ b/gui/mainwindow.h @@ -0,0 +1,56 @@ +/* Copyright 2013 MultiMC Contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private slots: + void on_actionAbout_triggered(); + + void on_actionAddInstance_triggered(); + + void on_actionViewInstanceFolder_triggered(); + + void on_actionRefresh_triggered(); + + void on_actionViewCentralModsFolder_triggered(); + + void on_actionCheckUpdate_triggered(); + + void on_actionSettings_triggered(); + + void on_actionReportBug_triggered(); + + void on_actionNews_triggered(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui new file mode 100644 index 00000000..0ef98d0e --- /dev/null +++ b/gui/mainwindow.ui @@ -0,0 +1,163 @@ + + + MainWindow + + + + 0 + 0 + 600 + 400 + + + + MultiMC 5 + + + + + false + + + Qt::TopToolBarArea + + + TopToolBarArea + + + false + + + + + + + + + + + + + + + + + + :/icons/toolbar/new:/icons/toolbar/new + + + Add Instance + + + Add a new instance. + + + + + + :/icons/toolbar/viewfolder:/icons/toolbar/viewfolder + + + View Instance Folder + + + Open the instance folder in a file browser. + + + + + + :/icons/toolbar/refresh:/icons/toolbar/refresh + + + Refresh + + + Reload the instance list. + + + + + + :/icons/toolbar/centralmods:/icons/toolbar/centralmods + + + View Central Mods Folder + + + Open the central mods folder in a file browser. + + + + + + :/icons/toolbar/checkupdate:/icons/toolbar/checkupdate + + + Check for Updates + + + Check for new updates for MultiMC + + + + + + :/icons/toolbar/settings:/icons/toolbar/settings + + + Settings + + + Change settings. + + + QAction::PreferencesRole + + + + + + :/icons/toolbar/bug:/icons/toolbar/bug + + + Report a Bug + + + Open the bug tracker to report a bug with MultiMC. + + + + + + :/icons/toolbar/news:/icons/toolbar/news + + + News + + + Open the MultiMC dev blog to read news about MultiMC. + + + + + + :/icons/toolbar/about:/icons/toolbar/about + + + About MultiMC + + + View information about MultiMC. + + + QAction::AboutRole + + + + + + + + + -- cgit v1.2.3