File indexing completed on 2024-04-28 07:50:47
0001 /* 0002 * Copyright 1999 by Martin R. Jones <mjones@kde.org> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU General Public License as published by 0006 * the Free Software Foundation; either version 2 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License 0015 * along with this program; if not, write to the Free Software 0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 #ifndef AMORTIPS_H 0019 #define AMORTIPS_H 0020 0021 #include <QStringList> 0022 0023 class QFile; 0024 0025 0026 class AmorTips 0027 { 0028 public: 0029 AmorTips(); 0030 0031 bool setFile(const QString& file); 0032 void reset(); 0033 QString tip(); 0034 0035 protected: 0036 bool readKTips(); 0037 bool read(const QString& file); 0038 bool readTip(QFile &file); 0039 0040 protected: 0041 QStringList mTips; 0042 }; 0043 0044 0045 #endif 0046 0047 // kate: word-wrap off; encoding utf-8; indent-width 4; tab-width 4; line-numbers on; mixed-indent off; remove-trailing-space-save on; replace-tabs-save on; replace-tabs on; space-indent on; 0048 // vim:set spell et sw=4 ts=4 nowrap cino=l1,cs,U1: