[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Aug 11 23:04:03 CEST 2004
CVS commit by staikos:
activate the fieldListIsComplete() member in datasources to prevent users from
entering vectors that don't exist when we know the complete set.
note: data wizard surely doesn't work well with sources where we don't know
the full set though
CCMAIL: 75541-done at bugs.kde.org
M +2 -0 datawizard.ui.h 1.75
M +1 -0 kstvectordialog_i.cpp 1.45
M +5 -0 datasources/frame/frame.cpp 1.8
M +2 -0 datasources/frame/frame.h 1.5
--- kdeextragear-2/kst/kst/datawizard.ui.h #1.74:1.75
@@ -117,4 +118,5 @@ void DataWizard::sourceChanged( const QS
_xVector->insertStringList(fl);
_xVector->completionObject()->insertItems(fl);
+ _xVector->setEditable(!_ds->fieldListIsComplete());
for (QStringList::ConstIterator it = fl.begin(); it != fl.end(); ++it) {
new QCheckListItem(_vectors, *it, QCheckListItem::CheckBox);
--- kdeextragear-2/kst/kst/kstvectordialog_i.cpp #1.44:1.45
@@ -91,4 +91,5 @@ void KstVectorDialogI::updateCompletion(
list = ds->fieldList();
ds->readUnlock();
+ Field->setEditable(!ds->fieldListIsComplete());
} else {
list = KstDataSource::fieldListForSource(FileName->url());
--- kdeextragear-2/kst/kst/datasources/frame/frame.cpp #1.7:1.8
@@ -197,4 +197,9 @@ void FrameSource::save(QTextStream &ts)
+bool FrameSource::fieldListIsComplete() const {
+ return false;
+}
+
+
extern "C" {
KstDataSource *create_frame(const QString& filename, const QString& type) {
--- kdeextragear-2/kst/kst/datasources/frame/frame.h #1.4:1.5
@@ -46,4 +46,6 @@ public:
virtual bool isEmpty() const;
+ virtual bool fieldListIsComplete() const;
+
private:
int _frameCount;
More information about the Kst
mailing list