mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
-fixed Lokal Directories hide Button to Checked
-added a Toolbar for New Forum Message -moved Post Forum Msg/Cancel Button to ToolBar git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@680 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4db47ef482
commit
31098421b2
7 changed files with 163 additions and 634 deletions
|
@ -22,18 +22,23 @@
|
|||
|
||||
#include "CreateForumMsg.h"
|
||||
|
||||
#include <config/rsharesettings.h>
|
||||
|
||||
#include "rsiface/rsforums.h"
|
||||
|
||||
/** Constructor */
|
||||
CreateForumMsg::CreateForumMsg(std::string fId, std::string pId)
|
||||
: QWidget(NULL), mForumId(fId), mParentId(pId)
|
||||
: QMainWindow(NULL), mForumId(fId), mParentId(pId)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
RshareSettings config;
|
||||
config.loadWidgetInformation(this);
|
||||
|
||||
// connect up the buttons.
|
||||
connect( ui.cancelButton, SIGNAL( clicked ( bool ) ), this, SLOT( cancelMsg( ) ) );
|
||||
connect( ui.postButton, SIGNAL( clicked ( bool ) ), this, SLOT( createMsg( ) ) );
|
||||
connect( ui.postmessage_action, SIGNAL( triggered (bool) ), this, SLOT( cancelMsg( ) ) );
|
||||
connect( ui.close_action, SIGNAL( triggered (bool) ), this, SLOT( createMsg( ) ) );
|
||||
|
||||
newMsg();
|
||||
|
||||
|
@ -72,5 +77,8 @@ void CreateForumMsg::cancelMsg()
|
|||
{
|
||||
close();
|
||||
return;
|
||||
|
||||
RshareSettings config;
|
||||
config.saveWidgetInformation(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue