2008-04-15 12:40:38 -04:00
|
|
|
/****************************************************************
|
|
|
|
* RetroShare is distributed under the following license:
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Robert Fernie
|
|
|
|
*
|
|
|
|
* 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
|
2010-07-17 08:40:19 -04:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
2008-04-15 12:40:38 -04:00
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _CREATE_FORUM_MSG_DIALOG_H
|
|
|
|
#define _CREATE_FORUM_MSG_DIALOG_H
|
|
|
|
|
|
|
|
#include "ui_CreateForumMsg.h"
|
|
|
|
|
2012-10-10 09:36:54 -04:00
|
|
|
class CreateForumMsg : public QDialog
|
2008-04-15 12:40:38 -04:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2012-10-10 09:36:54 -04:00
|
|
|
CreateForumMsg(const std::string &fId, const std::string &pId);
|
2008-04-15 12:40:38 -04:00
|
|
|
|
2010-06-23 09:04:54 -04:00
|
|
|
void newMsg(); /* cleanup */
|
2010-07-17 08:40:19 -04:00
|
|
|
|
2008-11-27 18:59:08 -05:00
|
|
|
private slots:
|
2011-12-07 08:08:12 -05:00
|
|
|
void fileHashingFinished(QList<HashedFile> hashedFiles);
|
|
|
|
/* actions to take.... */
|
2010-06-23 09:04:54 -04:00
|
|
|
void createMsg();
|
2010-01-04 09:28:21 -05:00
|
|
|
|
2010-06-23 09:04:54 -04:00
|
|
|
void smileyWidgetForums();
|
2010-07-17 08:40:19 -04:00
|
|
|
void addSmileys();
|
|
|
|
void addFile();
|
2013-09-23 15:53:26 -04:00
|
|
|
void addPicture();
|
2010-05-20 17:53:27 -04:00
|
|
|
|
|
|
|
protected:
|
2010-06-23 09:04:54 -04:00
|
|
|
void closeEvent (QCloseEvent * event);
|
2008-04-15 12:40:38 -04:00
|
|
|
|
2010-07-17 08:40:19 -04:00
|
|
|
private:
|
2010-06-23 09:04:54 -04:00
|
|
|
std::string mForumId;
|
|
|
|
std::string mParentId;
|
2010-07-17 08:40:19 -04:00
|
|
|
|
2010-06-23 09:04:54 -04:00
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::CreateForumMsg ui;
|
2008-04-15 12:40:38 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|