Diffstat (limited to 'noncore/apps/opie-sheet/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/mainwindow.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/apps/opie-sheet/mainwindow.h b/noncore/apps/opie-sheet/mainwindow.h index ac90504..554e6f6 100644 --- a/noncore/apps/opie-sheet/mainwindow.h +++ b/noncore/apps/opie-sheet/mainwindow.h | |||
@@ -1,48 +1,62 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | |||
10 | /* | ||
11 | * Opie Sheet (formerly Sheet/Qt) | ||
12 | * by Serdar Ozler <sozler@sitebest.com> | ||
13 | */ | ||
14 | |||
1 | #ifndef MAINWINDOW_H | 15 | #ifndef MAINWINDOW_H |
2 | #define MAINWINDOW_H | 16 | #define MAINWINDOW_H |
3 | 17 | ||
4 | #include <qpe/applnk.h> | 18 | #include <qpe/applnk.h> |
5 | #include <qpe/fileselector.h> | 19 | #include <qpe/fileselector.h> |
6 | #include <qpe/qpemenubar.h> | 20 | #include <qpe/qpemenubar.h> |
7 | #include <qpe/qpetoolbar.h> | 21 | #include <qpe/qpetoolbar.h> |
8 | #include <qmainwindow.h> | 22 | #include <qmainwindow.h> |
9 | #include <qaction.h> | 23 | #include <qaction.h> |
10 | #include <qlineedit.h> | 24 | #include <qlineedit.h> |
11 | #include <qbutton.h> | 25 | #include <qbutton.h> |
12 | #include <qcombobox.h> | 26 | #include <qcombobox.h> |
13 | #include <qtoolbutton.h> | 27 | #include <qtoolbutton.h> |
14 | 28 | ||
15 | #include "sheet.h" | 29 | #include "sheet.h" |
16 | 30 | ||
17 | typedef struct typeSheet | 31 | typedef struct typeSheet |
18 | { | 32 | { |
19 | QString name; | 33 | QString name; |
20 | QList<typeCellData> data; | 34 | QList<typeCellData> data; |
21 | }; | 35 | }; |
22 | 36 | ||
23 | class MainWindow: public QMainWindow | 37 | class MainWindow: public QMainWindow |
24 | { | 38 | { |
25 | Q_OBJECT | 39 | Q_OBJECT |
26 | 40 | ||
27 | // QPE objects | 41 | // QPE objects |
28 | DocLnk currentDoc; | 42 | DocLnk currentDoc; |
29 | QPEMenuBar *menu; | 43 | QPEMenuBar *menu; |
30 | QPEToolBar *toolbarFunctions, *toolbarEdit, *toolbarStandard; | 44 | QPEToolBar *toolbarFunctions, *toolbarEdit, *toolbarStandard; |
31 | FileSelector *fileSelector; | 45 | FileSelector *fileSelector; |
32 | 46 | ||
33 | // QT objects | 47 | // QT objects |
34 | QPopupMenu *menuFile, *menuEdit, *menuInsert, *menuFormat, *menuData, *menuHelp, | 48 | QPopupMenu *menuFile, *menuEdit, *menuInsert, *menuFormat, *menuData, *menuHelp, |
35 | *submenuFunc, *submenuFuncStd, *submenuFuncMath, *submenuFuncStat, | 49 | *submenuFunc, *submenuFuncStd, *submenuFuncMath, *submenuFuncStat, |
36 | *submenuRow, *submenuCol, *submenuSheet; | 50 | *submenuRow, *submenuCol, *submenuSheet; |
37 | QAction *fileNew, *fileOpen, *fileSave, *fileSaveAs, *fileQuit, *helpAbout, *editAccept, *editCancel, *formatCells, | 51 | QAction *fileNew, *fileOpen, *fileSave, *fileSaveAs, *fileQuit, *helpAbout, *editAccept, *editCancel, *formatCells, |
38 | *funcPlus, *funcMinus, *funcCross, *funcDivide, *funcParanOpen, *funcParanClose, *funcComma, *funcEqual, | 52 | *funcPlus, *funcMinus, *funcCross, *funcDivide, *funcParanOpen, *funcParanClose, *funcComma, *funcEqual, |
39 | *editCut, *editCopy, *editPaste, *editPasteContents, *editClear, *insertCols, *insertRows, *insertSheets, *insertCells, | 53 | *editCut, *editCopy, *editPaste, *editPasteContents, *editClear, *insertCols, *insertRows, *insertSheets, *insertCells, |
40 | *rowHeight, *rowShow, *rowHide, *rowAdjust, *colWidth, *colShow, *colHide, *colAdjust, *sheetRename, *sheetRemove, | 54 | *rowHeight, *rowShow, *rowHide, *rowAdjust, *colWidth, *colShow, *colHide, *colAdjust, *sheetRename, *sheetRemove, |
41 | *dataSort, *dataFindReplace, *editCellSelect, *helpGeneral; | 55 | *dataSort, *dataFindReplace, *editCellSelect, *helpGeneral; |
42 | QLineEdit *editData; | 56 | QLineEdit *editData; |
43 | QButton *buttonUp, *buttonDown, *buttonLeft, *buttonRight; | 57 | QButton *buttonUp, *buttonDown, *buttonLeft, *buttonRight; |
44 | QComboBox *comboSheets; | 58 | QComboBox *comboSheets; |
45 | QToolButton *toolFunction; | 59 | QToolButton *toolFunction; |
46 | QList<typeSheet> listSheets; | 60 | QList<typeSheet> listSheets; |
47 | QString helpFile; | 61 | QString helpFile; |
48 | 62 | ||