File indexing completed on 2024-12-22 04:17:38
0001 /*************************************************************************** 0002 * * 0003 * copyright : (C) 2008 The University of Toronto * 0004 * netterfield@astro.utoronto.ca * 0005 * * 0006 * This program is free software; you can redistribute it and/or modify * 0007 * it under the terms of the GNU General Public License as published by * 0008 * the Free Software Foundation; either version 2 of the License, or * 0009 * (at your option) any later version. * 0010 * * 0011 ***************************************************************************/ 0012 0013 #ifndef OVERRIDELABELTAB_H 0014 #define OVERRIDELABELTAB_H 0015 0016 #include "dialogtab.h" 0017 #include "ui_overridelabeltab.h" 0018 0019 #include "kst_export.h" 0020 0021 namespace Kst { 0022 0023 class OverrideLabelTab : public DialogTab, Ui::OverrideLabelTab { 0024 Q_OBJECT 0025 public: 0026 explicit OverrideLabelTab(QString title, QWidget *parent = 0); 0027 virtual ~OverrideLabelTab(); 0028 0029 QFont labelFont(QFont ref_font) const; 0030 bool labelFontDirty() const; 0031 void setLabelFont(const QFont &font); 0032 0033 qreal labelFontScale() const; 0034 bool labelFontScaleDirty() const; 0035 void setLabelFontScale(const qreal scale); 0036 0037 QColor labelColor() const; 0038 bool labelColorDirty() const; 0039 void setLabelColor(const QColor &color); 0040 0041 bool useDefault() const; 0042 bool useDefaultDirty() const; 0043 void setUseDefault(const bool useDefault); 0044 0045 void setFontSpecsIfDefault(const QFont &font, const qreal scale, const QColor &color); 0046 0047 void enableSingleEditOptions(bool enabled); 0048 void clearTabValues(); 0049 0050 Q_SIGNALS: 0051 void useDefaultChanged(bool); 0052 0053 private Q_SLOTS: 0054 void buttonUpdate(); 0055 0056 private: 0057 bool _fontDirty; 0058 0059 }; 0060 0061 } 0062 0063 #endif 0064 0065 // vim: ts=2 sw=2 et