pidgin/quail/quail

Add the buddy info window
soc.2013.phil.quail
2013-06-23, Phil Hannent
66b0c77c520a
Parents 5ac5337fc6a2
Children 9ff7992b5427
Add the buddy info window
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/buddyinfowindow.cpp Sun Jun 23 09:55:42 2013 +0100
@@ -0,0 +1,20 @@
+#include "buddyinfowindow.h"
+#include "ui_buddyinfowindow.h"
+
+BuddyInfoWindow::BuddyInfoWindow(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::BuddyInfoWindow)
+{
+ ui->setupUi(this);
+}
+
+BuddyInfoWindow::~BuddyInfoWindow()
+{
+ delete ui;
+}
+
+void BuddyInfoWindow::on_buttonBox_clicked(QAbstractButton *button)
+{
+ Q_UNUSED(button)
+ close();
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/buddyinfowindow.h Sun Jun 23 09:55:42 2013 +0100
@@ -0,0 +1,26 @@
+#ifndef BUDDYINFOWINDOW_H
+#define BUDDYINFOWINDOW_H
+
+#include <QDialog>
+#include <QAbstractButton>
+
+namespace Ui {
+class BuddyInfoWindow;
+}
+
+class BuddyInfoWindow : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit BuddyInfoWindow(QWidget *parent = 0);
+ ~BuddyInfoWindow();
+
+private slots:
+ void on_buttonBox_clicked(QAbstractButton *button);
+
+private:
+ Ui::BuddyInfoWindow *ui;
+};
+
+#endif // BUDDYINFOWINDOW_H
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/buddyinfowindow.ui Sun Jun 23 09:55:42 2013 +0100
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>BuddyInfoWindow</class>
+ <widget class="QDialog" name="BuddyInfoWindow">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>300</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Dialog</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Information for:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="lblName">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGraphicsView" name="graphicsView"/>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Close</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>BuddyInfoWindow</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>248</x>
+ <y>254</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>157</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>BuddyInfoWindow</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>316</x>
+ <y>260</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>286</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
--- a/quail.pro Sun Jun 23 09:46:25 2013 +0100
+++ b/quail.pro Sun Jun 23 09:55:42 2013 +0100
@@ -24,7 +24,8 @@
accountwindow.cpp \
joinachatwindow.cpp \
conferenceserverwindow.cpp \
- roomlistwindow.cpp
+ roomlistwindow.cpp \
+ buddyinfowindow.cpp
HEADERS += mainwindow.h \
conversationwindow.h \
@@ -33,7 +34,8 @@
accountwindow.h \
joinachatwindow.h \
conferenceserverwindow.h \
- roomlistwindow.h
+ roomlistwindow.h \
+ buddyinfowindow.h
FORMS += mainwindow.ui \
conversationwindow.ui \
@@ -42,7 +44,8 @@
accountwindow.ui \
joinachatwindow.ui \
conferenceserverwindow.ui \
- roomlistwindow.ui
+ roomlistwindow.ui \
+ buddyinfowindow.ui
unix {
INCLUDEPATH += /usr/include/glib-2.0 \