mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-06 13:24:16 -04:00
moved start wizard button to general config panel
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-ImprovedGUI@6131 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2731292545
commit
a3f7f604aa
6 changed files with 24 additions and 14 deletions
|
@ -53,7 +53,6 @@
|
||||||
#include "ChatLobbyWidget.h"
|
#include "ChatLobbyWidget.h"
|
||||||
#include "HelpDialog.h"
|
#include "HelpDialog.h"
|
||||||
#include "AboutDialog.h"
|
#include "AboutDialog.h"
|
||||||
#include "QuickStartWizard.h"
|
|
||||||
#include "ChannelFeed.h"
|
#include "ChannelFeed.h"
|
||||||
#include "bwgraph/bwgraph.h"
|
#include "bwgraph/bwgraph.h"
|
||||||
#include "help/browser/helpbrowser.h"
|
#include "help/browser/helpbrowser.h"
|
||||||
|
@ -1087,12 +1086,6 @@ void MainWindow::showHelpDialog(const QString &topic)
|
||||||
HelpBrowser::showWindow(topic);
|
HelpBrowser::showWindow(topic);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionQuick_Start_Wizard_activated()
|
|
||||||
{
|
|
||||||
QuickStartWizard qstartwizard(this);
|
|
||||||
qstartwizard.exec();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Called when the user changes the UI translation. */
|
/** Called when the user changes the UI translation. */
|
||||||
void
|
void
|
||||||
MainWindow::retranslateUi()
|
MainWindow::retranslateUi()
|
||||||
|
|
|
@ -209,7 +209,6 @@ private slots:
|
||||||
/** Called when user attempts to quit via quit button*/
|
/** Called when user attempts to quit via quit button*/
|
||||||
void doQuit();
|
void doQuit();
|
||||||
|
|
||||||
void on_actionQuick_Start_Wizard_activated();
|
|
||||||
void updateTrayCombine();
|
void updateTrayCombine();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -53,7 +53,6 @@
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionMessenger"/>
|
<addaction name="actionMessenger"/>
|
||||||
<addaction name="actionAbout"/>
|
<addaction name="actionAbout"/>
|
||||||
<addaction name="actionQuick_Start_Wizard"/>
|
|
||||||
<addaction name="actionOptions"/>
|
<addaction name="actionOptions"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionQuit"/>
|
<addaction name="actionQuit"/>
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include <util/stringutil.h>
|
#include <util/stringutil.h>
|
||||||
#include <QSystemTrayIcon>
|
#include <QSystemTrayIcon>
|
||||||
#include "rsharesettings.h"
|
#include "rsharesettings.h"
|
||||||
|
#include <gui/QuickStartWizard.h>
|
||||||
|
|
||||||
/** Constructor */
|
/** Constructor */
|
||||||
GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags)
|
GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags)
|
||||||
|
@ -51,12 +52,17 @@ GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags)
|
||||||
ui.enableRetroShareProtocol->setVisible(false);
|
ui.enableRetroShareProtocol->setVisible(false);
|
||||||
ui.adminLabel->setVisible(false);
|
ui.adminLabel->setVisible(false);
|
||||||
#endif
|
#endif
|
||||||
|
connect(ui.runStartWizard_PB,SIGNAL(clicked()), this,SLOT(runStartWizard())) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Destructor */
|
/** Destructor */
|
||||||
GeneralPage::~GeneralPage()
|
GeneralPage::~GeneralPage()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
void GeneralPage::runStartWizard()
|
||||||
|
{
|
||||||
|
QuickStartWizard(this).exec();
|
||||||
|
}
|
||||||
|
|
||||||
/** Saves the changes on this page */
|
/** Saves the changes on this page */
|
||||||
bool GeneralPage::save(QString &/*errmsg*/)
|
bool GeneralPage::save(QString &/*errmsg*/)
|
||||||
|
|
|
@ -44,6 +44,8 @@ public:
|
||||||
virtual QPixmap iconPixmap() const { return QPixmap(":/images/kcmsystem24.png") ; }
|
virtual QPixmap iconPixmap() const { return QPixmap(":/images/kcmsystem24.png") ; }
|
||||||
virtual QString pageName() const { return tr("General") ; }
|
virtual QString pageName() const { return tr("General") ; }
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void runStartWizard() ;
|
||||||
private:
|
private:
|
||||||
/** Qt Designer generated object */
|
/** Qt Designer generated object */
|
||||||
Ui::GeneralPage ui;
|
Ui::GeneralPage ui;
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>411</width>
|
<width>485</width>
|
||||||
<height>400</height>
|
<height>465</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
@ -182,18 +182,29 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>178</width>
|
<width>20</width>
|
||||||
<height>95</height>
|
<height>40</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="runStartWizard_PB">
|
||||||
|
<property name="text">
|
||||||
|
<string>Launch startup wizard</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../images.qrc">
|
||||||
|
<normaloff>:/images/tools_wizard.png</normaloff>:/images/tools_wizard.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue