File indexing completed on 2024-04-28 04:02:31
0001 /*************************************************************************** 0002 dlgmultiline.h - multi-line input dialog 0003 This file is a part of KMuddy distribution. 0004 ------------------- 0005 begin : Po Aug 26 2002 0006 copyright : (C) 2002-2008 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 DLGMULTILINE_H 0020 #define DLGMULTILINE_H 0021 0022 #include <QDockWidget> 0023 0024 class QTextEdit; 0025 class QLineEdit; 0026 0027 /** 0028 Multi-line input dialog. 0029 *@author Tomas Mecir 0030 */ 0031 0032 class dlgMultiLine : public QDockWidget { 0033 Q_OBJECT 0034 public: 0035 dlgMultiLine (QWidget *parent = nullptr); 0036 ~dlgMultiLine () override; 0037 QSize sizeHint() const override; 0038 /** set font */ 0039 void setFont (const QFont &font); 0040 signals: 0041 void commands (const QStringList &commands); 0042 protected slots: 0043 void sendClicked (); 0044 protected: 0045 /** the most important stuff here... */ 0046 QTextEdit *editor; 0047 QLineEdit *prefix, *suffix; 0048 }; 0049 0050 #endif