mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Initial commit
This commit is contained in:
48
blackbox/blackbox.cpp
Normal file
48
blackbox/blackbox.cpp
Normal file
@@ -0,0 +1,48 @@
|
||||
//! 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user