diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-23 20:48:35 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-29 15:17:38 +0900 |
commit | d63c9d696eb6e2539528b99afc21f4086c9defe3 (patch) | |
tree | b3bfc97a66431a12cdd8f9379c0072673ede43df /kchart/kchartDataConfigPage.cc | |
parent | 5363fe3c36504c37bdc6dcfafd5f71daeae251e8 (diff) | |
download | koffice-d63c9d696eb6e2539528b99afc21f4086c9defe3.tar.gz koffice-d63c9d696eb6e2539528b99afc21f4086c9defe3.zip |
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8b78a8791bc539bcffe7159f9d9714d577cb3d7d)
Diffstat (limited to 'kchart/kchartDataConfigPage.cc')
-rw-r--r-- | kchart/kchartDataConfigPage.cc | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/kchart/kchartDataConfigPage.cc b/kchart/kchartDataConfigPage.cc deleted file mode 100644 index f9cc7e25..00000000 --- a/kchart/kchartDataConfigPage.cc +++ /dev/null @@ -1,149 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2001,2002,2003,2004 Laurent Montel <montel@kde.org> - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. -*/ - -#include "kchartDataConfigPage.h" - -#include "kchartDataConfigPage.moc" - -#include <tdeapplication.h> -#include <tdelocale.h> -#include <kcolorbutton.h> -#include <kdebug.h> - -#include <tqhbox.h> -#include <tqlayout.h> -#include <tqlabel.h> -#include <tqlineedit.h> -#include <tqlistbox.h> -#include <tqbuttongroup.h> -#include <tqvbuttongroup.h> -#include <tqpushbutton.h> -#include <tqradiobutton.h> -#include <tqcheckbox.h> -#include <tqpainter.h> -#include <tqwhatsthis.h> - -#include <tdefontdialog.h> - -// For IRIX -namespace std {} - -using namespace std; - -#include "kchart_params.h" -#include "kchart_part.h" - -namespace KChart -{ - -KChartDataConfigPage::KChartDataConfigPage( KChartParams* params, - TQWidget* parent, - KDChartTableData *dat) - : TQWidget( parent ), m_params( params ), data(dat), - m_firstRowAsLabel(0), m_firstColAsLabel(0) -{ - TQGridLayout *grid1 = new TQGridLayout(this, 4, 1, KDialog::marginHint(), - KDialog::spacingHint()); - - // The Data Area - if ( !m_params->part()->canChangeValue() ) { - TQButtonGroup *gb1 = new TQVButtonGroup( i18n( "Data Area" ), this ); - - // ================================================================ - // This code is copied from kchartWizardSelectDataFormatPage.cc - TQHBox *hbox = new TQHBox( gb1 ); - (void) new TQLabel( i18n("Area: "), hbox); - m_dataArea = new TQLineEdit( hbox ); - - // The row/column as label checkboxes. - m_firstRowAsLabel = new TQCheckBox( i18n( "First row as label" ), gb1); - m_firstColAsLabel = new TQCheckBox( i18n( "First column as label" ), gb1); - - grid1->addWidget(gb1, 0, 0); - } - - // The Data Format button group - TQButtonGroup *gb = new TQVButtonGroup( i18n( "Data Format" ), this ); - - m_rowMajor = new TQRadioButton( i18n( "Data in rows" ), gb ); - m_rowMajor->resize( m_rowMajor->sizeHint() ); - - m_colMajor = new TQRadioButton( i18n( "Data in columns" ), gb ); - m_colMajor->resize( m_colMajor->sizeHint() ); - - grid1->addWidget(gb, 2, 0); - - TQWhatsThis::add(this, i18n("This configuration page can be used to swap the interpretation of rows and columns.")); - TQWhatsThis::add(m_rowMajor, i18n("By default one row is considered to be a data set and each column holds the individual values of the data series. This sets the data in rows on your chart.")); - - TQWhatsThis::add(m_colMajor, i18n("Here you can choose to have each column hold one data set. Note that the values are not really swapped but only their interpretation.")); - m_colMajor->resize( m_colMajor->sizeHint() ); - grid1->addWidget(gb, 1, 0); - grid1->setColStretch(3, 0); - - grid1->activate(); -} - - -void KChartDataConfigPage::init() -{ - if (m_params->dataDirection() == KChartParams::DataRows) - m_rowMajor->setChecked(true); - else - m_colMajor->setChecked(true); - - if ( !m_params->part()->canChangeValue() ) { - m_firstRowAsLabel->setChecked( m_params->firstRowAsLabel() ); - m_firstColAsLabel->setChecked( m_params->firstColAsLabel() ); - - m_dataArea->setText( m_params->dataArea() ); - } -} - - -void KChartDataConfigPage::defaults() -{ - m_colMajor->setChecked( true ); - - if ( !m_params->part()->canChangeValue() ) { - m_firstRowAsLabel->setChecked( false ); - m_firstColAsLabel->setChecked( false ); - - m_dataArea->setText( "" ); - } -} - - -void KChartDataConfigPage::apply() -{ - if (m_rowMajor->isChecked()) - m_params->setDataDirection( KChartParams::DataRows ); - else - m_params->setDataDirection( KChartParams::DataColumns ); - - if ( !m_params->part()->canChangeValue() ) { - m_params->setFirstRowAsLabel( m_firstRowAsLabel->isChecked() ); - m_params->setFirstColAsLabel( m_firstColAsLabel->isChecked() ); - - m_params->setDataArea( m_dataArea->text() ); - } -} - - -} //KChart namespace |