mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-02 03:16:18 -05:00
added Start new Thread Button
added MessageBox Info when no Forum is selected git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1953 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2a107ad706
commit
5ae41c8de9
@ -42,6 +42,7 @@
|
|||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
#include <QMessageBox>
|
||||||
|
|
||||||
/* Images for context menu icons */
|
/* Images for context menu icons */
|
||||||
#define IMAGE_MESSAGE ":/images/folder-draft.png"
|
#define IMAGE_MESSAGE ":/images/folder-draft.png"
|
||||||
@ -76,7 +77,7 @@ ForumsDialog::ForumsDialog(QWidget *parent)
|
|||||||
|
|
||||||
connect(ui.newForumButton, SIGNAL(clicked()), this, SLOT(newforum()));
|
connect(ui.newForumButton, SIGNAL(clicked()), this, SLOT(newforum()));
|
||||||
connect(ui.newmessageButton, SIGNAL(clicked()), this, SLOT(createmessage()));
|
connect(ui.newmessageButton, SIGNAL(clicked()), this, SLOT(createmessage()));
|
||||||
|
connect(ui.newthreadButton, SIGNAL(clicked()), this, SLOT(showthread()));
|
||||||
|
|
||||||
connect( ui.forumTreeWidget, SIGNAL( currentItemChanged ( QTreeWidgetItem *, QTreeWidgetItem *) ), this,
|
connect( ui.forumTreeWidget, SIGNAL( currentItemChanged ( QTreeWidgetItem *, QTreeWidgetItem *) ), this,
|
||||||
SLOT( changedForum( QTreeWidgetItem *, QTreeWidgetItem * ) ) );
|
SLOT( changedForum( QTreeWidgetItem *, QTreeWidgetItem * ) ) );
|
||||||
@ -830,10 +831,12 @@ void ForumsDialog::showthread()
|
|||||||
{
|
{
|
||||||
if (mCurrForumId == "")
|
if (mCurrForumId == "")
|
||||||
{
|
{
|
||||||
|
QMessageBox::information(this, tr("RetroShare"),tr("No Forum Selected!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateForumMsg *cfm = new CreateForumMsg(mCurrForumId, "");
|
CreateForumMsg *cfm = new CreateForumMsg(mCurrForumId, "");
|
||||||
|
cfm->setWindowTitle(tr("Start New Thread"));
|
||||||
cfm->show();
|
cfm->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -878,10 +881,3 @@ static ForumDisplay *fui = new ForumDisplay();
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ class ForumsDialog : public MainPage
|
|||||||
public:
|
public:
|
||||||
ForumsDialog(QWidget *parent = 0);
|
ForumsDialog(QWidget *parent = 0);
|
||||||
|
|
||||||
void insertForums();
|
void insertForums();
|
||||||
void insertPost();
|
void insertPost();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
@ -44,14 +44,14 @@ private slots:
|
|||||||
|
|
||||||
void newforum();
|
void newforum();
|
||||||
|
|
||||||
void checkUpdate();
|
void checkUpdate();
|
||||||
|
|
||||||
void changedForum( QTreeWidgetItem *curr, QTreeWidgetItem *prev );
|
void changedForum( QTreeWidgetItem *curr, QTreeWidgetItem *prev );
|
||||||
void changedThread( QTreeWidgetItem *curr, QTreeWidgetItem *prev );
|
void changedThread( QTreeWidgetItem *curr, QTreeWidgetItem *prev );
|
||||||
void changedThread2();
|
void changedThread2();
|
||||||
|
|
||||||
void changeBox( int newrow );
|
void changeBox( int newrow );
|
||||||
void updateMessages ( QTreeWidgetItem * item, int column );
|
void updateMessages ( QTreeWidgetItem * item, int column );
|
||||||
|
|
||||||
void newmessage();
|
void newmessage();
|
||||||
|
|
||||||
|
@ -570,9 +570,13 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="newmessageButton">
|
<widget class="QPushButton" name="newthreadButton">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>New Message</string>
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Start new Thread for Selected Forum</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
@ -583,6 +587,24 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="newmessageButton">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reply Message</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="images.qrc">
|
||||||
|
<normaloff>:/images/mail_reply.png</normaloff>:/images/mail_reply.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_17">
|
<widget class="QLabel" name="label_17">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
Loading…
Reference in New Issue
Block a user