File indexing completed on 2024-05-19 05:35:23
0001 #ifndef oxygendemowidget_h 0002 #define oxygendemowidget_h 0003 0004 ////////////////////////////////////////////////////////////////////////////// 0005 // oxygendemowidget.h 0006 // base class for oxygen demo widgets 0007 // ------------------- 0008 // 0009 // SPDX-FileCopyrightText: 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0010 // 0011 // SPDX-License-Identifier: MIT 0012 ////////////////////////////////////////////////////////////////////////////// 0013 0014 #include <QWidget> 0015 0016 #include "oxygensimulator.h" 0017 0018 namespace Oxygen 0019 { 0020 class DemoWidget : public QWidget 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 //! constructo 0026 explicit DemoWidget(QWidget *parent) 0027 : QWidget(parent) 0028 , _simulator(new Simulator(this)) 0029 { 0030 } 0031 0032 //! simulator 0033 Simulator &simulator(void) const 0034 { 0035 return *_simulator; 0036 } 0037 0038 private: 0039 //! simulator 0040 Simulator *_simulator; 0041 }; 0042 } 0043 0044 #endif