forked from Lubuntu/welcome
Adding latest Lubuntu Welcome Center progress
This commit is contained in:
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>
|
||||||
|
37
main.cpp
37
main.cpp
@ -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;
|
||||||
};
|
};
|
||||||
|
168
mainwindow.ui
168
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,111 +14,79 @@
|
|||||||
<string>MainWindow</string>
|
<string>MainWindow</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralWidget">
|
<widget class="QWidget" name="centralWidget">
|
||||||
<widget class="QPushButton" name="buttonManual">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
<property name="geometry">
|
<item row="0" column="0">
|
||||||
<rect>
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<x>30</x>
|
<item>
|
||||||
<y>40</y>
|
<widget class="QPushButton" name="buttonManual">
|
||||||
<width>121</width>
|
<property name="text">
|
||||||
<height>25</height>
|
<string>Lubuntu Manual</string>
|
||||||
</rect>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="text">
|
</item>
|
||||||
<string>Lubuntu Manual</string>
|
<item>
|
||||||
</property>
|
<widget class="QPushButton" name="buttonMonitorSetup">
|
||||||
</widget>
|
<property name="text">
|
||||||
<widget class="QPushButton" name="buttonMonitorSetup">
|
<string>Monitor Setup</string>
|
||||||
<property name="geometry">
|
</property>
|
||||||
<rect>
|
</widget>
|
||||||
<x>30</x>
|
</item>
|
||||||
<y>80</y>
|
<item>
|
||||||
<width>121</width>
|
<widget class="QPushButton" name="buttonControlCenter">
|
||||||
<height>25</height>
|
<property name="text">
|
||||||
</rect>
|
<string>Control Center</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
</widget>
|
||||||
<string>Monitor Setup</string>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
</widget>
|
<widget class="QPushButton" name="buttonCommunity">
|
||||||
<widget class="QPushButton" name="buttonControlCenter">
|
<property name="text">
|
||||||
<property name="geometry">
|
<string>Community</string>
|
||||||
<rect>
|
</property>
|
||||||
<x>30</x>
|
</widget>
|
||||||
<y>120</y>
|
</item>
|
||||||
<width>121</width>
|
<item>
|
||||||
<height>25</height>
|
<widget class="QPushButton" name="buttonContribute">
|
||||||
</rect>
|
<property name="text">
|
||||||
</property>
|
<string>Contribute</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>Control Center</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
</layout>
|
||||||
<widget class="QPushButton" name="buttonCommunity">
|
</item>
|
||||||
<property name="geometry">
|
<item row="0" column="1">
|
||||||
<rect>
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<x>30</x>
|
<item>
|
||||||
<y>160</y>
|
<widget class="QTextEdit" name="textEdit">
|
||||||
<width>121</width>
|
<property name="html">
|
||||||
<height>25</height>
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Community</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<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>
|
|
||||||
<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><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">What's new in 19.04</p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">What's new in 19.04</p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Here is a simple and quick read of some of the new things in the latest version of Lubuntu</p></body></html></string>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Here is a simple and quick read of some of the new things in the latest version of Lubuntu</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox">
|
</item>
|
||||||
<property name="geometry">
|
<item>
|
||||||
<rect>
|
<widget class="QCheckBox" name="checkBox">
|
||||||
<x>260</x>
|
<property name="text">
|
||||||
<y>220</y>
|
<string>Show this window at startup</string>
|
||||||
<width>211</width>
|
</property>
|
||||||
<height>31</height>
|
</widget>
|
||||||
</rect>
|
</item>
|
||||||
</property>
|
</layout>
|
||||||
<property name="text">
|
</item>
|
||||||
<string>Show this window at startup</string>
|
</layout>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</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…
x
Reference in New Issue
Block a user