mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
49 lines
997 B
C++
49 lines
997 B
C++
//! Copyright (C) 2013 Roland Winklmeier
|
|
//! This Source Code Form is subject to the terms of the Mozilla Public
|
|
//! License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
//! file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
|
|
#include "dialog_connect.h"
|
|
#include "dialog_chat.h"
|
|
|
|
#include "blackbox.h"
|
|
#include "ui_blackbox.h"
|
|
|
|
BlackBox::BlackBox(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::BlackBox)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
m_dlg_connect = new CDialogConnect();
|
|
m_dlg_connect->hide();
|
|
|
|
m_dlg_chat = new CDialogChat();
|
|
m_dlg_chat->hide();
|
|
|
|
connect(ui->bt_Connect, SIGNAL(clicked()), this, SLOT(onConnect()));
|
|
connect(ui->bt_Chat, SIGNAL(clicked()), this, SLOT(onButtonChat()));
|
|
}
|
|
|
|
BlackBox::~BlackBox()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void BlackBox::onConnect()
|
|
{
|
|
if (m_dlg_connect->isHidden())
|
|
{
|
|
m_dlg_connect->show();
|
|
}
|
|
|
|
}
|
|
|
|
void BlackBox::onButtonChat()
|
|
{
|
|
if (m_dlg_chat->isHidden())
|
|
{
|
|
m_dlg_chat->show();
|
|
}
|
|
}
|