Status combo box now returns current user status.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@532 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
rwoodruff91 2008-05-04 16:40:39 +00:00
parent 607a017ca7
commit 1e6f925d67
3 changed files with 27 additions and 2 deletions

View File

@ -33,9 +33,14 @@ BlogDialog::BlogDialog(QWidget *parent)
connect(boldBtn, SIGNAL(clicked()), this, SLOT(setFont())); connect(boldBtn, SIGNAL(clicked()), this, SLOT(setFont()));
connect(underlineBtn, SIGNAL(clicked()), this, SLOT(setFont())); connect(underlineBtn, SIGNAL(clicked()), this, SLOT(setFont()));
connect(italicBtn, 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); mCurrentFont = QFont("Comic Sans MS", 8);
/* Current user status - online by default */
QString currentStatus = "Online";
} }
void BlogDialog::sendBlog() void BlogDialog::sendBlog()
@ -60,6 +65,16 @@ void BlogDialog::setFont()
lineEdit->setFont(mCurrentFont); lineEdit->setFont(mCurrentFont);
lineEdit->setFocus(); lineEdit->setFocus();
} }
void BlogDialog::setStatus()
{
currentStatus = statusBox->currentText();
/* for testing */
/* msgText->append(currentStatus); */
}

View File

@ -40,13 +40,20 @@ public:
public slots: public slots:
void sendBlog(); void sendBlog();
void setFont(); void setFont();
void setStatus();
private slots: private slots:
/*nothing here yet */ /*nothing here yet */
private: private:
/* Current Font */
QFont mCurrentFont; QFont mCurrentFont;
/* Current status, online by default */
QString currentStatus;
}; };
#endif #endif

View File

@ -623,7 +623,7 @@
</layout> </layout>
</item> </item>
<item row="1" column="0" > <item row="1" column="0" >
<widget class="QTreeWidget" name="msgSendList" > <widget class="QTreeWidget" name="userList" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy vsizetype="Ignored" hsizetype="Ignored" > <sizepolicy vsizetype="Ignored" hsizetype="Ignored" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -783,7 +783,7 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QComboBox" name="comboBox" > <widget class="QComboBox" name="statusBox" >
<property name="geometry" > <property name="geometry" >
<rect> <rect>
<x>600</x> <x>600</x>
@ -797,6 +797,9 @@
<pointsize>10</pointsize> <pointsize>10</pointsize>
</font> </font>
</property> </property>
<property name="currentIndex" >
<number>0</number>
</property>
<item> <item>
<property name="text" > <property name="text" >
<string>Online</string> <string>Online</string>