commit 3698c183132b5c7532e0426d84e39f3b4402e785 Author: Samuel Banya Date: Tue Oct 23 20:10:43 2018 -0400 Initial commit diff --git a/lubuntuWelcomeCenter.pro b/lubuntuWelcomeCenter.pro new file mode 100644 index 0000000..d6cb6b4 --- /dev/null +++ b/lubuntuWelcomeCenter.pro @@ -0,0 +1,42 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2018-10-16T20:19:15 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = SubclassingQWidget +TEMPLATE = app + +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +CONFIG += c++11 + +SOURCES += \ + main.cpp \ + mainwindow.cpp \ + window.cpp + +HEADERS += \ + mainwindow.h \ + window.h + +FORMS += \ + mainwindow.ui + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target diff --git a/lubuntuWelcomeCenter.pro.user b/lubuntuWelcomeCenter.pro.user new file mode 100644 index 0000000..ca66c9d --- /dev/null +++ b/lubuntuWelcomeCenter.pro.user @@ -0,0 +1,338 @@ + + + + + + EnvironmentId + {3ad3f86a-0ba2-40ce-ad95-b88db7dc70bf} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + true + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.11.2 GCC 64bit + Desktop Qt 5.11.2 GCC 64bit + qt.qt5.5112.gcc_64_kit + 0 + 0 + 0 + + /home/sam/scripts/phabricator/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/sam/scripts/phabricator/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + true + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + /home/sam/scripts/phabricator/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + true + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy Configuration + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + lubuntuWelcomeCenter + + Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/phabricator/lubuntuWelcomeCenter/lubuntuWelcomeCenter.pro + true + + lubuntuWelcomeCenter.pro + + /home/sam/scripts/phabricator/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit-Debug + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/lubuntuWelcomeCenter.user b/lubuntuWelcomeCenter.user new file mode 100644 index 0000000..9292bf1 --- /dev/null +++ b/lubuntuWelcomeCenter.user @@ -0,0 +1,338 @@ + + + + + + EnvironmentId + {3ad3f86a-0ba2-40ce-ad95-b88db7dc70bf} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + true + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.11.2 GCC 64bit + Desktop Qt 5.11.2 GCC 64bit + qt.qt5.5112.gcc_64_kit + 0 + 0 + 0 + + /home/sam/scripts/qt/build-RespondingToAnEvent-Desktop_Qt_5_11_2_GCC_64bit-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/sam/scripts/qt/build-RespondingToAnEvent-Desktop_Qt_5_11_2_GCC_64bit-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + true + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + /home/sam/scripts/qt/build-RespondingToAnEvent-Desktop_Qt_5_11_2_GCC_64bit-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + true + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy Configuration + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + RespondingToAnEvent + + Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/qt/RespondingToAnEvent/RespondingToAnEvent.pro + true + + RespondingToAnEvent.pro + + /home/sam/scripts/qt/build-RespondingToAnEvent-Desktop_Qt_5_11_2_GCC_64bit-Debug + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..f3554b7 --- /dev/null +++ b/main.cpp @@ -0,0 +1,12 @@ +#include +#include "window.h" + +int main(int argc, char **argv) +{ + QApplication app (argc, argv); + + Window window; + window.show(); + + return app.exec(); +} diff --git a/mainwindow.cpp b/mainwindow.cpp new file mode 100644 index 0000000..49d64fc --- /dev/null +++ b/mainwindow.cpp @@ -0,0 +1,14 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/mainwindow.h b/mainwindow.h new file mode 100644 index 0000000..9353441 --- /dev/null +++ b/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = nullptr); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/mainwindow.ui b/mainwindow.ui new file mode 100644 index 0000000..6050363 --- /dev/null +++ b/mainwindow.ui @@ -0,0 +1,24 @@ + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + + diff --git a/window.cpp b/window.cpp new file mode 100644 index 0000000..0655fff --- /dev/null +++ b/window.cpp @@ -0,0 +1,49 @@ +#include "window.h" +#include +#include + +Window::Window(QWidget *parent) : + QWidget(parent) + { + // Set size of the window + setFixedSize(800, 600); + + // Font + QFont font ("Courier"); + + // Button Format + // (x pos, y pos, width, length) + + // News Button + m_button = new QPushButton("Latest news for Lubuntu", this); + m_button->setGeometry(300, 50, 250, 30); + m_button->setToolTip("Click here for the lastest news for Lubuntu 18.40 Cosmic Cuttlefish!"); + m_button->setFont(font); + + // Icon Theme Button + m_button = new QPushButton("Latest icon themes for Lubuntu", this); + m_button->setGeometry(220, 150, 400, 30); + m_button->setToolTip("Click here to download the latest icon themes for Lubuntu 18.40 Cosmic Cuttlefish"); + m_button->setFont(font); + + // Bug Button + m_button = new QPushButton("Report bugs to Lubuntu team", this); + m_button->setGeometry(220, 250, 400, 30); + m_button->setToolTip("Click here to report bugs to the Lubuntu development team!"); + m_button->setFont(font); + + // Manual Button + m_button = new QPushButton("Read manual for Lubuntu help", this); + m_button->setGeometry(220, 350, 400, 30); + m_button->setToolTip("Click here to access the manual for Lubuntu 18.40 Cosmic Cuttlefish!"); + m_button->setFont(font); + + // Quit Button + m_button = new QPushButton("Quit", this); + m_button->setGeometry(300, 450, 250, 30); + m_button->setToolTip("Click here to quit the Welcome Center!"); + m_button->setFont(font); + + // Quit Functionality (Using SIGNAL event, and QApplication::instance()) + // connect(m_button, SIGNAL (clicked()), QApplication::instance(), SLOT (quit())); + } diff --git a/window.h b/window.h new file mode 100644 index 0000000..099423d --- /dev/null +++ b/window.h @@ -0,0 +1,15 @@ +#ifndef WINDOW_H +#define WINDOW_H + +#include + +class QPushButton; +class Window : public QWidget +{ +public: + explicit Window(QWidget *parent = 0); +private: + QPushButton *m_button; +}; + +#endif // WINDOW_H