2010-05-21 09:54:40 -04:00
|
|
|
/****************************************************************
|
|
|
|
* RetroShare is distributed under the following license:
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006, crypton
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef MESSAGEPAGE_H
|
|
|
|
#define MESSAGEPAGE_H
|
|
|
|
|
2010-08-22 18:28:57 -04:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2012-02-18 09:55:50 -05:00
|
|
|
#include <retroshare-gui/configpage.h>
|
2010-05-21 09:54:40 -04:00
|
|
|
#include "ui_MessagePage.h"
|
|
|
|
|
2015-03-22 00:52:53 -04:00
|
|
|
#include "gui/msgs/MessageInterface.h"
|
2010-05-27 15:48:52 -04:00
|
|
|
|
2010-05-21 09:54:40 -04:00
|
|
|
class MessagePage : public ConfigPage
|
|
|
|
{
|
2010-05-27 15:48:52 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-10-18 17:10:33 -04:00
|
|
|
MessagePage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
|
2010-05-27 15:48:52 -04:00
|
|
|
~MessagePage();
|
2010-05-21 09:54:40 -04:00
|
|
|
|
|
|
|
/** Saves the changes on this page */
|
2012-02-18 09:55:50 -05:00
|
|
|
virtual bool save(QString &errmsg);
|
2010-05-21 09:54:40 -04:00
|
|
|
/** Loads the settings for this page */
|
2012-02-18 09:55:50 -05:00
|
|
|
virtual void load();
|
|
|
|
|
|
|
|
virtual QPixmap iconPixmap() const { return QPixmap(":/images/evolution.png") ; }
|
|
|
|
virtual QString pageName() const { return tr("Message") ; }
|
2013-10-09 05:31:40 -04:00
|
|
|
virtual QString helpText() const { return ""; }
|
2012-02-18 09:55:50 -05:00
|
|
|
|
2010-05-21 09:54:40 -04:00
|
|
|
|
2010-05-27 15:48:52 -04:00
|
|
|
private slots:
|
|
|
|
void addTag();
|
|
|
|
void editTag();
|
|
|
|
void deleteTag();
|
2010-06-02 08:11:09 -04:00
|
|
|
void defaultTag();
|
2010-05-27 15:48:52 -04:00
|
|
|
|
|
|
|
void currentRowChangedTag(int row);
|
2013-07-31 12:34:34 -04:00
|
|
|
void toggleEnableEncryptedDistantMsgs(bool) ;
|
2010-05-27 15:48:52 -04:00
|
|
|
|
|
|
|
private:
|
2010-08-22 18:12:26 -04:00
|
|
|
void fillTags();
|
2010-05-21 09:54:40 -04:00
|
|
|
|
2010-08-22 18:12:26 -04:00
|
|
|
/* Pointer for not include of rsmsgs.h */
|
|
|
|
MsgTagType *m_pTags;
|
|
|
|
std::list<uint32_t> m_changedTagIds;
|
2010-05-21 09:54:40 -04:00
|
|
|
|
2010-05-27 15:48:52 -04:00
|
|
|
Ui::MessagePage ui;
|
2010-05-21 09:54:40 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !MESSAGEPAGE_H
|
|
|
|
|