mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Removed context help button from the dialogs (currently not used) and added minimize/maximize buttons to the "floating" dialogs.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5786 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
07d8db4505
commit
9b5ee85fd0
@ -223,8 +223,10 @@ void ChannelFeed::channelListCustomPopupMenu( QPoint /*point*/ )
|
||||
|
||||
void ChannelFeed::createChannel()
|
||||
{
|
||||
CreateChannel cf (this);
|
||||
cf.exec();
|
||||
CreateChannel *cf = new CreateChannel();
|
||||
cf->show();
|
||||
|
||||
/* window will destroy itself! */
|
||||
}
|
||||
|
||||
/*************************************************************************************/
|
||||
@ -246,13 +248,13 @@ void ChannelFeed::openChat(std::string /*peerId*/)
|
||||
|
||||
void ChannelFeed::editChannelDetail(){
|
||||
|
||||
EditChanDetails editUi(this, 0, mChannelId);
|
||||
EditChanDetails editUi(this, mChannelId);
|
||||
editUi.exec();
|
||||
}
|
||||
|
||||
void ChannelFeed::shareKey()
|
||||
{
|
||||
ShareKey shareUi(this, 0, mChannelId, CHANNEL_KEY_SHARE);
|
||||
ShareKey shareUi(this, mChannelId, CHANNEL_KEY_SHARE);
|
||||
shareUi.exec();
|
||||
}
|
||||
|
||||
|
@ -1435,8 +1435,10 @@ void ForumsDialog::copyMessageLink()
|
||||
|
||||
void ForumsDialog::newforum()
|
||||
{
|
||||
CreateForum cf (this);
|
||||
cf.exec ();
|
||||
CreateForum *cf = new CreateForum();
|
||||
cf->show();
|
||||
|
||||
/* window will destroy itself! */
|
||||
}
|
||||
|
||||
void ForumsDialog::createmessage()
|
||||
@ -1598,7 +1600,7 @@ void ForumsDialog::filterItems(const QString& text)
|
||||
|
||||
void ForumsDialog::shareKey()
|
||||
{
|
||||
ShareKey shareUi(this, 0, mCurrForumId, FORUM_KEY_SHARE);
|
||||
ShareKey shareUi(this, mCurrForumId, FORUM_KEY_SHARE);
|
||||
shareUi.exec();
|
||||
}
|
||||
|
||||
|
@ -26,14 +26,14 @@
|
||||
#include "msgs/MessageComposer.h"
|
||||
#include "settings/rsharesettings.h"
|
||||
|
||||
void FriendRecommendDialog::showYourself(QWidget *parent)
|
||||
void FriendRecommendDialog::showYourself()
|
||||
{
|
||||
FriendRecommendDialog *dlg = new FriendRecommendDialog(parent);
|
||||
FriendRecommendDialog *dlg = new FriendRecommendDialog();
|
||||
dlg->show();
|
||||
}
|
||||
|
||||
FriendRecommendDialog::FriendRecommendDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
FriendRecommendDialog::FriendRecommendDialog() :
|
||||
QDialog(NULL, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint),
|
||||
ui(new Ui::FriendRecommendDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -35,13 +35,13 @@ class FriendRecommendDialog : public QDialog
|
||||
public:
|
||||
~FriendRecommendDialog();
|
||||
|
||||
static void showYourself(QWidget *parent = 0);
|
||||
static void showYourself();
|
||||
|
||||
private slots:
|
||||
void sendMsg();
|
||||
|
||||
private:
|
||||
FriendRecommendDialog(QWidget *parent = 0);
|
||||
FriendRecommendDialog();
|
||||
|
||||
Ui::FriendRecommendDialog *ui;
|
||||
};
|
||||
|
@ -34,14 +34,10 @@
|
||||
#include "retroshare/rspeers.h"
|
||||
#include <retroshare/rshistory.h>
|
||||
|
||||
#ifndef RS_RELEASE_VERSION
|
||||
#include "channels/CreateChannel.h"
|
||||
#endif
|
||||
#include "common/Emoticons.h"
|
||||
#include "common/PeerDefs.h"
|
||||
#include "chat/ChatUserNotify.h"
|
||||
#include "connect/ConnectFriendWizard.h"
|
||||
#include "forums/CreateForum.h"
|
||||
#include "groups/CreateGroup.h"
|
||||
#include "im_history/ImHistoryBrowser.h"
|
||||
#include "MainWindow.h"
|
||||
@ -174,10 +170,6 @@ FriendsDialog::FriendsDialog(QWidget *parent)
|
||||
menu->addAction(ui.actionFriendRecommendations);
|
||||
|
||||
menu->addSeparator();
|
||||
menu->addAction(ui.actionCreate_New_Forum);
|
||||
#ifndef RS_RELEASE_VERSION
|
||||
menu->addAction(ui.actionCreate_New_Channel);
|
||||
#endif
|
||||
menu->addAction(ui.actionSet_your_Avatar);
|
||||
menu->addAction(ui.actionSet_your_Personal_Message);
|
||||
|
||||
@ -753,26 +745,6 @@ void FriendsDialog::getAvatar()
|
||||
}
|
||||
}
|
||||
|
||||
void FriendsDialog::on_actionCreate_New_Forum_activated()
|
||||
{
|
||||
MainWindow::activatePage (MainWindow::Forums);
|
||||
|
||||
CreateForum cf (this);
|
||||
cf.exec();
|
||||
|
||||
}
|
||||
|
||||
void FriendsDialog::on_actionCreate_New_Channel_activated()
|
||||
{
|
||||
#ifndef RS_RELEASE_VERSION
|
||||
MainWindow::activatePage (MainWindow::Channels);
|
||||
|
||||
CreateChannel cf (this);
|
||||
cf.exec();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/** Loads own personal status */
|
||||
void FriendsDialog::loadmypersonalstatus()
|
||||
{
|
||||
|
@ -101,8 +101,6 @@ private slots:
|
||||
void getAvatar();
|
||||
|
||||
void on_actionAdd_Group_activated();
|
||||
void on_actionCreate_New_Forum_activated();
|
||||
void on_actionCreate_New_Channel_activated();
|
||||
|
||||
void loadmypersonalstatus();
|
||||
|
||||
|
@ -744,45 +744,6 @@
|
||||
<string>Add Friend</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCreate_new_Profile">
|
||||
<property name="icon">
|
||||
<iconset resource="images.qrc">
|
||||
<normaloff>:/images/contact_new.png</normaloff>:/images/contact_new.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Create new Profile</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCreate_New_Forum">
|
||||
<property name="icon">
|
||||
<iconset resource="images.qrc">
|
||||
<normaloff>:/images/new_forum16.png</normaloff>:/images/new_forum16.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Create new Forum</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Create new Forum</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCreate_New_Channel">
|
||||
<property name="icon">
|
||||
<iconset resource="images.qrc">
|
||||
<normaloff>:/images/add_channel24.png</normaloff>:/images/add_channel24.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Create new Channel</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Create new Channel</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>C</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSet_your_Avatar">
|
||||
<property name="icon">
|
||||
<iconset resource="images.qrc">
|
||||
@ -881,16 +842,21 @@
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>AvatarWidget</class>
|
||||
<extends>QLabel</extends>
|
||||
<header>gui/common/AvatarWidget.h</header>
|
||||
<container>1</container>
|
||||
<class>LineEditClear</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header>gui/common/LineEditClear.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>LinkTextBrowser</class>
|
||||
<extends>QTextBrowser</extends>
|
||||
<header>gui/common/LinkTextBrowser.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>AvatarWidget</class>
|
||||
<extends>QLabel</extends>
|
||||
<header>gui/common/AvatarWidget.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>FriendList</class>
|
||||
<extends>QWidget</extends>
|
||||
@ -909,11 +875,6 @@
|
||||
<header location="global">gui/chat/ChatTabWidget.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>LineEditClear</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header location="global">gui/common/LineEditClear.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="images.qrc"/>
|
||||
|
@ -33,8 +33,8 @@
|
||||
#define DATETIME_FMT "MMM dd hh:mm:ss"
|
||||
|
||||
/** Default constructor */
|
||||
GenCertDialog::GenCertDialog(bool onlyGenerateIdentity, QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags), mOnlyGenerateIdentity(onlyGenerateIdentity)
|
||||
GenCertDialog::GenCertDialog(bool onlyGenerateIdentity, QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint), mOnlyGenerateIdentity(onlyGenerateIdentity)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -30,7 +30,7 @@ class GenCertDialog : public QDialog
|
||||
|
||||
public:
|
||||
/** Default constructor */
|
||||
GenCertDialog(bool onlyGenerateIdentity, QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
GenCertDialog(bool onlyGenerateIdentity, QWidget *parent = 0);
|
||||
|
||||
private slots:
|
||||
void genPerson();
|
||||
|
@ -45,8 +45,8 @@
|
||||
ShareManager *ShareManager::_instance = NULL ;
|
||||
|
||||
/** Default constructor */
|
||||
ShareManager::ShareManager(QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
ShareManager::ShareManager()
|
||||
: QDialog(NULL, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
@ -208,7 +208,7 @@ void ShareManager::load()
|
||||
void ShareManager::showYourself()
|
||||
{
|
||||
if(_instance == NULL)
|
||||
_instance = new ShareManager(NULL,0) ;
|
||||
_instance = new ShareManager() ;
|
||||
|
||||
_instance->show() ;
|
||||
_instance->activateWindow();
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
|
||||
private:
|
||||
/** Default constructor */
|
||||
ShareManager( QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
ShareManager();
|
||||
/** Default destructor */
|
||||
~ShareManager();
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
/** Default constructor */
|
||||
StartDialog::StartDialog(QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint), reqNewCert(false)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint | Qt::WindowCloseButtonHint), reqNewCert(false)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -37,8 +37,8 @@
|
||||
#define DATETIME_FMT "MMM dd hh:mm:ss"
|
||||
|
||||
/** Default constructor */
|
||||
ChannelDetails::ChannelDetails(QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
ChannelDetails::ChannelDetails(QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -33,8 +33,7 @@ class ChannelDetails : public QDialog
|
||||
public:
|
||||
|
||||
/** Default constructor */
|
||||
ChannelDetails(QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
/** Default destructor */
|
||||
ChannelDetails(QWidget *parent = 0);
|
||||
|
||||
void showDetails(std::string mChannelId);
|
||||
|
||||
|
@ -32,12 +32,14 @@
|
||||
#include <retroshare/rspeers.h>
|
||||
|
||||
/** Constructor */
|
||||
CreateChannel::CreateChannel(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
CreateChannel::CreateChannel()
|
||||
: QDialog(NULL, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
ui.headerFrame->setHeaderImage(QPixmap(":/images/add_channel64.png"));
|
||||
ui.headerFrame->setHeaderText(tr("New Channel"));
|
||||
|
||||
|
@ -29,7 +29,7 @@ class CreateChannel : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CreateChannel(QWidget *parent = 0);
|
||||
CreateChannel();
|
||||
|
||||
void newChannel(); /* cleanup */
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
/** Constructor */
|
||||
CreateChannelMsg::CreateChannelMsg(std::string cId)
|
||||
: QDialog (NULL), mChannelId(cId) ,mCheckAttachment(true), mAutoMediaThumbNail(false)
|
||||
: QDialog (NULL, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint), mChannelId(cId) ,mCheckAttachment(true), mAutoMediaThumbNail(false)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
setupUi(this);
|
||||
|
@ -34,8 +34,8 @@
|
||||
|
||||
|
||||
/** Default constructor */
|
||||
EditChanDetails::EditChanDetails(QWidget *parent, Qt::WFlags flags, std::string cId)
|
||||
: QDialog(parent, flags), mChannelId(cId)
|
||||
EditChanDetails::EditChanDetails(QWidget *parent, std::string cId)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint), mChannelId(cId)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -32,8 +32,7 @@ class EditChanDetails : public QDialog
|
||||
|
||||
public:
|
||||
/** Default constructor */
|
||||
EditChanDetails(QWidget *parent = 0, Qt::WFlags flags = 0, std::string cId = "");
|
||||
/** Default destructor */
|
||||
EditChanDetails(QWidget *parent = 0, std::string cId = 0);
|
||||
|
||||
signals:
|
||||
void configChanged();
|
||||
|
@ -30,8 +30,8 @@
|
||||
|
||||
#include "gui/common/PeerDefs.h"
|
||||
|
||||
ShareKey::ShareKey(QWidget *parent, Qt::WFlags flags, std::string grpId, int grpType) :
|
||||
QDialog(parent, flags), mGrpId(grpId), mGrpType(grpType)
|
||||
ShareKey::ShareKey(QWidget *parent, std::string grpId, int grpType) :
|
||||
QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint), mGrpId(grpId), mGrpType(grpType)
|
||||
{
|
||||
ui = new Ui::ShareKey();
|
||||
ui->setupUi(this);
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
/*
|
||||
*@param chanId The channel id to send request for
|
||||
*/
|
||||
ShareKey(QWidget *parent = 0, Qt::WFlags flags = 0, std::string grpId = "", int grpType = 0);
|
||||
ShareKey(QWidget *parent = 0, std::string grpId = "", int grpType = 0);
|
||||
~ShareKey();
|
||||
|
||||
protected:
|
||||
|
@ -31,8 +31,8 @@
|
||||
#include "gui/common/PeerDefs.h"
|
||||
#include "ChatDialog.h"
|
||||
|
||||
CreateLobbyDialog::CreateLobbyDialog(const std::list<std::string>& peer_list, int privacyLevel, QWidget *parent, Qt::WFlags flags) :
|
||||
QDialog(parent, flags)
|
||||
CreateLobbyDialog::CreateLobbyDialog(const std::list<std::string>& peer_list, int privacyLevel, QWidget *parent) :
|
||||
QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
ui = new Ui::CreateLobbyDialog() ;
|
||||
ui->setupUi(this);
|
||||
|
@ -12,7 +12,7 @@ public:
|
||||
/*
|
||||
*@param chanId The channel id to send request for
|
||||
*/
|
||||
CreateLobbyDialog(const std::list<std::string>& friends_list, int privacyLevel = 0, QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
CreateLobbyDialog(const std::list<std::string>& friends_list, int privacyLevel = 0, QWidget *parent = 0);
|
||||
~CreateLobbyDialog();
|
||||
|
||||
protected:
|
||||
|
@ -31,12 +31,14 @@
|
||||
#include <retroshare/rspeers.h>
|
||||
|
||||
/** Constructor */
|
||||
CreateForum::CreateForum(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
CreateForum::CreateForum()
|
||||
: QDialog(NULL, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
ui.headerFrame->setHeaderImage(QPixmap(":/images/konversation64.png"));
|
||||
ui.headerFrame->setHeaderText(tr("New Forum"));
|
||||
|
||||
|
@ -30,7 +30,7 @@ class CreateForum : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CreateForum(QWidget *parent = 0);
|
||||
CreateForum();
|
||||
|
||||
void newForum(); /* cleanup */
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
/** Constructor */
|
||||
CreateForumMsg::CreateForumMsg(const std::string &fId, const std::string &pId)
|
||||
: QDialog(NULL), mForumId(fId), mParentId(pId)
|
||||
: QDialog(NULL, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint), mForumId(fId), mParentId(pId)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -31,8 +31,8 @@
|
||||
|
||||
|
||||
/** Default constructor */
|
||||
EditForumDetails::EditForumDetails(std::string forumId, QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags), m_forumId(forumId)
|
||||
EditForumDetails::EditForumDetails(std::string forumId, QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint), m_forumId(forumId)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -32,7 +32,7 @@ class EditForumDetails : public QDialog
|
||||
|
||||
public:
|
||||
/** Default constructor */
|
||||
EditForumDetails(std::string forumId = "", QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
EditForumDetails(std::string forumId = "", QWidget *parent = 0);
|
||||
|
||||
signals:
|
||||
void configChanged();
|
||||
|
@ -37,8 +37,8 @@
|
||||
#define DATETIME_FMT "MMM dd hh:mm:ss"
|
||||
|
||||
/** Default constructor */
|
||||
ForumDetails::ForumDetails(QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
ForumDetails::ForumDetails(QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -33,8 +33,7 @@ class ForumDetails : public QDialog
|
||||
public:
|
||||
|
||||
/** Default constructor */
|
||||
ForumDetails(QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
/** Default destructor */
|
||||
ForumDetails(QWidget *parent = 0);
|
||||
|
||||
void showDetails(std::string mCurrForumId);
|
||||
|
||||
|
@ -29,8 +29,8 @@
|
||||
#include "gui/common/GroupDefs.h"
|
||||
|
||||
/** Default constructor */
|
||||
CreateGroup::CreateGroup(const std::string groupId, QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
CreateGroup::CreateGroup(const std::string groupId, QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -32,7 +32,7 @@ class CreateGroup : public QDialog
|
||||
|
||||
public:
|
||||
/** Default constructor */
|
||||
CreateGroup(const std::string groupId, QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
CreateGroup(const std::string groupId, QWidget *parent = 0);
|
||||
/** Default destructor */
|
||||
~CreateGroup();
|
||||
|
||||
|
@ -91,8 +91,8 @@ void ImHistoryBrowserCreateItemsThread::run()
|
||||
}
|
||||
|
||||
/** Default constructor */
|
||||
ImHistoryBrowser::ImHistoryBrowser(const std::string &peerId, QTextEdit *edit, QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
ImHistoryBrowser::ImHistoryBrowser(const std::string &peerId, QTextEdit *edit, QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -43,7 +43,7 @@ class ImHistoryBrowser : public QDialog
|
||||
|
||||
public:
|
||||
/** Default constructor */
|
||||
ImHistoryBrowser(const std::string &peerId, QTextEdit *edit, QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
ImHistoryBrowser(const std::string &peerId, QTextEdit *edit, QWidget *parent = 0);
|
||||
/** Default destructor */
|
||||
virtual ~ImHistoryBrowser();
|
||||
|
||||
|
@ -42,8 +42,8 @@
|
||||
#define COLUMN_GID 2
|
||||
|
||||
/** Default constructor */
|
||||
ProfileManager::ProfileManager(QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
ProfileManager::ProfileManager(QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -33,8 +33,7 @@ class ProfileManager : public QDialog
|
||||
|
||||
public:
|
||||
/** Default constructor */
|
||||
ProfileManager(QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
/** Default destructor */
|
||||
ProfileManager(QWidget *parent = 0);
|
||||
|
||||
private slots:
|
||||
void identityTreeWidgetCostumPopupMenu( QPoint point );
|
||||
|
@ -18,23 +18,14 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
#include "StatusMessage.h"
|
||||
|
||||
#include <retroshare/rsiface.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
#include <retroshare/rsdisc.h>
|
||||
#include <retroshare/rsmsgs.h>
|
||||
#include "gui/settings/rsharesettings.h"
|
||||
|
||||
|
||||
#include <QTime>
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
/** Default constructor */
|
||||
StatusMessage::StatusMessage(QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
StatusMessage::StatusMessage(QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
@ -42,13 +33,7 @@ StatusMessage::StatusMessage(QWidget *parent, Qt::WFlags flags)
|
||||
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(save()));
|
||||
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(close()));
|
||||
|
||||
load();
|
||||
|
||||
}
|
||||
|
||||
/** Destructor. */
|
||||
StatusMessage::~StatusMessage()
|
||||
{
|
||||
ui.txt_StatusMessage->setText(QString::fromUtf8(rsMsgs->getCustomStateString().c_str()));
|
||||
}
|
||||
|
||||
/** Saves the changes on this page */
|
||||
@ -56,14 +41,5 @@ void StatusMessage::save()
|
||||
{
|
||||
rsMsgs->setCustomStateString(ui.txt_StatusMessage->text().toUtf8().constData());
|
||||
|
||||
close();
|
||||
accept();
|
||||
}
|
||||
|
||||
/** Loads the settings for this page */
|
||||
void StatusMessage::load()
|
||||
{
|
||||
ui.txt_StatusMessage->setText(QString::fromUtf8(rsMsgs->getCustomStateString().c_str()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -19,7 +19,6 @@
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
|
||||
#ifndef _STATUSMESSAGE_H
|
||||
#define _STATUSMESSAGE_H
|
||||
|
||||
@ -33,21 +32,16 @@ class StatusMessage : public QDialog
|
||||
|
||||
public:
|
||||
/** Default constructor */
|
||||
StatusMessage(QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
/** Default destructor */
|
||||
~StatusMessage();
|
||||
StatusMessage(QWidget *parent = 0);
|
||||
|
||||
private slots:
|
||||
|
||||
/** Saves the changes on this page */
|
||||
void save();
|
||||
/** Loads the settings for this page */
|
||||
void load();
|
||||
|
||||
private:
|
||||
/** Qt Designer generated object */
|
||||
Ui::StatusMessage ui;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -42,14 +42,13 @@
|
||||
|
||||
#define IMAGE_GENERAL ":/images/kcmsystem24.png"
|
||||
|
||||
|
||||
#include "rsettingswin.h"
|
||||
|
||||
RSettingsWin *RSettingsWin::_instance = NULL;
|
||||
int RSettingsWin::lastPage = 0;
|
||||
|
||||
RSettingsWin::RSettingsWin(QWidget * parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
RSettingsWin::RSettingsWin(QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
static void postModDirectories(bool update_local);
|
||||
|
||||
protected:
|
||||
RSettingsWin(QWidget * parent = 0, Qt::WFlags flags = 0);
|
||||
RSettingsWin(QWidget *parent = 0);
|
||||
~RSettingsWin();
|
||||
|
||||
void addPage(ConfigPage*) ;
|
||||
|
@ -28,7 +28,8 @@
|
||||
#include "gui/style/RSStyle.h"
|
||||
|
||||
/** Default constructor */
|
||||
StyleDialog::StyleDialog(RSStyle &style, QWidget *parent, Qt::WFlags flags) : QDialog(parent, flags)
|
||||
StyleDialog::StyleDialog(RSStyle &style, QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
@ -42,9 +43,7 @@ StyleDialog::StyleDialog(RSStyle &style, QWidget *parent, Qt::WFlags flags) : QD
|
||||
restoreGeometry(geometry);
|
||||
}
|
||||
|
||||
// setWindowIcon(QIcon(":/images/rstray3.png"));
|
||||
|
||||
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(onOK()));
|
||||
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
connect(ui.color1Button, SIGNAL(clicked()), this, SLOT(chooseColor()));
|
||||
@ -88,11 +87,6 @@ StyleDialog::~StyleDialog()
|
||||
Settings->setValueToGroup("StyleDialog", "Geometry", saveGeometry());
|
||||
}
|
||||
|
||||
void StyleDialog::onOK()
|
||||
{
|
||||
accept();
|
||||
}
|
||||
|
||||
int StyleDialog::neededColors()
|
||||
{
|
||||
return RSStyle::neededColors((RSStyle::StyleType) ui.styleComboBox->itemData(ui.styleComboBox->currentIndex()).toInt());
|
||||
|
@ -36,14 +36,13 @@ class StyleDialog : public QDialog
|
||||
|
||||
public:
|
||||
/** Default constructor */
|
||||
StyleDialog(RSStyle &style, QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
StyleDialog(RSStyle &style, QWidget *parent = 0);
|
||||
/** Default destructor */
|
||||
~StyleDialog();
|
||||
|
||||
void getStyle(RSStyle &style);
|
||||
|
||||
private slots:
|
||||
void onOK();
|
||||
void chooseColor();
|
||||
void showButtons();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user