File indexing completed on 2024-04-21 15:08:02
0001 // Copyright (c) 2002 Rob Kaper <cap@capsi.com> 0002 // 0003 // This library is free software; you can redistribute it and/or 0004 // modify it under the terms of the GNU Lesser General Public 0005 // License version 2.1 as published by the Free Software Foundation. 0006 // 0007 // This library is distributed in the hope that it will be useful, 0008 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0010 // Lesser General Public License for more details. 0011 // 0012 // You should have received a copy of the GNU Lesser General Public License 0013 // along with this library; see the file COPYING.LIB. If not, write to 0014 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0015 // Boston, MA 02110-1301, USA. 0016 0017 #ifndef ATLANTIK_ESTATEDETAILS_H 0018 #define ATLANTIK_ESTATEDETAILS_H 0019 0020 #include "estatedetailsbase.h" 0021 0022 #include <QVector> 0023 0024 class QHBoxLayout; 0025 0026 class QListWidget; 0027 class QPushButton; 0028 0029 class EstateDetails : public EstateDetailsBase 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 EstateDetails(Estate *estate, const QString &text, QWidget *parent); 0035 ~EstateDetails(); 0036 0037 void addDetails(); 0038 void addButton(const QString &command, const QString &caption, bool enabled); 0039 void addCloseButton(); 0040 void setText(const QString &text); 0041 void appendText(const QString &text); 0042 void clearButtons(); 0043 0044 Q_SIGNALS: 0045 void buttonCommand(const QString&); 0046 void buttonClose(); 0047 0048 private: 0049 QListWidget *m_infoListView; 0050 QPushButton *m_closeButton; 0051 QHBoxLayout *m_buttonBox; 0052 QVector<QPushButton *> m_buttons; 0053 }; 0054 0055 #endif