File indexing completed on 2024-05-19 05:35:24
0001 #ifndef oxygentabdemowidget_h 0002 #define oxygentabdemowidget_h 0003 0004 ////////////////////////////////////////////////////////////////////////////// 0005 // oxygentabdemowidget.h 0006 // oxygen tabwidget 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_oxygentabdemowidget.h" 0019 0020 namespace Oxygen 0021 { 0022 class TabDemoWidget : public DemoWidget 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 //* constructor 0028 explicit TabDemoWidget(QWidget * = nullptr); 0029 0030 public Q_SLOTS: 0031 0032 //* benchmark 0033 void benchmark(void); 0034 0035 private Q_SLOTS: 0036 0037 //* show/hide corner buttons 0038 void toggleCornerWidgets(bool); 0039 0040 //* change document mode 0041 void toggleDocumentMode(bool); 0042 0043 //* show tab close buttons 0044 void toggleTabCloseButtons(bool); 0045 0046 // change tab position 0047 void changeTabPosition(int); 0048 0049 // change tab position 0050 void changeTextPosition(int); 0051 0052 private: 0053 //* ui 0054 Ui_TabDemoWidget ui; 0055 0056 //* tabbar left button 0057 QToolButton *_left = nullptr; 0058 0059 //* tabbar right button 0060 QToolButton *_right = nullptr; 0061 }; 0062 } 0063 0064 #endif