pidgin/quail/quail
Clone
Summary
Browse
Changes
Graph
Make the Room List linked to the Join a chat
soc.2013.phil.quail
2013-06-23, Phil Hannent
5ac5337fc6a2
Make the Room List linked to the Join a chat
#include
"mainwindow.h"
#include
"ui_mainwindow.h"
#include
"debugwindow.h"
#include
"accountswindow.h"
#include
"joinachatwindow.h"
MainWindow
::
MainWindow
(
QWidget
*
parent
)
:
QMainWindow
(
parent
),
ui
(
new
Ui
::
MainWindow
),
m_debugWindow
(
0
),
m_accountsWindow
(
0
),
m_joinAChatWindow
(
0
)
{
ui
->
setupUi
(
this
);
connect
(
ui
->
actionDebug_Window
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
slotShowDebug
()));
connect
(
ui
->
actionManage_Accounts
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
slotShowAccounts
()));
qpCore
=
new
QPurple
::
QPurpleCore
();
qpCore
->
qpurple_init
();
}
MainWindow
::~
MainWindow
()
{
delete
ui
;
}
void
MainWindow
::
slotShowDebug
()
{
if
(
m_debugWindow
==
0
)
m_debugWindow
=
new
DebugWindow
(
this
);
m_debugWindow
->
show
();
}
void
MainWindow
::
slotShowAccounts
()
{
if
(
m_accountsWindow
==
0
)
m_accountsWindow
=
new
AccountsWindow
(
this
);
m_accountsWindow
->
show
();
}
void
MainWindow
::
on_actionJoin_a_Chat_triggered
()
{
if
(
m_joinAChatWindow
==
0
)
m_joinAChatWindow
=
new
JoinAChatWindow
(
this
);
m_joinAChatWindow
->
show
();
}