importASCII Class Reference

[libkorigin Index] [libkorigin Heirarchy]


Import ASCII files. More...

#include </home/patrick/korigin/doc/tmp/importASCII.h>

Inherits: QObject, importFilter

Public Members


Detailed Description

Clone this file for further import filters.

Dont copy this file into the korigin include path! It is not needed there.

When writing new filters watch the initialization class in the importASCII.cc file (at the end).


importASCII()

Does nothing until now.

~importASCII()

Does nothing until now.

QString getDescription()

All import Filter have an entry in the korigin menus. This is the name, under which this module will appear.

Returns:
"ASCII"

const char* getFileFilter() const

The File Dialog needs a filter string, e.g. "*.html".

Returns:
the file filter defined in the options tabdialog or "*.dat" if nothing is defined.

void getOptionsSlot()

Builds a complete options tabdialog inclusive slots. All options dialogw must have a file filter dialog.

Table* readTable(const char* filename)

The main function. Reads a table ins a way defined by the options dialog (skipping headers...).

Parameters:
filename the name of the file to read from disk
Returns:
a pointer to the allocated Table object

QString getLatestDirectory()

All import filters have there own recent directory buffer. This will be be configurable in later versions.

Returns:
the latest used directory when importing an ASCII file.
See Also:
getDefaultDirectory

void setLatestDirectory(const char* dir)

Parameters:
dir the latest used directory when importing an ASCII file.
See Also:
getLatestDirectory

QString getDefaultDirectory()

When launching the application, the first time importing an ASCII file this directory will be be directory displayed by the file dialog.

Returns:
the predefined default directory

void setDefaultDirectory(const char* dir)

The defaultDirectory will be configurable through an options dialog.

Parameters:
dir the default directory for this module

  • Author: Martin Häfner (mh@ap-dec717c.physik.uni-karlsruhe.de)
  • Version: 0.1
  • Documentation generated by patrick@nemesis on Tue Feb 10 23:05:12 MET 1998
Kdoc