📄 message.h
字号:
//// The contents of this file are subject to the Mozilla Public License// Version 1.0 (the "License"); you may not use this file except in// compliance with the License. You may obtain a copy of the License at// http://www.mozilla.org/MPL///// Software distributed under the License is distributed on an "AS IS"// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See// the License for the specific language governing rights and limitations// under the License.//// The Original Code is CPhone, a cross platform voip gui.//// The Initial Developer of the Original Code is Derek Smithies.//// Copyright (C) 2002 Indranet Technologies Ltd,// http://www.indranet-technologies.com// All Rights Reserved.//// Contributor(s): _______________/* * * $Log: message.h,v $ * Revision 1.1 2003/05/09 03:02:35 dereksmithies * Add thread safe mechanism to display messages. * * * * * */#ifndef MESSAGE_H#define MESSAGE_H#ifndef QT_H#include "qwidget.h"#endif#include <qmessagebox.h>#include <qthread.h>#include <ptlib.h>class ThreadSafeMessage : public QObject{ // Q_OBJECT public: ThreadSafeMessage(); ~ThreadSafeMessage(); void DisplayError(QString thisMesage); void DisplayWarning(QString thisMesage); void DisplayInformation(QString thisMesage); void DisplayError(PString thisMesage); void DisplayWarning(PString thisMesage); void DisplayInformation(PString thisMesage); void Main(); protected: void GenerateMessage(QString thisMessage, QString thisTitle); QString message; QString title; // PSyncPoint syncPoint; enum messageLevel {eCritical, eWarning, eInformation} mLevel; bool event(QEvent *e);};#endif // MESSAGE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -