/***************************************************************************
                          areaperimeter1.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 AREAPERIMETER1_H
#define AREAPERIMETER1_H

#include <qwidget.h>
#include <AreaPerimeter1D.h>

/**
  *@author Birgit Schulz
  */

#define MAX_RESTRICTED_LINES 8

class AreaPerimeter1 : public AreaPerimeter1D
{
    Q_OBJECT

    public:
        AreaPerimeter1(QWidget *parent=0, const char *name=0);
        ~AreaPerimeter1();
        enum EFunctions {Square, Rectangle, Circle};
        void changeView(EFunctions eSelected);

    protected:
        EFunctions m_eSelected;
        KRestrictedLine *m_apoKRestrictedLineInfo[MAX_RESTRICTED_LINES];
        QLabel *m_apoTextLabelInfo[MAX_RESTRICTED_LINES];
        
  
    protected slots:
        void slotCalculate();
        void slotClear();
        void slotFunctionSelected(int);
        void slotCheckBoxes(const QString &qsText);
    };

#endif
