File indexing completed on 2024-09-15 06:37:08
0001 /*************************************************************************** 0002 cmultilineinput.h - multi line input handler 0003 This file is a part of KMuddy distribution. 0004 ------------------- 0005 begin : Po Aug 26 2002 0006 copyright : (C) 2002 by Tomas Mecir 0007 email : kmuddy@kmuddy.com 0008 ***************************************************************************/ 0009 0010 /*************************************************************************** 0011 * * 0012 * This program is free software; you can redistribute it and/or modify * 0013 * it under the terms of the GNU General Public License as published by * 0014 * the Free Software Foundation; either version 2 of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 ***************************************************************************/ 0018 0019 #ifndef CMULTILINEINPUT_H 0020 #define CMULTILINEINPUT_H 0021 0022 #include "cactionbase.h" 0023 0024 #include <qobject.h> 0025 #include <QFont> 0026 #include <qstring.h> 0027 0028 class dlgMultiLine; 0029 class QDockWidget; 0030 0031 /** 0032 This class handles the multi-line input edit. It contains function to show, 0033 hide, send contents etc. 0034 Contents are sent to currently active connection. 0035 *@author Tomas Mecir 0036 */ 0037 0038 class cMultiLineInput : public QObject, public cActionBase { 0039 Q_OBJECT 0040 public: 0041 static cMultiLineInput *self(); 0042 ~cMultiLineInput () override; 0043 QDockWidget *dialog (); 0044 void setFont (QFont font); 0045 protected slots: 0046 void sendInput (const QStringList &list); 0047 protected: 0048 cMultiLineInput (); 0049 void init (); 0050 void eventNothingHandler (QString event, int session) override; 0051 0052 dlgMultiLine *multiline; 0053 static cMultiLineInput *_self; 0054 }; 0055 0056 #endif