File indexing completed on 2024-11-17 04:42:37
0001 /* 0002 SPDX-FileCopyrightText: 2007 Bruno Virlet <bruno@virlet.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0005 */ 0006 #pragma once 0007 0008 #include "ui_timescaleedit_base.h" 0009 0010 #include <QDialog> 0011 0012 #include <memory> 0013 0014 namespace EventViews 0015 { 0016 class Prefs; 0017 using PrefsPtr = QSharedPointer<Prefs>; 0018 0019 class TimeScaleConfigDialogPrivate; 0020 0021 class TimeScaleConfigDialog : public QDialog, private Ui::TimeScaleEditWidget 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 TimeScaleConfigDialog(const PrefsPtr &preferences, QWidget *parent); 0027 ~TimeScaleConfigDialog() override; 0028 0029 private: 0030 void add(); 0031 void remove(); 0032 void up(); 0033 void down(); 0034 void okClicked(); 0035 0036 void slotUpdateButton(); 0037 QStringList zones() const; 0038 0039 private: 0040 std::unique_ptr<TimeScaleConfigDialogPrivate> const d; 0041 }; 0042 }