Adding latest Lubuntu Welcome Center progress

master
Samuel Banya 6 years ago
parent 2b528c1039
commit 4182859194

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.6.2, 2018-11-30T20:52:11. --> <!-- Written by QtCreator 4.6.2, 2018-12-03T21:07:03. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>

@ -22,43 +22,6 @@ int main(int argc, char *argv[])
MainWindow w; MainWindow w;
w.show(); w.show();
// Manual Button
// Monitor Setup Button
// Control Center Button
// Community Button
// Contribute Button
/*
// News Button
QPushButton *buttonNews = new QPushButton("Latest news for Lubuntu", &window);
// Change Monitor Settings Button
QPushButton *buttonMonitorSettings = new QPushButton("Change monitor settings", &window);
// Change Desktop Resolution Button
QPushButton *buttonDesktopResolution = new QPushButton("Change desktop resolution", &window);
// Icon Theme Button
QPushButton *buttonIconTheme = new QPushButton("Latest icon themes for Lubuntu", &window);
// Bug Button
QPushButton *buttonBug = new QPushButton("Report bugs to Lubuntu team", &window);
// Manual Button
QPushButton *buttonManual = new QPushButton("Read manual for Lubuntu help", &window);
// Quit Functionality (Using SIGNAL event, and QApplication::instance())
// connect(m_button, SIGNAL (clicked()), QApplication::instance(), SLOT (quit()));
// Window window;
window.show();
*/
return app.exec(); return app.exec();
} }

@ -19,6 +19,7 @@
#include <QUrl> #include <QUrl>
#include <QDir> #include <QDir>
#include <QProcess> #include <QProcess>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) : MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent), QMainWindow(parent),
@ -36,7 +37,6 @@ void MainWindow::on_buttonManual_clicked()
{ {
QString manualLink = "https://wiki.ubuntu.com/Lubuntu/DocumentationTeam/Manual"; QString manualLink = "https://wiki.ubuntu.com/Lubuntu/DocumentationTeam/Manual";
QDesktopServices::openUrl(QUrl(manualLink)); QDesktopServices::openUrl(QUrl(manualLink));
} }
void MainWindow::on_buttonMonitorSetup_clicked() void MainWindow::on_buttonMonitorSetup_clicked()
@ -60,3 +60,13 @@ void MainWindow::on_buttonContribute_clicked()
QString contributeLink = "https://launchpad.net/~lubuntu-wiki-docs"; QString contributeLink = "https://launchpad.net/~lubuntu-wiki-docs";
QDesktopServices::openUrl(QUrl(contributeLink)); QDesktopServices::openUrl(QUrl(contributeLink));
} }
void MainWindow::on_actionAbout_triggered()
{
QMessageBox::information(this, "About", "Created by Samuel Banya and Wendy Hill © Lubuntu 2018");
}
void MainWindow::on_actionExit_triggered()
{
QApplication::quit();
}

@ -41,6 +41,10 @@ private slots:
void on_buttonContribute_clicked(); void on_buttonContribute_clicked();
void on_actionAbout_triggered();
void on_actionExit_triggered();
private: private:
Ui::MainWindow *ui; Ui::MainWindow *ui;
}; };

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>500</width> <width>600</width>
<height>300</height> <height>300</height>
</rect> </rect>
</property> </property>
@ -14,80 +14,50 @@
<string>MainWindow</string> <string>MainWindow</string>
</property> </property>
<widget class="QWidget" name="centralWidget"> <widget class="QWidget" name="centralWidget">
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QPushButton" name="buttonManual"> <widget class="QPushButton" name="buttonManual">
<property name="geometry">
<rect>
<x>30</x>
<y>40</y>
<width>121</width>
<height>25</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Lubuntu Manual</string> <string>Lubuntu Manual</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QPushButton" name="buttonMonitorSetup"> <widget class="QPushButton" name="buttonMonitorSetup">
<property name="geometry">
<rect>
<x>30</x>
<y>80</y>
<width>121</width>
<height>25</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Monitor Setup</string> <string>Monitor Setup</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QPushButton" name="buttonControlCenter"> <widget class="QPushButton" name="buttonControlCenter">
<property name="geometry">
<rect>
<x>30</x>
<y>120</y>
<width>121</width>
<height>25</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Control Center</string> <string>Control Center</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QPushButton" name="buttonCommunity"> <widget class="QPushButton" name="buttonCommunity">
<property name="geometry">
<rect>
<x>30</x>
<y>160</y>
<width>121</width>
<height>25</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Community</string> <string>Community</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QPushButton" name="buttonContribute"> <widget class="QPushButton" name="buttonContribute">
<property name="geometry">
<rect>
<x>30</x>
<y>200</y>
<width>121</width>
<height>25</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Contribute</string> <string>Contribute</string>
</property> </property>
</widget> </widget>
</item>
</layout>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTextEdit" name="textEdit"> <widget class="QTextEdit" name="textEdit">
<property name="geometry">
<rect>
<x>260</x>
<y>50</y>
<width>211</width>
<height>161</height>
</rect>
</property>
<property name="html"> <property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
@ -98,27 +68,25 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Here is a simple and quick read of some of the new things in the latest version of Lubuntu&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Here is a simple and quick read of some of the new things in the latest version of Lubuntu&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox"> <widget class="QCheckBox" name="checkBox">
<property name="geometry">
<rect>
<x>260</x>
<y>220</y>
<width>211</width>
<height>31</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Show this window at startup</string> <string>Show this window at startup</string>
</property> </property>
</widget> </widget>
</item>
</layout>
</item>
</layout>
</widget> </widget>
<widget class="QMenuBar" name="menuBar"> <widget class="QMenuBar" name="menuBar">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>500</width> <width>600</width>
<height>22</height> <height>29</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">
@ -127,13 +95,25 @@ p, li { white-space: pre-wrap; }
</property> </property>
<addaction name="actionExit"/> <addaction name="actionExit"/>
</widget> </widget>
<widget class="QMenu" name="menuAbout">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionAbout"/>
</widget>
<addaction name="menuFile"/> <addaction name="menuFile"/>
<addaction name="menuAbout"/>
</widget> </widget>
<action name="actionExit"> <action name="actionExit">
<property name="text"> <property name="text">
<string>Exit</string> <string>Exit</string>
</property> </property>
</action> </action>
<action name="actionAbout">
<property name="text">
<string>About</string>
</property>
</action>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>
<resources/> <resources/>

Loading…
Cancel
Save