File indexing completed on 2025-01-05 05:23:47
0001 /* 0002 This file is part of the Okteta Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2009 Alex Richardson <alex.richardson@gmx.de> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_STRUCTUREVIEWSETTINGSWIDGET_HPP 0010 #define KASTEN_STRUCTUREVIEWSETTINGSWIDGET_HPP 0011 0012 #include <ui_structureviewsettingswidget.h> 0013 #include <QWidget> 0014 0015 class KConfigSkeletonItem; 0016 0017 class StructureViewSettingsWidget : public QWidget 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit StructureViewSettingsWidget(); 0023 ~StructureViewSettingsWidget() override; 0024 0025 private: 0026 void setupBasesCombo(QComboBox* box, KConfigSkeletonItem* configItem, 0027 int currentValue, const char* slot); 0028 void handleMapping(int index, QComboBox* box, QSpinBox* spin); 0029 0030 private Q_SLOTS: 0031 void setCharDisplay(int index); 0032 void setSignedDisplay(int index); 0033 void setUnsignedDisplay(int index); 0034 0035 private: 0036 Ui_StructureViewSettingsWidget ui; 0037 }; 0038 0039 #endif