[Kst] extragear/graphics/kst/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Thu Nov 17 18:06:29 CET 2005
SVN commit 481050 by netterfield:
Briefest beginning of IO for legend label text changes.
M +7 -1 kstbasecurve.h
M +2 -0 kstcurvedialog_i.cpp
M +21 -0 kstdatadialog.ui
M +2 -0 kstdatadialog.ui.h
--- trunk/extragear/graphics/kst/kst/kstbasecurve.h #481049:481050
@@ -101,10 +101,14 @@
// return the parsed legend tag
virtual Label::Parsed *parsedLegendTag() {return NULL;}
-
+
// just store the size of the legend tag here. The viewLegend actually uses and calculates it.
virtual QSize legendLabelSize() const {return _legendLabelSize;}
virtual void setLegendLabelSize(QSize ls) {_legendLabelSize = ls;}
+
+ void setLegendText(const QString& theValue) { _legendText = theValue; }
+ QString legendText() const { return _legendText;}
+
protected:
double _ns_maxx;
@@ -128,6 +132,8 @@
private:
void commonConstructor();
+private:
+ QString _legendText;
};
--- trunk/extragear/graphics/kst/kst/kstcurvedialog_i.cpp #481049:481050
@@ -563,6 +563,8 @@
_tagName->setText("");
_tagName->setEnabled(false);
+ _legendText->setText("");
+ _legendText->setEnabled(false);
// and clean all the fields
_xVectorDirty = false;
--- trunk/extragear/graphics/kst/kst/kstdatadialog.ui #481049:481050
@@ -142,6 +142,27 @@
<string>Unique name:</string>
</property>
</widget>
+ <widget class="QLineEdit" row="1" column="1" colspan="1">
+ <property name="name">
+ <cstring>_legendText</cstring>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>_selectLabel2</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Legend Text:</string>
+ </property>
+ </widget>
<widget class="QPushButton" row="0" column="2">
<property name="name">
<cstring>_editMultiple</cstring>
--- trunk/extragear/graphics/kst/kst/kstdatadialog.ui.h #481049:481050
@@ -71,6 +71,7 @@
_editMultipleWidget->hide();
_editMultipleMode = false;
_tagName->setEnabled(true);
+ _legendText->setEnabled(true);
setCaption(i18n("New %1").arg(objectName()));
QDialog::show();
@@ -103,6 +104,7 @@
}
_tagName->setEnabled(true);
+ _legendText->setEnabled(true);
update();
fillFieldsForEdit();
More information about the Kst
mailing list