[libkorigin Index] [libkorigin Heirarchy]
This is the main data worksheet for the korigin project. More...
#include </home/mh/korigin/korigin/doc/tmp/worksheet.h>
Inherits: QWidget
This is the main data worksheet for the korigin project. It is a very nasty code and perhaps it will be revisited the next time.
return the name of the worksheet
reads a worksheet from disk. First a filedialog is shown. Returns 0 if file not found. Otherwise returns the Worksheet opened.
Reads a worksheet out of an already opened file. The "[worksheet]" entry should already be read out.
Find the column to the specified column name
returns a pointer to the worksheets main popup for the main menu
returns a pointer to the worksheets edit popup for toplevel
returns a description string for the toplevel widget
depending on wheather worksheet is active or not two different pixmaps will be returned
return a tree item for the main tree view
if _numCols = 0 the worksheet waits for the insertColumn (ID) command the _numRows can then have a indifferent value
name | not really needed, this is not the worksheets name but a name used by QObject |
deletes the worksheet and also removes the nameentry of the worksheet in the worksheets name list (static members).
set cell content of a specific row, col. Not needed in the moment.
get cell content of a specific row, col. Not needed in the moment.
returns the IDs of the Worksheets marked columns This means: the x and xerror (implicit marked columns) and the marked columns.
Returns the FIRST occurance of x and xerr until now. If there is nothing selected the function will return NULL. If you have multiple x in your worksheet the first occurance of x will be returned or just highlight x.
All not found columns will return NULL.
Set the worksheet data table. The table name will be checked because double occurance of same name is not allowed. The name will be changed if necessary. Also repaints the worksheet.
return the worksheets data table
insert Columns into the worksheet, the first function will also allocate memory and set the title to a title not already given in the worksheet
insert "n" columns ot "type" 1 = Data 2 = Label before "position". The memory will be allocated at Mr. M by Worksheet
save worksheet into file. file is a already opened QFile. This slot does not show any widget. Therefore use saveWorksheet. Important for session saving later.
save the worksheet onto disk. This slot shows a filedialog and opens the file selected. Then it calls saveToDisk. Afterwards it closes the opend file.
repaints the worksheet. Perhaps needed if data changes
the worksheet gets a closeEvent and the user choosed to delete the data from the worksheet. The Worksheet should be deleted out of the list of worksheets.
mouseclick into the worksheet emits this signal because this action changes the active worksheet displayed by toplevel.
emitted when the tree item of the worksheet changes, i.e. when the description or the icon changes.
Plots have to react with repaint on this signal. Not yet emitted.
It could happen, that the description of a table in the toplevel widget should change. Not yet emitted.
| Kdoc |