diff --git a/retroshare-gui/src/gui/BlogDialog.cpp b/retroshare-gui/src/gui/BlogDialog.cpp index dbd137d0c..3312c7da8 100644 --- a/retroshare-gui/src/gui/BlogDialog.cpp +++ b/retroshare-gui/src/gui/BlogDialog.cpp @@ -33,9 +33,14 @@ BlogDialog::BlogDialog(QWidget *parent) connect(boldBtn, SIGNAL(clicked()), this, SLOT(setFont())); connect(underlineBtn, SIGNAL(clicked()), this, SLOT(setFont())); connect(italicBtn, SIGNAL(clicked()), this, SLOT(setFont())); + connect(statusBox, SIGNAL(currentIndexChanged(int)), this, SLOT(setStatus())); + /* Current Font */ mCurrentFont = QFont("Comic Sans MS", 8); + /* Current user status - online by default */ + QString currentStatus = "Online"; + } void BlogDialog::sendBlog() @@ -60,6 +65,16 @@ void BlogDialog::setFont() lineEdit->setFont(mCurrentFont); lineEdit->setFocus(); } + + +void BlogDialog::setStatus() +{ + currentStatus = statusBox->currentText(); + + /* for testing */ + /* msgText->append(currentStatus); */ +} + diff --git a/retroshare-gui/src/gui/BlogDialog.h b/retroshare-gui/src/gui/BlogDialog.h index bb252ecc9..a4980b59a 100644 --- a/retroshare-gui/src/gui/BlogDialog.h +++ b/retroshare-gui/src/gui/BlogDialog.h @@ -40,13 +40,20 @@ public: public slots: void sendBlog(); void setFont(); + void setStatus(); private slots: /*nothing here yet */ private: +/* Current Font */ QFont mCurrentFont; + +/* Current status, online by default */ +QString currentStatus; + + }; #endif diff --git a/retroshare-gui/src/gui/BlogDialog.ui b/retroshare-gui/src/gui/BlogDialog.ui index 83e6e8543..105f0453a 100644 --- a/retroshare-gui/src/gui/BlogDialog.ui +++ b/retroshare-gui/src/gui/BlogDialog.ui @@ -623,7 +623,7 @@ - + 0 @@ -783,7 +783,7 @@ - + 600 @@ -797,6 +797,9 @@ 10 + + 0 + Online