/***************************************************************************
 *                                                                         *
 *   copyright : (C) 2007 The University of Toronto                        *
 *                   netterfield@astro.utoronto.ca                         *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef STROKETAB_H
#define STROKETAB_H

#include "dialogtab.h"
#include "ui_stroketab.h"

#include "kst_export.h"

#include <QPen>

namespace Kst {

class StrokeTab : public DialogTab, Ui::StrokeTab {
  Q_OBJECT
  public:
    explicit StrokeTab(QWidget *parent = 0);
    virtual ~StrokeTab();

    void initialize(QPen *p);

    QPen pen(QPen pen = QPen()) const;

    Qt::PenStyle style() const;
    bool styleDirty() const;
    void setStyle(Qt::PenStyle style);

    qreal width() const;
    bool widthDirty() const;
    void setWidth(qreal width);

    QColor brushColor() const;
    bool brushColorDirty() const;
    void setBrushColor(const QColor &color);

    Qt::BrushStyle brushStyle() const;
    bool brushStyleDirty() const;
    void setBrushStyle(Qt::BrushStyle style);

    Qt::PenJoinStyle joinStyle() const;
    bool joinStyleDirty() const;
    void setJoinStyle(Qt::PenJoinStyle style);

    Qt::PenCapStyle capStyle() const;
    bool capStyleDirty() const;
    void setCapStyle(Qt::PenCapStyle style);

    void clearTabValues();
};

}

#endif

// vim: ts=2 sw=2 et
