Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Spreadsheet Class Reference

#include <Spreadsheet.h>

List of all members.

Public Slots

void plot2DSimple ()
 make a simple 2d plot of all selected columns

void plot2DPie ()
 make a pie plot of all selected columns

void plot2DPolar ()
 make a polar plot of all selected columns

void plotSurface ()
 make a surface plot of all selected columns

void plotQWT3D ()
void plot3DXYDY ()
 make a 2d y-error plot of all selected columns

void plot4DXYDXDY ()
 make a 2d x-y-error plot of all selected columns

void plot4DXYDYDY ()
 make a 2d y1-y2-error plot of all selected columns

void plot3DSimple ()
 make a simple 3d plot of all selected columns

void plot3DTernary ()
 make a ternary plot of all selected columns

void cutSelection ()
 cut current selection

void copySelection ()
 copy current selection

void pasteSelection ()
 paste current selection

void clearSelection ()
 clear current selection

void fillRowNumber ()
 fill selected column with row numbers

void fillRandom (double max=1.0)
 fill selected column with random numbers (0..max)

void setCurrentColumn (int i)
 set column i to current column (first column : 0)

void normSum ()
 normalize current column to sum = 1.0

void normMax (double max=1.0)
 normalize current column to maximum = max

void transposeMatrix ()
 transpose spreadsheet matrix

void convertMatrixtoXYZ ()
 convert matrix data to x-y-z data

void convertXYZtoMatrix ()
 convert x-y-z data to matrix data

void exportData ()
void addColumn ()
 add a column

void sortAscending ()
 sort current column ascending

void sortDescending ()
 sort current column descending

void selectColumns (int left, int right=-1)
 select columns from right to left

void selectRows (int top, int bottom=-1)
 select rows from top to bottom

void deleteRows ()
 delete selected rows

void deleteColumns ()
 delete selected columns

void setValues (int srow=1, int erow=0, QString expr=0)
 set value of rows srow to erow in currentColumn to expr

void setProperties (QString label=0, int type=1, int format=1, int rows=100)
 set properties of current columns (label, type, format, rows)


Public Member Functions

 Spreadsheet (QWidget *parent, class MainWin *mw, const char *name)
QStringList Info ()
QTable * Table ()
void save (QTextStream *t)
void open (QTextStream *t, int version)
QString columnTitle (int col)
void setColumnTitle (int col, QString name)

Private Slots

void plot2D (PType type)
void plot3D (PType type)
void plotMatrix (PType type)

Private Member Functions

int filledRows ()
 calculate number of filled rows

int formatItem (int col)
 return format index for column col

void sort ()
void qsort (int s, int e)
void contextMenuEvent (QContextMenuEvent *)
void resizeEvent (QResizeEvent *)
void closeEvent (QCloseEvent *)

Private Attributes

MainWin * mw
QTable * table
bool ascending


Constructor & Destructor Documentation

Spreadsheet::Spreadsheet (  QWidget *  parent,
class MainWin *  mw,
const char *  name
) 
 


Member Function Documentation

void Spreadsheet::addColumn (   )  [slot]
 

add a column

void Spreadsheet::clearSelection (   )  [slot]
 

clear current selection

void Spreadsheet::closeEvent (  QCloseEvent *   )  [private]
 

QString Spreadsheet::columnTitle (  int  col  ) 
 

void Spreadsheet::contextMenuEvent (  QContextMenuEvent *   )  [private]
 

void Spreadsheet::convertMatrixtoXYZ (   )  [slot]
 

convert matrix data to x-y-z data

void Spreadsheet::convertXYZtoMatrix (   )  [slot]
 

convert x-y-z data to matrix data

void Spreadsheet::copySelection (   )  [slot]
 

copy current selection

void Spreadsheet::cutSelection (   )  [slot]
 

cut current selection

void Spreadsheet::deleteColumns (   )  [slot]
 

delete selected columns

void Spreadsheet::deleteRows (   )  [slot]
 

delete selected rows

void Spreadsheet::exportData (   )  [slot]
 

int Spreadsheet::filledRows (   )  [private]
 

calculate number of filled rows

void Spreadsheet::fillRandom (  double  max = 1.0  )  [slot]
 

fill selected column with random numbers (0..max)

void Spreadsheet::fillRowNumber (   )  [slot]
 

fill selected column with row numbers

int Spreadsheet::formatItem (  int  col  )  [private]
 

return format index for column col

QStringList Spreadsheet::Info (   ) 
 

void Spreadsheet::normMax (  double  max = 1.0  )  [slot]
 

normalize current column to maximum = max

void Spreadsheet::normSum (   )  [slot]
 

normalize current column to sum = 1.0

void Spreadsheet::open (  QTextStream *  t,
int  version
) 
 

void Spreadsheet::pasteSelection (   )  [slot]
 

paste current selection

void Spreadsheet::plot2D (  PType  type  )  [private, slot]
 

void Spreadsheet::plot2DPie (   )  [inline, slot]
 

make a pie plot of all selected columns

void Spreadsheet::plot2DPolar (   )  [inline, slot]
 

make a polar plot of all selected columns

void Spreadsheet::plot2DSimple (   )  [inline, slot]
 

make a simple 2d plot of all selected columns

void Spreadsheet::plot3D (  PType  type  )  [private, slot]
 

void Spreadsheet::plot3DSimple (   )  [inline, slot]
 

make a simple 3d plot of all selected columns

void Spreadsheet::plot3DTernary (   )  [inline, slot]
 

make a ternary plot of all selected columns

void Spreadsheet::plot3DXYDY (   )  [slot]
 

make a 2d y-error plot of all selected columns

void Spreadsheet::plot4DXYDXDY (   )  [slot]
 

make a 2d x-y-error plot of all selected columns

void Spreadsheet::plot4DXYDYDY (   )  [slot]
 

make a 2d y1-y2-error plot of all selected columns

void Spreadsheet::plotMatrix (  PType  type  )  [private, slot]
 

void Spreadsheet::plotQWT3D (   )  [inline, slot]
 

void Spreadsheet::plotSurface (   )  [inline, slot]
 

make a surface plot of all selected columns

void Spreadsheet::qsort (  int  s,
int  e
)  [private]
 

void Spreadsheet::resizeEvent (  QResizeEvent *   )  [private]
 

void Spreadsheet::save (  QTextStream *  t  ) 
 

void Spreadsheet::selectColumns (  int  left,
int  right = -1
)  [slot]
 

select columns from right to left

void Spreadsheet::selectRows (  int  top,
int  bottom = -1
)  [slot]
 

select rows from top to bottom

void Spreadsheet::setColumnTitle (  int  col,
QString  name
) 
 

void Spreadsheet::setCurrentColumn (  int  i  )  [slot]
 

set column i to current column (first column : 0)

void Spreadsheet::setProperties (  QString  label = 0,
int  type = 1,
int  format = 1,
int  rows = 100
)  [slot]
 

set properties of current columns (label, type, format, rows)

void Spreadsheet::setValues (  int  srow = 1,
int  erow = 0,
QString  expr = 0
)  [slot]
 

set value of rows srow to erow in currentColumn to expr

void Spreadsheet::sort (   )  [private]
 

void Spreadsheet::sortAscending (   )  [slot]
 

sort current column ascending

void Spreadsheet::sortDescending (   )  [slot]
 

sort current column descending

QTable* Spreadsheet::Table (   )  [inline]
 

void Spreadsheet::transposeMatrix (   )  [slot]
 

transpose spreadsheet matrix


Member Data Documentation

bool Spreadsheet::ascending [private]
 

class MainWin* Spreadsheet::mw [private]
 

QTable* Spreadsheet::table [private]
 


The documentation for this class was generated from the following files:
Generated on Sun Nov 28 22:31:18 2004 for LabPlot by doxygen 1.3.6