File indexing completed on 2024-04-28 04:02:32

0001 //
0002 // C++ Interface: dlgwindows
0003 //
0004 // Description: 
0005 //
0006 /*
0007 Copyright 2004 Vladimir Lazarenko <vlad@lazarenko.net>
0008 
0009 This program is free software; you can redistribute it and/or
0010 modify it under the terms of the GNU General Public License as
0011 published by the Free Software Foundation; either version 2 of 
0012 the License, or (at your option) any later version.
0013 
0014 This program is distributed in the hope that it will be useful,
0015 but WITHOUT ANY WARRANTY; without even the implied warranty of
0016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017 GNU General Public License for more details.
0018 
0019 You should have received a copy of the GNU General Public License
0020 along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021 */
0022 
0023 #ifndef DLGWINDOWS_H
0024 #define DLGWINDOWS_H
0025 
0026 #include <QDialog>
0027 #include <QLabel>
0028 
0029 class QListWidget;
0030 class QPushButton;
0031 class QStringList;
0032 
0033 class cWindowList;
0034 
0035 /**
0036 @author Vladimir Lazarenko
0037 */
0038 class dlgWindows : public QDialog
0039 {
0040 Q_OBJECT
0041 public:
0042   dlgWindows(cWindowList *wlist, QWidget *parent = nullptr);
0043   ~dlgWindows() override;
0044 
0045   QSize sizeHint() const override;
0046     
0047 protected slots:
0048   void wshow();
0049   void whide();
0050   void remove();
0051   
0052 protected:
0053   void createDialog();
0054   void updateMe();
0055   
0056   QStringList wl;
0057   
0058   cWindowList *winlist;
0059   
0060   QListWidget *box;
0061   QPushButton *btshow, *bthide, *btdelete;
0062   
0063 
0064 };
0065 
0066 #endif