/***************************************************************************
                          lines.h  -  description
                             -------------------
    begin                : Son Apr 14 2002
    copyright            : (C) 2002 by Birgit Schulz
    email                : B.Schulz@Superlehrer.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 LINES_H
#define LINES_H

#include <qwidget.h>

#include "LinesD.h"

/**
  *@author Birgit Schulz
  */

class Lines : public LinesD
    {
    Q_OBJECT

    public:
        Lines(QWidget *parent=0, const char *name=0);
        ~Lines();
        enum EFunctions {OnePoint, TwoPoints, AxisSection, Section};
        void changeView(EFunctions eSelected);
        int m_iNumBoxNeed;

    protected:
        EFunctions m_eSelected;
        double Steigung(double x1, double x2, double y1, double y2, bool &bSucess);
        double Achsenabschnitt(double m, double x1, double y1);

    protected slots:
        void slotCalculate();
        void slotClear();
        void slotCheckBoxes(const QString &qsText);
};

#endif
