mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-21 15:30:31 -04:00
Significant changes to the GUI to introduce new display style.
* Completed much of General Msg Dialog. * Completed much of ChannelFeed. * Added Channel Messages to News Feed. * Connected Blog/Channels to GeneralMsgDialog. * Improved SubFileItem display. * Completed ChanGroup/Menu/MsgItems. * Added SubDestItem for use in GeneralMsgDialog. * Generalise CreateForum to cover Channels as well. * Restricted CreateForum to public forums/private channels. * Demo of Drag-N-Drop Files for Linux (filesystem->GenMsgDialog) * Updates to rsiface stuff (blog/channels/types) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@621 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b9ccbd54e8
commit
c6a595c7db
26 changed files with 1489 additions and 206 deletions
|
@ -24,22 +24,46 @@
|
|||
|
||||
#include "ui_GeneralMsgDialog.h"
|
||||
|
||||
class SubDestItem;
|
||||
class SubFileItem;
|
||||
class FileInfo;
|
||||
|
||||
const uint32_t GMD_TYPE_MESSAGE_IDX = 0;
|
||||
const uint32_t GMD_TYPE_FORUM_IDX = 1;
|
||||
const uint32_t GMD_TYPE_CHANNEL_IDX = 2;
|
||||
const uint32_t GMD_TYPE_BLOG_IDX = 3;
|
||||
|
||||
class GeneralMsgDialog : public QDialog, private Ui::GeneralMsgDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Default Constructor */
|
||||
GeneralMsgDialog(QWidget *parent = 0);
|
||||
GeneralMsgDialog(QWidget *parent = 0, uint32_t type = 0);
|
||||
/** Default Destructor */
|
||||
|
||||
virtual void addDestination(uint32_t type, std::string grpId, std::string inReplyTo);
|
||||
void addAttachment(std::string path);
|
||||
void addDestination(uint32_t type, std::string grpId, std::string inReplyTo);
|
||||
|
||||
virtual void cancelMsg();
|
||||
virtual void sendMsg();
|
||||
protected:
|
||||
virtual void dragEnterEvent(QDragEnterEvent *event);
|
||||
virtual void dropEvent(QDropEvent *event);
|
||||
|
||||
private slots:
|
||||
void updateGroupId();
|
||||
void newDestination();
|
||||
void cancelMsg();
|
||||
void sendMsg();
|
||||
|
||||
private:
|
||||
|
||||
void sendMessage(uint32_t type, std::string grpId, std::string inReplyTo,
|
||||
std::wstring subject, std::wstring msg, std::list<FileInfo> &files);
|
||||
|
||||
|
||||
/* maps of files and destinations */
|
||||
std::list<SubDestItem *> mDestinations;
|
||||
std::list<SubFileItem *> mAttachments;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue