20#include "kchartParameterPolarConfigPage.h"
22#include "kchartParameterPolarConfigPage.moc"
24#include <tdeapplication.h>
31#include <tqbuttongroup.h>
32#include <tqcheckbox.h>
33#include <tqlineedit.h>
34#include <tqradiobutton.h>
36#include <tqvbuttongroup.h>
37#include <tqwhatsthis.h>
39#include "kchart_params.h"
44KChartParameterPolarConfigPage::KChartParameterPolarConfigPage( KChartParams* params,
46 TQWidget( parent ),_params( params )
48 TQVBoxLayout *grid1 = new TQVBoxLayout( this);
49 TQVButtonGroup* gb = new TQVButtonGroup( i18n( "Parameter" ), this );
52 polarMarker= new TQCheckBox(i18n( "Polar marker"), gb);
53 TQWhatsThis::add(polarMarker, i18n( "If this is checked, the polar markers are shown; otherwise they are not."));
54 showCircularLabel = new TQCheckBox(i18n( "Show circular label"), gb);
55 TQWhatsThis::add(showCircularLabel, i18n( "Toggle the circular label display."));
57 TQLabel *label = new TQLabel( i18n( "Zero degree position:" ), gb );
58 angle = new TQSpinBox(-359, 359, 1, gb);
59 TQWhatsThis::add(angle, i18n( "Set the position for the X axis (horizontal) from -359 to 359. Default is 0."));
61 label= new TQLabel(i18n( "Line width:"), gb);
62 lineWidth= new TQSpinBox(gb);
63 TQWhatsThis::add(lineWidth, i18n( "Set the width for the chart lines. 0 is default and is the thinnest."));
69void KChartParameterPolarConfigPage::init()
71 polarMarker->setChecked(_params->polarMarker());
72 angle->setValue( _params->polarZeroDegreePos() );
73 showCircularLabel->setChecked(_params->polarRotateCircularLabels());
74 lineWidth->setValue(_params->polarLineWidth());
78void KChartParameterPolarConfigPage::apply()
80 _params->setPolarZeroDegreePos(angle->value());
81 _params->setPolarMarker(polarMarker->isChecked());
82 _params->setPolarRotateCircularLabels(showCircularLabel->isChecked());
83 _params->setPolarLineWidth(lineWidth->value());
|