mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
Fixed Load and Save own status Message in MessengerWindow works now, you can change your status message in MessengerWindow.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2409 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3d11b15490
commit
887b151779
@ -1,5 +1,31 @@
|
||||
Changes for v0.5.0 alpha *
|
||||
|
||||
* added context menu action for Paste retroshare Link for Create Forum Message
|
||||
* added smotth interpolation flag to image scaling
|
||||
* added Paste retroshare link's from a Button in Create Forum Message, and fixed to not allow send blank Forum Messages
|
||||
* improved display of turtle router info
|
||||
* changed the default Blog Header stylesheet, and use now white Text Color
|
||||
* include own files check option on search
|
||||
* fixed Resume/Pause context menu actions to work properly in all Translations
|
||||
* redesign Create Blog Msg Publisher with html Formating features and fixed textSize formating for Message Composer
|
||||
* added to can use *.gif pictures now too for Avatars.
|
||||
* added new French translation
|
||||
* search result filtering
|
||||
* fixed display issue in transfers (bad colors in crosses)
|
||||
* improved display of tunnel info
|
||||
* made gpg ids more consistent with the way gpg lists them
|
||||
* added more detailed info about gpg ids in login and gen certificates dialogs
|
||||
* fixed to get work properly Play and OpenFile when File Transfer is complete, Play action is only visible when its a media file.
|
||||
* added additional info into FileTransferInfoWidget
|
||||
* added actions for disable/enable Emoticons in Privat Chat and for Clear Chat History
|
||||
* made complete files stay in the download list
|
||||
* fixed bug in clink on link in group chat
|
||||
* added action to GroupChats Button Menu for disable/enable Emoticon's
|
||||
* filter after search, not before search
|
||||
* fixed group chat download
|
||||
* fixed the recommend system
|
||||
* corrected compled completion and file progress issues
|
||||
* security fix to xprogressbar display
|
||||
* reengineered the transfer list display
|
||||
* reduced cost of progress bar display
|
||||
* fixed a bug on MessengerWindow context menu
|
||||
|
@ -99,6 +99,9 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
/* Create RshareSettings object */
|
||||
_settings = new RshareSettings();
|
||||
|
||||
connect( ui.messengertreeWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( messengertreeWidgetCostumPopupMenu( QPoint ) ) );
|
||||
connect( ui.messengertreeWidget, SIGNAL(itemDoubleClicked ( QTreeWidgetItem *, int)), this, SLOT(chatfriend()));
|
||||
@ -108,6 +111,8 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
|
||||
connect( ui.addIMAccountButton, SIGNAL(clicked( bool ) ), this , SLOT( addFriend() ) );
|
||||
connect( ui.actionHide_Offline_Friends, SIGNAL(triggered()), this, SLOT(insertPeers()));
|
||||
|
||||
connect(ui.messagelineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(savestatusmessage()));
|
||||
|
||||
/* to hide the header */
|
||||
ui.messengertreeWidget->header()->hide();
|
||||
|
||||
@ -139,8 +144,7 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
|
||||
|
||||
insertPeers();
|
||||
updateAvatar();
|
||||
loadmystatus();
|
||||
//loadstatus();
|
||||
loadmystatusmessage();
|
||||
|
||||
displayMenu();
|
||||
updateMessengerDisplay();
|
||||
@ -865,12 +869,25 @@ void MessengerWindow::getAvatar()
|
||||
}
|
||||
}
|
||||
|
||||
/** Loads own personal status */
|
||||
void MessengerWindow::loadmystatus()
|
||||
/** Loads own personal status message */
|
||||
void MessengerWindow::loadmystatusmessage()
|
||||
{
|
||||
ui.messagelineEdit->setText(QString::fromStdString(rsMsgs->getCustomStateString()));
|
||||
}
|
||||
|
||||
/** Save own status message */
|
||||
void MessengerWindow::savestatusmessage()
|
||||
{
|
||||
_settings->beginGroup("Profile");
|
||||
|
||||
_settings->setValue("StatusMessage",ui.messagelineEdit->text());
|
||||
|
||||
_settings->endGroup();
|
||||
|
||||
rsMsgs->setCustomStateString(ui.messagelineEdit->text().toStdString());
|
||||
|
||||
}
|
||||
|
||||
void MessengerWindow::on_actionSort_Peers_Descending_Order_activated()
|
||||
{
|
||||
ui.messengertreeWidget->sortItems ( 0, Qt::DescendingOrder );
|
||||
|
@ -56,6 +56,7 @@ public slots:
|
||||
|
||||
void updatePeersAvatar(const QString& peer_id);
|
||||
void updateAvatar();
|
||||
void loadmystatusmessage();
|
||||
|
||||
LogoBar & getLogoBar() const;
|
||||
|
||||
@ -94,7 +95,8 @@ private slots:
|
||||
|
||||
void changeAvatarClicked();
|
||||
|
||||
void loadmystatus();
|
||||
void savestatusmessage();
|
||||
|
||||
void loadstatus();
|
||||
|
||||
void on_actionSort_Peers_Descending_Order_activated();
|
||||
@ -138,6 +140,9 @@ private:
|
||||
LogoBar * _rsLogoBarmessenger;
|
||||
|
||||
QFont itemFont;
|
||||
|
||||
/** A RshareSettings object used for saving/loading settings */
|
||||
RshareSettings* _settings;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::MessengerWindow ui;
|
||||
|
@ -148,6 +148,7 @@ int main(int argc, char *argv[])
|
||||
QObject::connect(notify,SIGNAL(ownAvatarChanged()),w->peersDialog,SLOT(updateAvatar()));
|
||||
QObject::connect(notify,SIGNAL(ownAvatarChanged()),w->messengerWindow,SLOT(updateAvatar()));
|
||||
QObject::connect(notify,SIGNAL(ownStatusMessageChanged()),w->peersDialog,SLOT(loadmypersonalstatus()));
|
||||
QObject::connect(notify,SIGNAL(ownStatusMessageChanged()),w->messengerWindow,SLOT(loadmystatusmessage()));
|
||||
|
||||
QObject::connect(notify,SIGNAL(logInfoChanged(const QString&)),w->networkDialog,SLOT(setLogInfo(QString))) ;
|
||||
QObject::connect(notify,SIGNAL(errorOccurred(int,int,const QString&)),w,SLOT(displayErrorMessage(int,int,const QString&))) ;
|
||||
|
Loading…
Reference in New Issue
Block a user