File indexing completed on 2024-12-22 04:18:17
0001 /*************************************************************************** 0002 * * 0003 * copyright : (C) 2007 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 CURVEAPPEARANCE_H 0014 #define CURVEAPPEARANCE_H 0015 0016 #include <QWidget> 0017 #include "ui_curveappearance.h" 0018 0019 #include "kstwidgets_export.h" 0020 0021 namespace Kst { 0022 0023 class KSTWIDGETS_EXPORT CurveAppearance : public QWidget, public Ui::CurveAppearance { 0024 Q_OBJECT 0025 public: 0026 explicit CurveAppearance(QWidget *parent = 0); 0027 virtual ~CurveAppearance(); 0028 0029 bool showLines() const; 0030 bool showLinesDirty() const; 0031 void setShowLines(const bool showLines); 0032 0033 bool showPoints() const; 0034 bool showPointsDirty() const; 0035 void setShowPoints(const bool showPoints); 0036 0037 bool showHead() const; 0038 bool showHeadDirty() const; 0039 void setShowHead(const bool showHead); 0040 0041 bool showBars() const; 0042 bool showBarsDirty() const; 0043 void setShowBars(const bool showBars); 0044 0045 QColor color() const; 0046 bool colorDirty() const; 0047 void setColor(const QColor &c); 0048 0049 QColor headColor() const; 0050 bool headColorDirty() const; 0051 void setHeadColor(const QColor &c); 0052 0053 int pointType() const; 0054 bool pointTypeDirty() const; 0055 void setPointType(const int pointType); 0056 0057 int headType() const; 0058 bool headTypeDirty() const; 0059 void setHeadType(const int headType); 0060 0061 int lineStyle() const; 0062 bool lineStyleDirty() const; 0063 void setLineStyle(int lineStyle); 0064 0065 int lineWidth() const; 0066 bool lineWidthDirty() const; 0067 void setLineWidth(const int lineWidth); 0068 0069 double pointSize() const; 0070 bool pointSizeDirty() const; 0071 void setPointSize(double pointSize); 0072 0073 QColor barFillColor() const; 0074 bool barFillColorDirty() const; 0075 void setBarFillColor(const QColor &c); 0076 0077 int pointDensity() const; 0078 bool pointDensityDirty() const; 0079 void setPointDensity(int pointDensity); 0080 0081 void clearValues(); 0082 0083 void setWidgetDefaults(bool nextColor = false); 0084 void loadWidgetDefaults(); 0085 0086 private slots: 0087 void enableSettings(); 0088 void drawSampleLine(); 0089 void populateSymbolCombos(); 0090 void populateSymbolCombo(QComboBox *combo, QColor color); 0091 void populateLineStyleCombo(); 0092 0093 Q_SIGNALS: 0094 void modified(); 0095 }; 0096 0097 } 0098 0099 #endif 0100 0101 // vim: ts=2 sw=2 et