⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phoneterminal.cpp

📁 KDE下的西门子手机管理程序
💻 CPP
字号:
/***************************************************************************                          phoneterminal.cpp  -  description                             -------------------    begin                : Fri Jan 19 2001    copyright            : (C) 2001 by Matthias Welwarsky    email                : matze@stud.fbi.fh-darmstadt.de ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#include <kdebug.h>#include <qregexp.h>#include <qlineedit.h>#include <qtextview.h>#include "phoneterminal.h"#include "phonectrlcenter.h"#include "messagedispatcher.h"PhoneTerminal::PhoneTerminal(QWidget *parent, const char *name ) : PhoneTerminalDlg(parent,name){	PhoneCtrlCenter* pcCenter = dynamic_cast<PhoneCtrlCenter*>(parentWidget());	if (!pcCenter) {		kdDebug() << "cannot resolve control center\n";		return;	}	messageDispatcher = pcCenter->getDispatcher();	messageDispatcher->registerControl(this, QRegExp(".+"));	kdDebug() << "PhoneTerminal registered\n";	// designer should have done this, but it didn't! BUG!	connect((QObject*)transmitEdit, SIGNAL(returnPressed()), (QObject*)this, SLOT(commandReady()));	connect((QObject*)escButton, SIGNAL(clicked()), (QObject*)this, SLOT(sendEscape()));}PhoneTerminal::~PhoneTerminal(){}/** reimplemented from PhoneControl */void PhoneTerminal::startControl(){}/** reimplemented from PhoneControl */void PhoneTerminal::stopControl(){}/** reimplemented from PhoneControl */void PhoneTerminal::deliverMessage(QString message){	receiveView->append(message);}/** called by the transmitEdit when the enter key is pressed */void PhoneTerminal::commandReady(){	messageDispatcher->sendCommand(transmitEdit->text());}/** sends an escape character to the phone */void PhoneTerminal::sendEscape(){	messageDispatcher->sendPDU(transmitEdit->text());}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -