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 Clear ()
 clear spreadsheet

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 plot2DLine ()
void plotSurface ()
 make a surface plot of all selected columns

void plotM3D ()
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 addGraph2D (Graph2D *g)
void addGraph3D (Graph3D *g)
void addGraph4D (Graph4D *g)
void addGraphM (GraphM *g)
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 toggleMask ()
void maskSelection ()
void unMask ()
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)
WidgetType getWidgetType ()
QStringList Info ()
QTable * Table ()
void save (QTextStream *t)
void open (QTextStream *t, int version)
QString columnTitle (int col)
void setColumnTitle (int col, QString name)
bool eventFilter (QObject *object, QEvent *e)

Private Slots

void plot2D (PType type, bool line)
void plot3D (PType type)
void plotMatrix (PType type)

Private Member Functions

int filledRows (int col=1)
 calculate number of filled rows

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

void sort ()
void qsort (int s, int e)
void setDestination (int d)
void contextMenuEvent (QContextMenuEvent *)
void resizeEvent (QResizeEvent *)
void closeEvent (QCloseEvent *)
Style * defaultStyle ()
 returns default Style (build from mw->Config())

Symbol * defaultSymbol ()
 returns default Style (build from mw->Config())


Private Attributes

MainWin * mw
WidgetType widgettype
QTable * table
bool ascending
int destination


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::addGraph2D (  Graph2D *  g  )  [slot]
 

void Spreadsheet::addGraph3D (  Graph3D *  g  )  [slot]
 

void Spreadsheet::addGraph4D (  Graph4D *  g  )  [slot]
 

void Spreadsheet::addGraphM (  GraphM *  g  )  [slot]
 

void Spreadsheet::Clear (   )  [slot]
 

clear spreadsheet

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

Style * Spreadsheet::defaultStyle (   )  [private]
 

returns default Style (build from mw->Config())

Symbol * Spreadsheet::defaultSymbol (   )  [private]
 

returns default Style (build from mw->Config())

void Spreadsheet::deleteColumns (   )  [slot]
 

delete selected columns

void Spreadsheet::deleteRows (   )  [slot]
 

delete selected rows

bool Spreadsheet::eventFilter (  QObject *  object,
QEvent *  e
) 
 

void Spreadsheet::exportData (   )  [slot]
 

int Spreadsheet::filledRows (  int  col = 1  )  [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

WidgetType Spreadsheet::getWidgetType (   )  [inline]
 

QStringList Spreadsheet::Info (   ) 
 

void Spreadsheet::maskSelection (   )  [slot]
 

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,
bool  line
)  [private, slot]
 

void Spreadsheet::plot2DLine (   )  [inline, 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::plotM3D (   )  [inline, slot]
 

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::setDestination (  int  d  )  [inline, private]
 

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::toggleMask (   )  [slot]
 

void Spreadsheet::transposeMatrix (   )  [slot]
 

transpose spreadsheet matrix

void Spreadsheet::unMask (   )  [slot]
 


Member Data Documentation

bool Spreadsheet::ascending [private]
 

int Spreadsheet::destination [private]
 

class MainWin* Spreadsheet::mw [private]
 

QTable* Spreadsheet::table [private]
 

WidgetType Spreadsheet::widgettype [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Mar 25 19:47:05 2005 for LabPlot by doxygen 1.3.6