[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Peter Kümmel
syntheticpp at gmx.net
Fri Oct 19 09:23:09 UTC 2012
SVN commit 1321327 by kuemmel:
rename to Ascii*
M +16 -16 asciiconfigwidget.cpp
M +6 -6 asciiconfigwidget.h
M +1 -1 asciiplugin.cpp
M +1 -1 asciisource.h
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciiconfigwidget.cpp #1321326:1321327
@@ -21,12 +21,12 @@
#include <QMessageBox>
//
-// ConfigWidgetAsciiInternal
+// AsciiConfigWidgetInternal
//
-ConfigWidgetAsciiInternal::ConfigWidgetAsciiInternal(QWidget *parent) :
+AsciiConfigWidgetInternal::AsciiConfigWidgetInternal(QWidget *parent) :
QWidget(parent),
Ui_AsciiConfig(),
_index_offset(1)
@@ -47,7 +47,7 @@
connect(_limitFileBuffer, SIGNAL(toggled(bool)), this, SLOT(updateFrameBuffer(bool)));
}
-void ConfigWidgetAsciiInternal::updateUnitLineEnabled(bool checked)
+void AsciiConfigWidgetInternal::updateUnitLineEnabled(bool checked)
{
if (checked && _readUnits->isChecked()) {
_unitsLine->setEnabled(true);
@@ -56,7 +56,7 @@
}
}
-void ConfigWidgetAsciiInternal::updateFrameBuffer(bool checked)
+void AsciiConfigWidgetInternal::updateFrameBuffer(bool checked)
{
if (checked) {
_limitFileBufferSize->setEnabled(true);
@@ -66,7 +66,7 @@
}
-void ConfigWidgetAsciiInternal::columnLayoutChanged(int idx)
+void AsciiConfigWidgetInternal::columnLayoutChanged(int idx)
{
if (idx == AsciiSourceConfig::Fixed) {
widthButtonGroup->setEnabled(false);
@@ -76,7 +76,7 @@
}
-void ConfigWidgetAsciiInternal::showBeginning()
+void AsciiConfigWidgetInternal::showBeginning()
{
QFile file(_filename);
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
@@ -98,7 +98,7 @@
}
-AsciiSourceConfig ConfigWidgetAsciiInternal::config()
+AsciiSourceConfig AsciiConfigWidgetInternal::config()
{
AsciiSourceConfig config;
config._fileNamePattern = _fileNamePattern->text();
@@ -136,14 +136,14 @@
return config;
}
-void ConfigWidgetAsciiInternal::setFilename(const QString& filename)
+void AsciiConfigWidgetInternal::setFilename(const QString& filename)
{
_filename = filename;
showBeginning();
}
-void ConfigWidgetAsciiInternal::setConfig(const AsciiSourceConfig& config)
+void AsciiConfigWidgetInternal::setConfig(const AsciiSourceConfig& config)
{
_delimiters->setText(config._delimiters);
_fileNamePattern->setText(config._fileNamePattern);
@@ -178,25 +178,25 @@
}
-ConfigWidgetAscii::ConfigWidgetAscii(QSettings& s) : Kst::DataSourceConfigWidget(s) {
+AsciiConfigWidget::AsciiConfigWidget(QSettings& s) : Kst::DataSourceConfigWidget(s) {
QGridLayout *layout = new QGridLayout(this);
- _ac = new ConfigWidgetAsciiInternal(this);
+ _ac = new AsciiConfigWidgetInternal(this);
layout->addWidget(_ac, 0, 0);
layout->activate();
}
-ConfigWidgetAscii::~ConfigWidgetAscii() {
+AsciiConfigWidget::~AsciiConfigWidget() {
}
-void ConfigWidgetAscii::setFilename(const QString& filename)
+void AsciiConfigWidget::setFilename(const QString& filename)
{
_ac->setFilename(filename);
}
-void ConfigWidgetAscii::load() {
+void AsciiConfigWidget::load() {
AsciiSourceConfig config;
if (hasInstance())
config.readGroup(settings(), instance()->fileName());
@@ -227,7 +227,7 @@
}
-void ConfigWidgetAscii::save() {
+void AsciiConfigWidget::save() {
if (hasInstance()) {
Kst::SharedPtr<AsciiSource> src = Kst::kst_cast<AsciiSource>(instance());
if (_ac->_applyDefault->isChecked()) {
@@ -244,7 +244,7 @@
}
}
-bool ConfigWidgetAscii::isOkAcceptabe() const {
+bool AsciiConfigWidget::isOkAcceptabe() const {
AsciiSourceConfig config = _ac->config();
QString msg;
if (config._readFields) {
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciiconfigwidget.h #1321326:1321327
@@ -20,12 +20,12 @@
-class ConfigWidgetAsciiInternal : public QWidget, public Ui_AsciiConfig
+class AsciiConfigWidgetInternal : public QWidget, public Ui_AsciiConfig
{
Q_OBJECT
public:
- ConfigWidgetAsciiInternal(QWidget *parent);
+ AsciiConfigWidgetInternal(QWidget *parent);
AsciiSourceConfig config();
void setConfig(const AsciiSourceConfig&);
@@ -43,11 +43,11 @@
};
-class ConfigWidgetAscii : public Kst::DataSourceConfigWidget
+class AsciiConfigWidget : public Kst::DataSourceConfigWidget
{
public:
- ConfigWidgetAscii(QSettings&);
- ~ConfigWidgetAscii();
+ AsciiConfigWidget(QSettings&);
+ ~AsciiConfigWidget();
void load();
void save();
@@ -55,7 +55,7 @@
void setFilename(const QString& filename);
- ConfigWidgetAsciiInternal *_ac;
+ AsciiConfigWidgetInternal *_ac;
};
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciiplugin.cpp #1321326:1321327
@@ -226,7 +226,7 @@
Kst::DataSourceConfigWidget *AsciiPlugin::configWidget(QSettings *cfg, const QString& filename) const {
Q_UNUSED(filename)
- ConfigWidgetAscii *config = new ConfigWidgetAscii(*cfg);
+ AsciiConfigWidget *config = new AsciiConfigWidget(*cfg);
config->load();
config->setFilename(filename);
return config;
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciisource.h #1321326:1321327
@@ -70,7 +70,7 @@
AsciiDataReader _reader;
AsciiFileBuffer _fileBuffer;
- friend class ConfigWidgetAscii;
+ friend class AsciiConfigWidget;
mutable AsciiSourceConfig _config;
int _byteLength;
More information about the Kst
mailing list