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"
|
|
|
|
|
2010-07-17 08:40:19 -04:00
|
|
|
class AttachFileItem;
|
|
|
|
|
2008-08-12 17:07:41 -04:00
|
|
|
class CreateForumMsg : public QMainWindow
|
2008-04-15 12:40:38 -04:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2010-06-23 09:04:54 -04:00
|
|
|
CreateForumMsg(std::string fId, 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:
|
2010-06-23 09:04:54 -04:00
|
|
|
/** Create the context popup menu and it's submenus */
|
|
|
|
void forumMessageCostumPopupMenu( QPoint point );
|
2008-11-27 18:59:08 -05:00
|
|
|
|
2010-06-23 09:04:54 -04:00
|
|
|
void fileHashingFinished(AttachFileItem* file);
|
2008-11-27 18:59:08 -05:00
|
|
|
/* actions to take.... */
|
2010-06-23 09:04:54 -04:00
|
|
|
void createMsg();
|
|
|
|
void cancelMsg();
|
|
|
|
void pasteLink();
|
|
|
|
void pasteLinkFull();
|
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();
|
|
|
|
void addAttachment(std::string);
|
2010-05-20 17:53:27 -04:00
|
|
|
|
|
|
|
protected:
|
2010-06-23 09:04:54 -04:00
|
|
|
void closeEvent (QCloseEvent * event);
|
|
|
|
virtual void dragEnterEvent(QDragEnterEvent *event);
|
|
|
|
virtual void dropEvent(QDropEvent *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
|
|
|
|
|