File indexing completed on 2024-05-19 05:35:23

0001 #ifndef oxygeninputdemowidget_h
0002 #define oxygeninputdemowidget_h
0003 
0004 //////////////////////////////////////////////////////////////////////////////
0005 // oxygeninputdemowidget.h
0006 // oxygen input widgets (e.g. text editors) demo widget
0007 // -------------------
0008 //
0009 // SPDX-FileCopyrightText: 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0010 //
0011 // SPDX-License-Identifier: MIT
0012 //////////////////////////////////////////////////////////////////////////////
0013 
0014 #include <QToolButton>
0015 #include <QWidget>
0016 
0017 #include "oxygendemowidget.h"
0018 #include "ui_oxygeninputdemowidget.h"
0019 
0020 namespace Oxygen
0021 {
0022 class InputDemoWidget : public DemoWidget
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027     //* constructor
0028     explicit InputDemoWidget(QWidget * = nullptr);
0029 
0030 public Q_SLOTS:
0031 
0032     //* run benchmark
0033     void benchmark(void);
0034 
0035 private Q_SLOTS:
0036 
0037     //* flat widgets
0038     void toggleFlatWidgets(bool);
0039 
0040     //* wrap mode
0041     void toggleWrapMode(bool);
0042 
0043 private:
0044     Ui_InputDemoWidget ui;
0045 };
0046 }
0047 
0048 #endif