[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice
From: Johannes Simon <johannes.simon () gmail ! com>
Date: 2008-03-02 12:33:21
Message-ID: 1204461201.172166.15518.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 781247 by jsimon:
Add setFirstRowIsLabel() and setFirstColumnIsLabel to ChartShape interface and let KSpread use it
M +2 -0 interfaces/koChart.h
M +13 -0 kchart/shape/ChartShape.cpp
M +3 -0 kchart/shape/ChartShape.h
M +2 -0 kspread/chart/ChartDatabaseSelector.cpp
--- trunk/koffice/interfaces/koChart.h #781246:781247
@@ -84,6 +84,8 @@
virtual void setModel( QAbstractItemModel* model,
bool takeOwnershipOfModel = false ) = 0;
+ virtual void setFirstRowIsLabel( bool isLabel ) = 0;
+ virtual void setFirstColumnIsLabel( bool isLabel ) = 0;
};
}
--- trunk/koffice/kchart/shape/ChartShape.cpp #781246:781247
@@ -183,12 +183,15 @@
d->title = new TextLabel( this );
d->title->setType( TitleLabelType );
+ d->title->setText( i18n( "Title" ) );
d->subTitle = new TextLabel( this );
d->subTitle->setType( SubTitleLabelType );
+ d->subTitle->setText( i18n( "Subtitle" ) );
d->footer = new TextLabel( this );
d->footer->setType( FooterLabelType );
+ d->footer->setText( i18n( "Footer" ) );
d->floor = new Surface( d->plotArea );
d->wall = new Surface( d->plotArea );
@@ -298,6 +301,16 @@
return d->plotArea->isThreeD();
}
+void ChartShape::setFirstRowIsLabel( bool isLabel )
+{
+ d->model->setFirstRowIsLabel( isLabel );
+}
+
+void ChartShape::setFirstColumnIsLabel( bool isLabel )
+{
+ d->model->setFirstColumnIsLabel( isLabel );
+}
+
void ChartShape::setChartType( ChartType type )
{
d->plotArea->setChartType( type );
--- trunk/koffice/kchart/shape/ChartShape.h #781246:781247
@@ -104,6 +104,9 @@
ChartSubtype chartSubType() const;
bool isThreeD() const;
+ void setFirstRowIsLabel( bool isLabel );
+ void setFirstColumnIsLabel( bool isLabel );
+
void setChartType( ChartType type );
void setChartSubType( ChartSubtype subType );
void setThreeD( bool threeD );
--- trunk/koffice/kspread/chart/ChartDatabaseSelector.cpp #781246:781247
@@ -73,6 +73,8 @@
return;
Binding binding(region);
d->shape->setModel(binding.model());
+ d->shape->setFirstRowIsLabel( d->widget.m_firstRowAsLabel->isChecked() );
+ d->shape->setFirstColumnIsLabel( d->widget.m_firstColumnAsLabel->isChecked() );
region.firstSheet()->cellStorage()->setBinding(region, binding);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic