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"?>
<!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>
<data>
<variable>EnvironmentId</variable>

@ -22,43 +22,6 @@ int main(int argc, char *argv[])
MainWindow w;
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();
}

@ -19,6 +19,7 @@
#include <QUrl>
#include <QDir>
#include <QProcess>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
@ -36,7 +37,6 @@ void MainWindow::on_buttonManual_clicked()
{
QString manualLink = "https://wiki.ubuntu.com/Lubuntu/DocumentationTeam/Manual";
QDesktopServices::openUrl(QUrl(manualLink));
}
void MainWindow::on_buttonMonitorSetup_clicked()
@ -60,3 +60,13 @@ void MainWindow::on_buttonContribute_clicked()
QString contributeLink = "https://launchpad.net/~lubuntu-wiki-docs";
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_actionAbout_triggered();
void on_actionExit_triggered();
private:
Ui::MainWindow *ui;
};

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<width>600</width>
<height>300</height>
</rect>
</property>
@ -14,80 +14,50 @@
<string>MainWindow</string>
</property>
<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">
<property name="geometry">
<rect>
<x>30</x>
<y>40</y>
<width>121</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>Lubuntu Manual</string>
</property>
</widget>
</item>
<item>
<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">
<string>Monitor Setup</string>
</property>
</widget>
</item>
<item>
<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">
<string>Control Center</string>
</property>
</widget>
</item>
<item>
<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">
<string>Community</string>
</property>
</widget>
</item>
<item>
<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">
<string>Contribute</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<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">
<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;
@ -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>
</property>
</widget>
</item>
<item>
<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">
<string>Show this window at startup</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>22</height>
<width>600</width>
<height>29</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@ -127,13 +95,25 @@ p, li { white-space: pre-wrap; }
</property>
<addaction name="actionExit"/>
</widget>
<widget class="QMenu" name="menuAbout">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionAbout"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuAbout"/>
</widget>
<action name="actionExit">
<property name="text">
<string>Exit</string>
</property>
</action>
<action name="actionAbout">
<property name="text">
<string>About</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>

Loading…
Cancel
Save