mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-06 18:15:34 -05:00
improvements MessagesDialog:
- new read/unread state - stored locally - show all recipients in Outbox, Sentbox and Draftbox git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2975 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
61e8d588a8
commit
cef2c1218f
File diff suppressed because it is too large
Load Diff
@ -33,6 +33,8 @@
|
|||||||
#include "mainpage.h"
|
#include "mainpage.h"
|
||||||
#include "ui_MessagesDialog.h"
|
#include "ui_MessagesDialog.h"
|
||||||
|
|
||||||
|
class RSettings;
|
||||||
|
|
||||||
class MessagesDialog : public MainPage
|
class MessagesDialog : public MainPage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -43,7 +45,6 @@ public:
|
|||||||
/** Default Destructor */
|
/** Default Destructor */
|
||||||
~MessagesDialog();
|
~MessagesDialog();
|
||||||
|
|
||||||
void insertMsgTxtAndFiles(QModelIndex index = QModelIndex());
|
|
||||||
// replaced by shortcut
|
// replaced by shortcut
|
||||||
// virtual void keyPressEvent(QKeyEvent *) ;
|
// virtual void keyPressEvent(QKeyEvent *) ;
|
||||||
void updateMessageSummaryList();
|
void updateMessageSummaryList();
|
||||||
@ -77,6 +78,9 @@ private slots:
|
|||||||
|
|
||||||
void removemessage();
|
void removemessage();
|
||||||
|
|
||||||
|
void markAsRead();
|
||||||
|
void markAsUnread();
|
||||||
|
|
||||||
void anchorClicked (const QUrl &);
|
void anchorClicked (const QUrl &);
|
||||||
|
|
||||||
void getcurrentrecommended();
|
void getcurrentrecommended();
|
||||||
@ -100,12 +104,15 @@ private:
|
|||||||
class QStandardItemModel *MessagesModel;
|
class QStandardItemModel *MessagesModel;
|
||||||
QSortFilterProxyModel *proxyModel;
|
QSortFilterProxyModel *proxyModel;
|
||||||
|
|
||||||
|
void insertMsgTxtAndFiles(QModelIndex index = QModelIndex(), bool bSetToRead = true);
|
||||||
|
|
||||||
bool getCurrentMsg(std::string &cid, std::string &mid);
|
bool getCurrentMsg(std::string &cid, std::string &mid);
|
||||||
void setMsgAsRead(const QModelIndex &index);
|
void setMsgAsReadUnread(const QList<int> &Rows, bool bRead);
|
||||||
|
|
||||||
void setCurrentFileName(const QString &fileName);
|
void setCurrentFileName(const QString &fileName);
|
||||||
|
|
||||||
int getSelectedMsgCount ();
|
int getSelectedMsgCount (QList<int> *pRowsRead, QList<int> *pRowsUnread);
|
||||||
|
bool isMessageRead(int nRow);
|
||||||
|
|
||||||
/* internal handle splitter */
|
/* internal handle splitter */
|
||||||
void togglefileview_internal();
|
void togglefileview_internal();
|
||||||
@ -118,8 +125,8 @@ private:
|
|||||||
std::string mCurrMsgId;
|
std::string mCurrMsgId;
|
||||||
|
|
||||||
QString fileName;
|
QString fileName;
|
||||||
|
|
||||||
QFont mFont;
|
QFont mFont;
|
||||||
|
RSettings *m_pConfig;
|
||||||
|
|
||||||
// timer and index for showing message
|
// timer and index for showing message
|
||||||
QTimer *timer;
|
QTimer *timer;
|
||||||
|
@ -270,6 +270,9 @@
|
|||||||
<file>images/message-mail-forwarded-read.png</file>
|
<file>images/message-mail-forwarded-read.png</file>
|
||||||
<file>images/message-mail-replied.png</file>
|
<file>images/message-mail-replied.png</file>
|
||||||
<file>images/message-mail-forwarded.png</file>
|
<file>images/message-mail-forwarded.png</file>
|
||||||
|
<file>images/message-mail-state-read.png</file>
|
||||||
|
<file>images/message-mail-state-unread.png</file>
|
||||||
|
<file>images/message-mail-state-header.png</file>
|
||||||
<file>images/message-news.png</file>
|
<file>images/message-news.png</file>
|
||||||
<file>images/message.png</file>
|
<file>images/message.png</file>
|
||||||
<file>images/messages_new.png</file>
|
<file>images/messages_new.png</file>
|
||||||
|
BIN
retroshare-gui/src/gui/images/message-mail-state-header.png
Normal file
BIN
retroshare-gui/src/gui/images/message-mail-state-header.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 383 B |
BIN
retroshare-gui/src/gui/images/message-mail-state-read.png
Normal file
BIN
retroshare-gui/src/gui/images/message-mail-state-read.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 208 B |
BIN
retroshare-gui/src/gui/images/message-mail-state-unread.png
Normal file
BIN
retroshare-gui/src/gui/images/message-mail-state-unread.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 302 B |
@ -22,12 +22,13 @@
|
|||||||
#include "MessagePage.h"
|
#include "MessagePage.h"
|
||||||
#include "rshare.h"
|
#include "rshare.h"
|
||||||
|
|
||||||
|
#include "rsharesettings.h"
|
||||||
|
|
||||||
MessagePage::MessagePage(QWidget * parent, Qt::WFlags flags)
|
MessagePage::MessagePage(QWidget * parent, Qt::WFlags flags)
|
||||||
: ConfigPage(parent, flags)
|
: ConfigPage(parent, flags)
|
||||||
{
|
{
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
setAttribute(Qt::WA_QuitOnClose, false);
|
setAttribute(Qt::WA_QuitOnClose, false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MessagePage::~MessagePage()
|
MessagePage::~MessagePage()
|
||||||
@ -40,18 +41,19 @@ MessagePage::closeEvent (QCloseEvent * event)
|
|||||||
QWidget::closeEvent(event);
|
QWidget::closeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Saves the changes on this page */
|
/** Saves the changes on this page */
|
||||||
bool
|
bool
|
||||||
MessagePage::save(QString &errmsg)
|
MessagePage::save(QString &errmsg)
|
||||||
{
|
{
|
||||||
return true;
|
Settings->setMsgSetToReadOnActivate(ui.setMsgToReadOnActivate->isChecked());
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Loads the settings for this page */
|
/** Loads the settings for this page */
|
||||||
void
|
void
|
||||||
MessagePage::load()
|
MessagePage::load()
|
||||||
{
|
{
|
||||||
|
ui.setMsgToReadOnActivate->setChecked(Settings->getMsgSetToReadOnActivate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,170 +1,171 @@
|
|||||||
<ui version="4.0" >
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
<class>MessagePage</class>
|
<class>MessagePage</class>
|
||||||
<widget class="QWidget" name="MessagePage" >
|
<widget class="QWidget" name="MessagePage">
|
||||||
<property name="geometry" >
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>398</width>
|
<width>556</width>
|
||||||
<height>389</height>
|
<height>389</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy" >
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="palette" >
|
<property name="palette">
|
||||||
<palette>
|
<palette>
|
||||||
<active>
|
<active>
|
||||||
<colorrole role="WindowText" >
|
<colorrole role="WindowText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Button" >
|
<colorrole role="Button">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>208</red>
|
<red>208</red>
|
||||||
<green>208</green>
|
<green>208</green>
|
||||||
<blue>208</blue>
|
<blue>208</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Light" >
|
<colorrole role="Light">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Midlight" >
|
<colorrole role="Midlight">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>247</red>
|
<red>247</red>
|
||||||
<green>247</green>
|
<green>247</green>
|
||||||
<blue>247</blue>
|
<blue>247</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Dark" >
|
<colorrole role="Dark">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>104</red>
|
<red>104</red>
|
||||||
<green>104</green>
|
<green>104</green>
|
||||||
<blue>104</blue>
|
<blue>104</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Mid" >
|
<colorrole role="Mid">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>139</red>
|
<red>139</red>
|
||||||
<green>139</green>
|
<green>139</green>
|
||||||
<blue>139</blue>
|
<blue>139</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Text" >
|
<colorrole role="Text">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="BrightText" >
|
<colorrole role="BrightText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="ButtonText" >
|
<colorrole role="ButtonText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Base" >
|
<colorrole role="Base">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Window" >
|
<colorrole role="Window">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>240</red>
|
<red>240</red>
|
||||||
<green>240</green>
|
<green>240</green>
|
||||||
<blue>240</blue>
|
<blue>240</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Shadow" >
|
<colorrole role="Shadow">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Highlight" >
|
<colorrole role="Highlight">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>128</blue>
|
<blue>128</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="HighlightedText" >
|
<colorrole role="HighlightedText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Link" >
|
<colorrole role="Link">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="LinkVisited" >
|
<colorrole role="LinkVisited">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="AlternateBase" >
|
<colorrole role="AlternateBase">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>231</red>
|
<red>231</red>
|
||||||
<green>231</green>
|
<green>231</green>
|
||||||
<blue>231</blue>
|
<blue>231</blue>
|
||||||
@ -173,153 +174,153 @@
|
|||||||
</colorrole>
|
</colorrole>
|
||||||
</active>
|
</active>
|
||||||
<inactive>
|
<inactive>
|
||||||
<colorrole role="WindowText" >
|
<colorrole role="WindowText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Button" >
|
<colorrole role="Button">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>208</red>
|
<red>208</red>
|
||||||
<green>208</green>
|
<green>208</green>
|
||||||
<blue>208</blue>
|
<blue>208</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Light" >
|
<colorrole role="Light">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Midlight" >
|
<colorrole role="Midlight">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>247</red>
|
<red>247</red>
|
||||||
<green>247</green>
|
<green>247</green>
|
||||||
<blue>247</blue>
|
<blue>247</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Dark" >
|
<colorrole role="Dark">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>104</red>
|
<red>104</red>
|
||||||
<green>104</green>
|
<green>104</green>
|
||||||
<blue>104</blue>
|
<blue>104</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Mid" >
|
<colorrole role="Mid">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>139</red>
|
<red>139</red>
|
||||||
<green>139</green>
|
<green>139</green>
|
||||||
<blue>139</blue>
|
<blue>139</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Text" >
|
<colorrole role="Text">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="BrightText" >
|
<colorrole role="BrightText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="ButtonText" >
|
<colorrole role="ButtonText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Base" >
|
<colorrole role="Base">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Window" >
|
<colorrole role="Window">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>240</red>
|
<red>240</red>
|
||||||
<green>240</green>
|
<green>240</green>
|
||||||
<blue>240</blue>
|
<blue>240</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Shadow" >
|
<colorrole role="Shadow">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Highlight" >
|
<colorrole role="Highlight">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>192</red>
|
<red>192</red>
|
||||||
<green>192</green>
|
<green>192</green>
|
||||||
<blue>192</blue>
|
<blue>192</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="HighlightedText" >
|
<colorrole role="HighlightedText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Link" >
|
<colorrole role="Link">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="LinkVisited" >
|
<colorrole role="LinkVisited">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="AlternateBase" >
|
<colorrole role="AlternateBase">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>231</red>
|
<red>231</red>
|
||||||
<green>231</green>
|
<green>231</green>
|
||||||
<blue>231</blue>
|
<blue>231</blue>
|
||||||
@ -328,153 +329,153 @@
|
|||||||
</colorrole>
|
</colorrole>
|
||||||
</inactive>
|
</inactive>
|
||||||
<disabled>
|
<disabled>
|
||||||
<colorrole role="WindowText" >
|
<colorrole role="WindowText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>104</red>
|
<red>104</red>
|
||||||
<green>104</green>
|
<green>104</green>
|
||||||
<blue>104</blue>
|
<blue>104</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Button" >
|
<colorrole role="Button">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>208</red>
|
<red>208</red>
|
||||||
<green>208</green>
|
<green>208</green>
|
||||||
<blue>208</blue>
|
<blue>208</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Light" >
|
<colorrole role="Light">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Midlight" >
|
<colorrole role="Midlight">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>247</red>
|
<red>247</red>
|
||||||
<green>247</green>
|
<green>247</green>
|
||||||
<blue>247</blue>
|
<blue>247</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Dark" >
|
<colorrole role="Dark">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>104</red>
|
<red>104</red>
|
||||||
<green>104</green>
|
<green>104</green>
|
||||||
<blue>104</blue>
|
<blue>104</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Mid" >
|
<colorrole role="Mid">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>139</red>
|
<red>139</red>
|
||||||
<green>139</green>
|
<green>139</green>
|
||||||
<blue>139</blue>
|
<blue>139</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Text" >
|
<colorrole role="Text">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>104</red>
|
<red>104</red>
|
||||||
<green>104</green>
|
<green>104</green>
|
||||||
<blue>104</blue>
|
<blue>104</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="BrightText" >
|
<colorrole role="BrightText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="ButtonText" >
|
<colorrole role="ButtonText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>104</red>
|
<red>104</red>
|
||||||
<green>104</green>
|
<green>104</green>
|
||||||
<blue>104</blue>
|
<blue>104</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Base" >
|
<colorrole role="Base">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>240</red>
|
<red>240</red>
|
||||||
<green>240</green>
|
<green>240</green>
|
||||||
<blue>240</blue>
|
<blue>240</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Window" >
|
<colorrole role="Window">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>240</red>
|
<red>240</red>
|
||||||
<green>240</green>
|
<green>240</green>
|
||||||
<blue>240</blue>
|
<blue>240</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Shadow" >
|
<colorrole role="Shadow">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>0</blue>
|
<blue>0</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Highlight" >
|
<colorrole role="Highlight">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>128</blue>
|
<blue>128</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="HighlightedText" >
|
<colorrole role="HighlightedText">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>255</green>
|
<green>255</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="Link" >
|
<colorrole role="Link">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>0</red>
|
<red>0</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="LinkVisited" >
|
<colorrole role="LinkVisited">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>255</red>
|
<red>255</red>
|
||||||
<green>0</green>
|
<green>0</green>
|
||||||
<blue>255</blue>
|
<blue>255</blue>
|
||||||
</color>
|
</color>
|
||||||
</brush>
|
</brush>
|
||||||
</colorrole>
|
</colorrole>
|
||||||
<colorrole role="AlternateBase" >
|
<colorrole role="AlternateBase">
|
||||||
<brush brushstyle="SolidPattern" >
|
<brush brushstyle="SolidPattern">
|
||||||
<color alpha="255" >
|
<color alpha="255">
|
||||||
<red>231</red>
|
<red>231</red>
|
||||||
<green>231</green>
|
<green>231</green>
|
||||||
<blue>231</blue>
|
<blue>231</blue>
|
||||||
@ -484,7 +485,7 @@
|
|||||||
</disabled>
|
</disabled>
|
||||||
</palette>
|
</palette>
|
||||||
</property>
|
</property>
|
||||||
<property name="font" >
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<family>Arial</family>
|
<family>Arial</family>
|
||||||
<pointsize>8</pointsize>
|
<pointsize>8</pointsize>
|
||||||
@ -495,12 +496,32 @@
|
|||||||
<strikeout>false</strikeout>
|
<strikeout>false</strikeout>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="contextMenuPolicy" >
|
<property name="contextMenuPolicy">
|
||||||
<enum>Qt::NoContextMenu</enum>
|
<enum>Qt::NoContextMenu</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<widget class="QGroupBox" name="groupBox">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>10</x>
|
||||||
|
<y>10</y>
|
||||||
|
<width>395</width>
|
||||||
|
<height>61</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Misc</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QCheckBox" name="setMsgToReadOnActivate">
|
||||||
|
<property name="text">
|
||||||
|
<string>Set message to read on activate</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../images.qrc" />
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -345,3 +345,13 @@ void RshareSettings::loadWidgetInformation(QMainWindow *widget, QToolBar *toolBa
|
|||||||
loadWidgetInformation(widget);
|
loadWidgetInformation(widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Messages */
|
||||||
|
bool RshareSettings::getMsgSetToReadOnActivate ()
|
||||||
|
{
|
||||||
|
return valueFromGroup("MessageDialog", "SetMsgToReadOnActivate", true).toBool();
|
||||||
|
}
|
||||||
|
|
||||||
|
void RshareSettings::setMsgSetToReadOnActivate (bool bValue)
|
||||||
|
{
|
||||||
|
setValueToGroup("MessageDialog", "SetMsgToReadOnActivate", bValue);
|
||||||
|
}
|
||||||
|
@ -126,6 +126,10 @@ public:
|
|||||||
//! Method overload. Restore window and toolbar information.
|
//! Method overload. Restore window and toolbar information.
|
||||||
void loadWidgetInformation(QMainWindow *widget, QToolBar *toolBar);
|
void loadWidgetInformation(QMainWindow *widget, QToolBar *toolBar);
|
||||||
|
|
||||||
|
/* Messages */
|
||||||
|
bool getMsgSetToReadOnActivate ();
|
||||||
|
void setMsgSetToReadOnActivate (bool bValue);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Default constructor. */
|
/** Default constructor. */
|
||||||
RshareSettings();
|
RshareSettings();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user