00001 #include <qmainwindow.h> 00002 #include <qtable.h> 00003 #include "value.h" 00004 #include "spreadtable.h" 00005 00006 class SpreadSheet: public QMainWindow 00007 { 00008 Q_OBJECT; 00009 private: 00010 SpreadSheetTable * table; 00011 QString filename; 00012 void init(); 00013 void load(); 00014 public: 00015 SpreadSheet( QWidget* parent, const char* name, int wflags ); 00016 SpreadSheet( QString loadfrom, QWidget* parent, const char* name, int wflags ); 00017 void recalcSelection(); 00018 void allowUserInput(); 00019 void insertRows(); 00020 void insertCols(); 00021 void copyRight(); 00022 void copyDown(); 00023 bool hasFilename(); 00024 void setFilename(QString filename); 00025 void saveFile(); 00026 ~SpreadSheet(); 00027 };