1
/***************************************************************************
3
* Copyright : (C) 2003 The University of Toronto *
4
* email : netterfield@astro.utoronto.ca *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
11
***************************************************************************/
13
#ifndef ASCII_CONFIG_WINDGET_H
14
#define ASCII_CONFIG_WINDGET_H
16
#include "asciisource.h"
17
#include "dataplugin.h"
19
#include "ui_asciiconfig.h"
23
class AsciiConfigWidgetInternal : public QWidget, public Ui_AsciiConfig
28
AsciiConfigWidgetInternal(QWidget *parent);
30
AsciiSourceConfig config();
31
void setConfig(const AsciiSourceConfig&);
32
void setFilename(const QString& filename);
35
void columnLayoutChanged(int);
37
void updateUnitLineEnabled(bool);
38
void updateFrameBuffer(bool);
39
void updateFormatString();
42
const int _index_offset;
44
QString readLine(QTextStream& in, int maxLength);
48
class AsciiConfigWidget : public Kst::DataSourceConfigWidget
51
AsciiConfigWidget(QSettings&);
56
bool isOkAcceptabe() const;
58
void setFilename(const QString& filename);
60
AsciiConfigWidgetInternal *_ac;
61
AsciiSourceConfig _oldConfig;