File indexing completed on 2025-01-19 06:54:51
0001 // 0002 // 0003 // C++ Interface: cprompt 0004 // 0005 // Description: 0006 // 0007 /* 0008 Copyright 2003-2011 Tomas Mecir <kmuddy@kmuddy.com> 0009 0010 This program is free software; you can redistribute it and/or 0011 modify it under the terms of the GNU General Public License as 0012 published by the Free Software Foundation; either version 2 of 0013 the License, or (at your option) any later version. 0014 0015 This program is distributed in the hope that it will be useful, 0016 but WITHOUT ANY WARRANTY; without even the implied warranty of 0017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0018 GNU General Public License for more details. 0019 0020 You should have received a copy of the GNU General Public License 0021 along with this program. If not, see <http://www.gnu.org/licenses/>. 0022 */ 0023 0024 #ifndef CPROMPT_H 0025 #define CPROMPT_H 0026 0027 #include <cactionbase.h> 0028 #include <kmuddy_export.h> 0029 0030 #include <qlabel.h> 0031 0032 class KMUDDY_EXPORT cPrompt : public QLabel, public cActionBase { 0033 Q_OBJECT 0034 public: 0035 cPrompt (int sess, QWidget *parent); 0036 ~cPrompt() override; 0037 void updatePrompt (const QString &text); 0038 protected: 0039 void eventStringHandler (QString event, int, QString &par1, const QString &) override; 0040 void eventNothingHandler (QString event, int) override; 0041 0042 }; 0043 0044 #endif