-rw-r--r-- | noncore/apps/opie-sheet/mainwindow.h | 2 | ||||
-rw-r--r-- | noncore/apps/tinykate/mainwindow/tinykate.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/opie-sheet/mainwindow.h b/noncore/apps/opie-sheet/mainwindow.h index 642b7ae..fb15891 100644 --- a/noncore/apps/opie-sheet/mainwindow.h +++ b/noncore/apps/opie-sheet/mainwindow.h | |||
@@ -1,164 +1,164 @@ | |||
1 | /* | 1 | /* |
2 | =. This file is part of the Opie Project | 2 | =. This file is part of the Opie Project |
3 | .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> | 3 | .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> |
4 | .>+-= | 4 | .>+-= |
5 | _;:, .> :=|. This program is free software; you can | 5 | _;:, .> :=|. This program is free software; you can |
6 | .> <`_, > . <= redistribute it and/or modify it under | 6 | .> <`_, > . <= redistribute it and/or modify it under |
7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
8 | .="- .-=="i, .._ License as published by the Free Software | 8 | .="- .-=="i, .._ License as published by the Free Software |
9 | - . .-<_> .<> Foundation; either version 2 of the License, | 9 | - . .-<_> .<> Foundation; either version 2 of the License, |
10 | ._= =} : or (at your option) any later version. | 10 | ._= =} : or (at your option) any later version. |
11 | .%`+i> _;_. | 11 | .%`+i> _;_. |
12 | .i_,=:_. -<s. This program is distributed in the hope that | 12 | .i_,=:_. -<s. This program is distributed in the hope that |
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
14 | : .. .:, . . . without even the implied warranty of | 14 | : .. .:, . . . without even the implied warranty of |
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
17 | ..}^=.= = ; Library General Public License for more | 17 | ..}^=.= = ; Library General Public License for more |
18 | ++= -. .` .: details. | 18 | ++= -. .` .: details. |
19 | : = ...= . :.=- | 19 | : = ...= . :.=- |
20 | -. .:....=;==+<; You should have received a copy of the GNU | 20 | -. .:....=;==+<; You should have received a copy of the GNU |
21 | -_. . . )=. = Library General Public License along with | 21 | -_. . . )=. = Library General Public License along with |
22 | -- :-=` this library; see the file COPYING.LIB. | 22 | -- :-=` this library; see the file COPYING.LIB. |
23 | If not, write to the Free Software Foundation, | 23 | If not, write to the Free Software Foundation, |
24 | Inc., 59 Temple Place - Suite 330, | 24 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | /* | 29 | /* |
30 | * Opie Sheet (formerly Sheet/Qt) | 30 | * Opie Sheet (formerly Sheet/Qt) |
31 | * by Serdar Ozler <sozler@sitebest.com> | 31 | * by Serdar Ozler <sozler@sitebest.com> |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #ifndef MAINWINDOW_H | 34 | #ifndef MAINWINDOW_H |
35 | #define MAINWINDOW_H | 35 | #define MAINWINDOW_H |
36 | 36 | ||
37 | #include "Excel.h" | 37 | #include "Excel.h" |
38 | #include "sheet.h" | 38 | #include "sheet.h" |
39 | 39 | ||
40 | /* OPIE */ | 40 | /* OPIE */ |
41 | #include <qpe/applnk.h> | 41 | #include <qpe/applnk.h> |
42 | #include <qpe/fileselector.h> | 42 | #include <qpe/fileselector.h> |
43 | 43 | ||
44 | /* QT */ | 44 | /* QT */ |
45 | #include <qmenubar.h> | 45 | #include <qmenubar.h> |
46 | #include <qtoolbar.h> | 46 | #include <qtoolbar.h> |
47 | #include <qmainwindow.h> | 47 | #include <qmainwindow.h> |
48 | #include <qaction.h> | 48 | #include <qaction.h> |
49 | #include <qlineedit.h> | 49 | #include <qlineedit.h> |
50 | #include <qbutton.h> | 50 | #include <qbutton.h> |
51 | #include <qcombobox.h> | 51 | #include <qcombobox.h> |
52 | #include <qtoolbutton.h> | 52 | #include <qtoolbutton.h> |
53 | 53 | ||
54 | typedef struct typeSheet | 54 | typedef struct typeSheet |
55 | { | 55 | { |
56 | QString name; | 56 | QString name; |
57 | QList<typeCellData> data; | 57 | QList<typeCellData> data; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | class MainWindow: public QMainWindow | 60 | class MainWindow: public QMainWindow |
61 | { | 61 | { |
62 | Q_OBJECT | 62 | Q_OBJECT |
63 | 63 | ||
64 | // QPE objects | 64 | // QPE objects |
65 | DocLnk* currentDoc; | 65 | DocLnk* currentDoc; |
66 | QMenuBar *menu; | 66 | QMenuBar *menu; |
67 | QToolBar *toolbarFunctions, *toolbarEdit, *toolbarStandard; | 67 | QToolBar *toolbarFunctions, *toolbarEdit, *toolbarStandard; |
68 | FileSelector *fileSelector; | 68 | FileSelector *fileSelector; |
69 | FileSelector *ExcelSelector; | 69 | FileSelector *ExcelSelector; |
70 | 70 | ||
71 | // QT objects | 71 | // QT objects |
72 | QPopupMenu *menuFile, *menuEdit, *menuInsert, *menuFormat, *menuData, *menuHelp, | 72 | QPopupMenu *menuFile, *menuEdit, *menuInsert, *menuFormat, *menuData, *menuHelp, |
73 | *submenuFunc, *submenuFuncStd, *submenuFuncStandard, *submenuFuncLogic, | 73 | *submenuFunc, *submenuFuncStd, *submenuFuncStandard, *submenuFuncLogic, |
74 | *submenuFuncTrig, *submenuFuncString, *submenuFuncScientific, *submenuFuncDistr, | 74 | *submenuFuncTrig, *submenuFuncString, *submenuFuncScientific, *submenuFuncDistr, |
75 | *submenuFuncStat, | 75 | *submenuFuncStat, |
76 | *submenuRow, *submenuCol, *submenuSheet; | 76 | *submenuRow, *submenuCol, *submenuSheet; |
77 | QAction *fileNew, *fileOpen, *fileSave, *fileSaveAs, *fileExcelImport, *fileQuit, *helpAbout, *editAccept, *editCancel, *formatCells, | 77 | QAction *fileNew, *fileOpen, *fileSave, *fileSaveAs, *fileExcelImport, *fileQuit, *helpAbout, *editAccept, *editCancel, *formatCells, |
78 | *funcPlus, *funcMinus, *funcCross, *funcDivide, *funcParanOpen, *funcParanClose, *funcComma, *funcEqual, | 78 | *funcPlus, *funcMinus, *funcCross, *funcDivide, *funcParanOpen, *funcParanClose, *funcComma, *funcEqual, |
79 | *editCut, *editCopy, *editPaste, *editPasteContents, *editClear, *insertCols, *insertRows, *insertSheets, *insertCells, | 79 | *editCut, *editCopy, *editPaste, *editPasteContents, *editClear, *insertCols, *insertRows, *insertSheets, *insertCells, |
80 | *rowHeight, *rowShow, *rowHide, *rowAdjust, *colWidth, *colShow, *colHide, *colAdjust, *sheetRename, *sheetRemove, | 80 | *rowHeight, *rowShow, *rowHide, *rowAdjust, *colWidth, *colShow, *colHide, *colAdjust, *sheetRename, *sheetRemove, |
81 | *dataSort, *dataFindReplace, *editCellSelect, *helpGeneral; | 81 | *dataSort, *dataFindReplace, *editCellSelect, *helpGeneral; |
82 | QLineEdit *editData; | 82 | QLineEdit *editData; |
83 | QButton *buttonUp, *buttonDown, *buttonLeft, *buttonRight; | 83 | QButton *buttonUp, *buttonDown, *buttonLeft, *buttonRight; |
84 | QComboBox *comboSheets; | 84 | QComboBox *comboSheets; |
85 | QToolButton *toolFunction; | 85 | QToolButton *toolFunction; |
86 | QList<typeSheet> listSheets; | 86 | QList<typeSheet> listSheets; |
87 | QString helpFile; | 87 | QString helpFile; |
88 | 88 | ||
89 | // Other objects | 89 | // Other objects |
90 | Sheet *sheet; | 90 | Sheet *sheet; |
91 | 91 | ||
92 | // Variables | 92 | // Variables |
93 | bool documentModified; | 93 | bool documentModified; |
94 | 94 | ||
95 | // Private functions | 95 | // Private functions |
96 | void initMenu(); | 96 | void initMenu(); |
97 | void initActions(); | 97 | void initActions(); |
98 | void initFunctionsToolbar(); | 98 | void initFunctionsToolbar(); |
99 | void initEditToolbar(); | 99 | void initEditToolbar(); |
100 | void initStandardToolbar(); | 100 | void initStandardToolbar(); |
101 | void initSheet(); | 101 | void initSheet(); |
102 | void addToData(const QString &data); | 102 | void addToData(const QString &data); |
103 | int saveCurrentFile(bool ask=TRUE); | 103 | int saveCurrentFile(bool ask=TRUE); |
104 | void documentOpen(const DocLnk &lnkDoc); | 104 | void documentOpen(const DocLnk &lnkDoc); |
105 | void documentSave(DocLnk *lnkDoc); | 105 | void documentSave(DocLnk *lnkDoc); |
106 | void closeEvent(QCloseEvent *e); | 106 | void closeEvent(QCloseEvent *e); |
107 | void addFlyAction(const QString &text, const QString &menuText, const QString &tip, QWidget *w); | 107 | void addFlyAction(const QString &text, const QString &menuText, const QString &tip, QWidget *w); |
108 | typeSheet *createNewSheet(); | 108 | typeSheet *createNewSheet(); |
109 | typeSheet *findSheet(const QString &name); | 109 | typeSheet *findSheet(const QString &name); |
110 | 110 | ||
111 | private slots: | 111 | private slots: |
112 | void slotFileNew(); | 112 | void slotFileNew(); |
113 | void slotFileOpen(); | 113 | void slotFileOpen(); |
114 | void slotFileSave(); | 114 | void slotFileSave(); |
115 | void slotFileSaveAs(); | 115 | void slotFileSaveAs(); |
116 | 116 | ||
117 | void slotImportExcel(const DocLnk &lnkDoc); | 117 | void slotImportExcel(const DocLnk &lnkDoc); |
118 | void slotImportExcelOpen(); | 118 | void slotImportExcelOpen(); |
119 | void ExcelSelectorHide(); | 119 | void ExcelSelectorHide(); |
120 | 120 | ||
121 | void slotHelpAbout(); | 121 | void slotHelpAbout(); |
122 | void slotEditAccept(); | 122 | void slotEditAccept(); |
123 | void slotEditCancel(); | 123 | void slotEditCancel(); |
124 | void slotEditPaste(); | 124 | void slotEditPaste(); |
125 | void slotEditPasteContents(); | 125 | void slotEditPasteContents(); |
126 | void slotFormatCells(); | 126 | void slotFormatCells(); |
127 | void slotInsertCells(); | 127 | void slotInsertCells(); |
128 | void slotInsertRows(); | 128 | void slotInsertRows(); |
129 | void slotInsertCols(); | 129 | void slotInsertCols(); |
130 | void slotInsertSheets(); | 130 | void slotInsertSheets(); |
131 | void slotDataSort(); | 131 | void slotDataSort(); |
132 | void slotDataFindReplace(); | 132 | void slotDataFindReplace(); |
133 | void slotRowHeight(); | 133 | void slotRowHeight(); |
134 | void slotRowAdjust(); | 134 | void slotRowAdjust(); |
135 | void slotRowShow(); | 135 | void slotRowShow(); |
136 | void slotRowHide(); | 136 | void slotRowHide(); |
137 | void slotColumnWidth(); | 137 | void slotColumnWidth(); |
138 | void slotColumnAdjust(); | 138 | void slotColumnAdjust(); |
139 | void slotColumnShow(); | 139 | void slotColumnShow(); |
140 | void slotColumnHide(); | 140 | void slotColumnHide(); |
141 | void slotSheetRename(); | 141 | void slotSheetRename(); |
142 | void slotSheetRemove(); | 142 | void slotSheetRemove(); |
143 | void slotFuncOutput(); | 143 | void slotFuncOutput(); |
144 | void slotCellSelect(bool lock); | 144 | void slotCellSelect(bool lock); |
145 | void slotCellClicked(const QString &cell); | 145 | void slotCellClicked(const QString &cell); |
146 | void slotSheetChanged(const QString &name); | 146 | void slotSheetChanged(const QString &name); |
147 | void slotDocModified(); | 147 | void slotDocModified(); |
148 | void selectorShow(); | 148 | void selectorShow(); |
149 | void selectorHide(); | 149 | void selectorHide(); |
150 | void selectorFileNew(const DocLnk &lnkDoc); | 150 | void selectorFileNew(const DocLnk &lnkDoc); |
151 | void selectorFileOpen(const DocLnk &lnkDoc); | 151 | void selectorFileOpen(const DocLnk &lnkDoc); |
152 | 152 | ||
153 | public: | 153 | public: |
154 | static QString appName() { return QString::fromLatin1("sheetqt"); } | 154 | static QString appName() { return QString::fromLatin1("opie-sheet"); } |
155 | MainWindow(QWidget *p, const char*, WFlags); | 155 | MainWindow(QWidget *p, const char*, WFlags); |
156 | ~MainWindow(); | 156 | ~MainWindow(); |
157 | 157 | ||
158 | void setHelpFile(const QString &help_filename) { helpFile=help_filename; } | 158 | void setHelpFile(const QString &help_filename) { helpFile=help_filename; } |
159 | 159 | ||
160 | public slots: | 160 | public slots: |
161 | void setDocument(const QString &applnk_filename); | 161 | void setDocument(const QString &applnk_filename); |
162 | }; | 162 | }; |
163 | 163 | ||
164 | #endif | 164 | #endif |
diff --git a/noncore/apps/tinykate/mainwindow/tinykate.h b/noncore/apps/tinykate/mainwindow/tinykate.h index f630f62..8eb344d 100644 --- a/noncore/apps/tinykate/mainwindow/tinykate.h +++ b/noncore/apps/tinykate/mainwindow/tinykate.h | |||
@@ -1,66 +1,66 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | tinykate.h | 2 | tinykate.h |
3 | Tiny KATE mainwindow | 3 | Tiny KATE mainwindow |
4 | ------------------- | 4 | ------------------- |
5 | begin : November 2002 | 5 | begin : November 2002 |
6 | copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org> | 6 | copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org> |
7 | ***************************************************************************/ | 7 | ***************************************************************************/ |
8 | 8 | ||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation. * | 13 | * the Free Software Foundation. * |
14 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * | 14 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | #ifndef __TINYKATE_H__ | 18 | #ifndef __TINYKATE_H__ |
19 | #define __TINYKATE_H__ | 19 | #define __TINYKATE_H__ |
20 | 20 | ||
21 | 21 | ||
22 | #include <qmainwindow.h> | 22 | #include <qmainwindow.h> |
23 | #include <opie2/otabwidget.h> | 23 | #include <opie2/otabwidget.h> |
24 | #include <ktexteditor.h> | 24 | #include <ktexteditor.h> |
25 | 25 | ||
26 | class QToolButton; | 26 | class QToolButton; |
27 | class QAction; | 27 | class QAction; |
28 | class QPopupMenu; | 28 | class QPopupMenu; |
29 | 29 | ||
30 | class TinyKate : public QMainWindow | 30 | class TinyKate : public QMainWindow |
31 | { | 31 | { |
32 | Q_OBJECT | 32 | Q_OBJECT |
33 | public: | 33 | public: |
34 | TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); | 34 | TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); |
35 | ~TinyKate( ); | 35 | ~TinyKate( ); |
36 | static QString appName() { return QString::fromLatin1( "kate" ); }; | 36 | static QString appName() { return QString::fromLatin1( "tinykate" ); }; |
37 | 37 | ||
38 | 38 | ||
39 | public slots: | 39 | public slots: |
40 | void slotNew(); | 40 | void slotNew(); |
41 | void setDocument(const QString& fileref); | 41 | void setDocument(const QString& fileref); |
42 | 42 | ||
43 | protected slots: | 43 | protected slots: |
44 | void slotOpen(); | 44 | void slotOpen(); |
45 | void slotClose(); | 45 | void slotClose(); |
46 | void slotCurrentChanged(QWidget *); | 46 | void slotCurrentChanged(QWidget *); |
47 | void slotSave(); | 47 | void slotSave(); |
48 | void slotSaveAs(); | 48 | void slotSaveAs(); |
49 | protected: | 49 | protected: |
50 | void open(const QString&); | 50 | void open(const QString&); |
51 | private: | 51 | private: |
52 | QString currentFileName; | 52 | QString currentFileName; |
53 | Opie::Ui::OTabWidget *tabwidget; | 53 | Opie::Ui::OTabWidget *tabwidget; |
54 | KTextEditor::View *currentView; | 54 | KTextEditor::View *currentView; |
55 | bool shutDown; | 55 | bool shutDown; |
56 | 56 | ||
57 | QToolButton *editCopy, *editCut, *editPaste, *editUndo, *editRedo, *editFindReplace; | 57 | QToolButton *editCopy, *editCut, *editPaste, *editUndo, *editRedo, *editFindReplace; |
58 | QAction *viewIncFontSizes, *viewDecFontSizes, *utilSettings; | 58 | QAction *viewIncFontSizes, *viewDecFontSizes, *utilSettings; |
59 | 59 | ||
60 | QPopupMenu *hlmenu; | 60 | QPopupMenu *hlmenu; |
61 | uint nextUnnamed; | 61 | uint nextUnnamed; |
62 | uint viewCount; | 62 | uint viewCount; |
63 | }; | 63 | }; |
64 | 64 | ||
65 | 65 | ||
66 | #endif // __TINYKATE_H__ | 66 | #endif // __TINYKATE_H__ |