File indexing completed on 2024-12-01 03:47:30

0001 //
0002 // C++ Interface: dlgvarviewer
0003 //
0004 // Description: 
0005 //
0006 /*
0007 Copyright 2008-2011 Tomas Mecir <kmuddy@kmuddy.com>
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 DLGVARVIEWER_H
0024 #define DLGVARVIEWER_H
0025 
0026 #include <QDockWidget>
0027 
0028 #include "cactionbase.h"
0029 
0030 class QTreeView;
0031 class VariableModel;
0032 
0033 /**
0034 Dialog showing the variable list.
0035 
0036 @author Tomas Mecir
0037 */
0038 class dlgVarViewer : public QDockWidget, public cActionBase
0039 {
0040 Q_OBJECT
0041 public:
0042 
0043   /** constructor */
0044   dlgVarViewer (QWidget *parent = nullptr);
0045   /** destructor */
0046   ~dlgVarViewer () override;
0047 protected:
0048   void createDialog ();
0049 
0050   void eventNothingHandler (QString event, int sess) override;
0051   void eventIntHandler (QString event, int, int val, int) override;
0052   void eventStringHandler (QString event, int sess, QString &par1, const QString &) override;
0053 
0054   void showEvent (QShowEvent *) override;
0055 
0056   QTreeView *viewer;
0057   VariableModel *model;
0058 };
0059 
0060 #endif