Added tabbed PopupChatWindow. You can switch to tabbed chat window in the settings (NotifyPage).

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3797 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-15 20:49:24 +00:00
parent 1e28183c2d
commit 39907c1afc
14 changed files with 1504 additions and 1036 deletions

View file

@ -22,6 +22,7 @@
#include <QColor>
#include <QFont>
#include <QDateTime>
#include <QWidget>
#include <string>
#include <list>
@ -155,3 +156,43 @@ void RsharePeerSettings::setPrivateChatFont(const std::string &peerId, const QSt
{
set(peerId, "PrivateChatFont", value);
}
void RsharePeerSettings::saveWidgetInformation(const std::string &peerId, QWidget *widget)
{
std::string gpgId;
if (getGpgIdOfSslId(peerId, gpgId) == false) {
/* gpg id not found */
return;
}
beginGroup(QString::fromStdString(gpgId));
beginGroup("widgetInformation");
beginGroup(widget->objectName());
setValue("size", widget->size());
setValue("pos", widget->pos());
endGroup();
endGroup();
endGroup();
}
void RsharePeerSettings::loadWidgetInformation(const std::string &peerId, QWidget *widget)
{
std::string gpgId;
if (getGpgIdOfSslId(peerId, gpgId) == false) {
/* gpg id not found */
return;
}
beginGroup(QString::fromStdString(gpgId));
beginGroup("widgetInformation");
beginGroup(widget->objectName());
widget->resize(value("size", widget->size()).toSize());
widget->move(value("pos", QPoint(200, 200)).toPoint());
endGroup();
endGroup();
endGroup();
}