diff --git a/lubuntuWelcomeCenter.pro.user b/lubuntuWelcomeCenter.pro.user index ca66c9d..bd2444e 100644 --- a/lubuntuWelcomeCenter.pro.user +++ b/lubuntuWelcomeCenter.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -306,8 +306,8 @@ 2 lubuntuWelcomeCenter - - Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/phabricator/lubuntuWelcomeCenter/lubuntuWelcomeCenter.pro + lubuntuWelcomeCenter2 + Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/phabricator/lubuntu-welcome-center/lubuntuWelcomeCenter.pro true lubuntuWelcomeCenter.pro diff --git a/main.cpp b/main.cpp index f3554b7..12e5465 100644 --- a/main.cpp +++ b/main.cpp @@ -1,11 +1,67 @@ #include +#include #include "window.h" int main(int argc, char **argv) { QApplication app (argc, argv); - Window window; + // Set size of the window + QWidget window; + window.setFixedSize(800, 600); + + // Font + QFont font ("Courier"); + + // Button Format + // (x pos, y pos, width, length) + + // News Button + QPushButton *buttonNews = new QPushButton("Latest news for Lubuntu", &window); + buttonNews->setGeometry(300, 50, 250, 30); + buttonNews->setToolTip("Click here for the lastest news for Lubuntu 18.40 Cosmic Cuttlefish!"); + buttonNews->setFont(font); + + // Change Monitor Settings Button + QPushButton *buttonMonitorSettings = new QPushButton("Change monitor settings", &window); + buttonMonitorSettings->setGeometry(300, 125, 250, 30); + buttonMonitorSettings->setToolTip("Click here to change your monitor settings!"); + buttonMonitorSettings->setFont(font); + + // Change Desktop Resolution Button + QPushButton *buttonDesktopResolution = new QPushButton("Change desktop resolution", &window); + buttonDesktopResolution->setGeometry(300, 200, 250, 30); + buttonDesktopResolution->setToolTip("Click here to change your desktop resolution!"); + buttonDesktopResolution->setFont(font); + + // Icon Theme Button + QPushButton *buttonIconTheme = new QPushButton("Latest icon themes for Lubuntu", &window); + buttonIconTheme->setGeometry(225, 275, 400, 30); + buttonIconTheme->setToolTip("Click here to download the latest icon themes for Lubuntu 18.40 Cosmic Cuttlefish"); + buttonIconTheme->setFont(font); + + // Bug Button + QPushButton *buttonBug = new QPushButton("Report bugs to Lubuntu team", &window); + buttonBug->setGeometry(225, 350, 400, 30); + buttonBug->setToolTip("Click here to report bugs to the Lubuntu development team!"); + buttonBug->setFont(font); + + // Manual Button + QPushButton *buttonManual = new QPushButton("Read manual for Lubuntu help", &window); + buttonManual->setGeometry(225, 425, 400, 30); + buttonManual->setToolTip("Click here to access the manual for Lubuntu 18.40 Cosmic Cuttlefish!"); + buttonManual->setFont(font); + + // Quit Button + QPushButton *buttonQuit = new QPushButton("Quit", &window); + buttonQuit->setGeometry(300, 500, 250, 30); + buttonQuit->setToolTip("Click here to quit the Welcome Center!"); + buttonQuit->setFont(font); + + // Quit Functionality (Using SIGNAL event, and QApplication::instance()) + // connect(m_button, SIGNAL (clicked()), QApplication::instance(), SLOT (quit())); + + // Window window; window.show(); return app.exec(); diff --git a/window.cpp b/window.cpp index 0655fff..2a272ba 100644 --- a/window.cpp +++ b/window.cpp @@ -5,45 +5,5 @@ 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 index 099423d..371af9f 100644 --- a/window.h +++ b/window.h @@ -9,7 +9,6 @@ class Window : public QWidget public: explicit Window(QWidget *parent = 0); private: - QPushButton *m_button; }; #endif // WINDOW_H