summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-sheet/ChangeLog2
-rw-r--r--noncore/apps/opie-sheet/mainwindow.cpp20
2 files changed, 12 insertions, 10 deletions
diff --git a/noncore/apps/opie-sheet/ChangeLog b/noncore/apps/opie-sheet/ChangeLog
index 0370156..69c96f8 100644
--- a/noncore/apps/opie-sheet/ChangeLog
+++ b/noncore/apps/opie-sheet/ChangeLog
@@ -1,24 +1,26 @@
1January 9, 2004 corrected the names of the resource icons in mainwindow.cpp.... So now they are loaded fine.
2
1January 8, 2004 3January 8, 2004
2 - converted icons from xpm to png and moved them to $OPIEDIR/pics/opie-sheet 4 - converted icons from xpm to png and moved them to $OPIEDIR/pics/opie-sheet
3 - modified mainwindow.cpp to load pixmaps with Resource::loadPixmap(resourcename) in contrast to the old QPixmap(nameofthe_xpm_included_in_the_opie-sheet_dir) 5 - modified mainwindow.cpp to load pixmaps with Resource::loadPixmap(resourcename) in contrast to the old QPixmap(nameofthe_xpm_included_in_the_opie-sheet_dir)
4 - changed pics/opie-sheet/sheetqt.png entry in control file to pics/opie-sheet/*.png 6 - changed pics/opie-sheet/sheetqt.png entry in control file to pics/opie-sheet/*.png
5 7
6January 8, 2004 8January 8, 2004
7 - fixed issue : "-if someone enters directly text as parameter to a string function the text renders as uppercase due to the calculation engine that uppercases all the parsing sentence." 9 - fixed issue : "-if someone enters directly text as parameter to a string function the text renders as uppercase due to the calculation engine that uppercases all the parsing sentence."
8 now the text is handled correctly. 10 now the text is handled correctly.
9 11
10January 7, 2004 12January 7, 2004
11 * Release by hayzel (koppermind@panafonet.gr) 13 * Release by hayzel (koppermind@panafonet.gr)
12 This version has many valuable changes, though It may have some annoying bugs. Please if you are interested in opie-sheet try it hard, so I can fix some of them. Also If you want some other functions that must be here and are missing feel free to ask them. (no financial functions please. :) I really hate them ) 14 This version has many valuable changes, though It may have some annoying bugs. Please if you are interested in opie-sheet try it hard, so I can fix some of them. Also If you want some other functions that must be here and are missing feel free to ask them. (no financial functions please. :) I really hate them )
13 -Fixed a bug with non closed parenthesis editing&recalculation infinite loop. 15 -Fixed a bug with non closed parenthesis editing&recalculation infinite loop.
14 -Added support for functions that can parse parameters not ONLY as numbers but also as strings. 16 -Added support for functions that can parse parameters not ONLY as numbers but also as strings.
15 -Added many functions that cover many computational topics rendering opie-sheet a computational tool-spreadsheet at last. (total 90 functions!) 17 -Added many functions that cover many computational topics rendering opie-sheet a computational tool-spreadsheet at last. (total 90 functions!)
16 -Maintained compatibility with the opie-fileformat. 18 -Maintained compatibility with the opie-fileformat.
17 -New icons. 19 -New icons.
18 -Found that the DataParser was not a real RPN compiler of the expressions. In fact it was returning faulty results in calculations, in both binary or unary operations. A1-A2-A3 was parsed as A1-(A2-A3). -A1 was parsed as A1. 20 -Found that the DataParser was not a real RPN compiler of the expressions. In fact it was returning faulty results in calculations, in both binary or unary operations. A1-A2-A3 was parsed as A1-(A2-A3). -A1 was parsed as A1.
19 -Added new class "Expression" a general Parser for spreadsheet-expression. Imported from an old C# project of mine. 21 -Added new class "Expression" a general Parser for spreadsheet-expression. Imported from an old C# project of mine.
20 -Now can also parse <>=!%&^|"" in expressions. 22 -Now can also parse <>=!%&^|"" in expressions.
21 -Added experimental Excel File format import!. The opie-sheet can import any excel file in BIFF7/BIFF8 format. These formats are used in Excel XP,2000,95. The Excel Importer class is in a good coding level.. BUT it is not complete. Only strings,numbers,formulas are imported. Not formatting rules. Not all the functions are converted in the functions of opie-sheet. Infact FEW functions are converted. 23 -Added experimental Excel File format import!. The opie-sheet can import any excel file in BIFF7/BIFF8 format. These formats are used in Excel XP,2000,95. The Excel Importer class is in a good coding level.. BUT it is not complete. Only strings,numbers,formulas are imported. Not formatting rules. Not all the functions are converted in the functions of opie-sheet. Infact FEW functions are converted.
22 -Fixed a bug with Sheet Recalculation. Added ReCalc() function. Opie-sheet was calculating wrong the values of expression in opening/importing. if a value needed was not loaded yet in the time of calculation. Solved with ReCalc() each time the active sheet is changing. 24 -Fixed a bug with Sheet Recalculation. Added ReCalc() function. Opie-sheet was calculating wrong the values of expression in opening/importing. if a value needed was not loaded yet in the time of calculation. Solved with ReCalc() each time the active sheet is changing.
23 25
24 26
diff --git a/noncore/apps/opie-sheet/mainwindow.cpp b/noncore/apps/opie-sheet/mainwindow.cpp
index 07e581a..bd98aca 100644
--- a/noncore/apps/opie-sheet/mainwindow.cpp
+++ b/noncore/apps/opie-sheet/mainwindow.cpp
@@ -271,49 +271,49 @@ void MainWindow::initActions()
271{ 271{
272 fileNew=new QAction(tr("New File"), Resource::loadPixmap( "new" ), tr("&New"), 0, this); 272 fileNew=new QAction(tr("New File"), Resource::loadPixmap( "new" ), tr("&New"), 0, this);
273 connect(fileNew, SIGNAL(activated()), this, SLOT(slotFileNew())); 273 connect(fileNew, SIGNAL(activated()), this, SLOT(slotFileNew()));
274 fileOpen=new QAction(tr("Open File"), Resource::loadPixmap( "fileopen" ), tr("&Open"), 0, this); 274 fileOpen=new QAction(tr("Open File"), Resource::loadPixmap( "fileopen" ), tr("&Open"), 0, this);
275 connect(fileOpen, SIGNAL(activated()), this, SLOT(slotFileOpen())); 275 connect(fileOpen, SIGNAL(activated()), this, SLOT(slotFileOpen()));
276 fileSave=new QAction(tr("Save File"),Resource::loadPixmap( "save" ), tr("&Save"), 0, this); 276 fileSave=new QAction(tr("Save File"),Resource::loadPixmap( "save" ), tr("&Save"), 0, this);
277 connect(fileSave, SIGNAL(activated()), this, SLOT(slotFileSave())); 277 connect(fileSave, SIGNAL(activated()), this, SLOT(slotFileSave()));
278 fileSaveAs=new QAction(tr("Save File As"), Resource::loadPixmap( "save" ), tr("Save &As"), 0, this); 278 fileSaveAs=new QAction(tr("Save File As"), Resource::loadPixmap( "save" ), tr("Save &As"), 0, this);
279 connect(fileSaveAs, SIGNAL(activated()), this, SLOT(slotFileSaveAs())); 279 connect(fileSaveAs, SIGNAL(activated()), this, SLOT(slotFileSaveAs()));
280 280
281 //fileQuit=new QAction(tr("Quit"), tr("&Quit"), 0, this); 281 //fileQuit=new QAction(tr("Quit"), tr("&Quit"), 0, this);
282 //connect(fileQuit, SIGNAL(activated()), this, SLOT(close())); 282 //connect(fileQuit, SIGNAL(activated()), this, SLOT(close()));
283 fileExcelImport=new QAction(tr("Import Excel file"),Resource::loadPixmap( "opie-sheet/excel16" ),tr("Import E&xcel file"),0,this); 283 fileExcelImport=new QAction(tr("Import Excel file"),Resource::loadPixmap( "opie-sheet/excel16" ),tr("Import E&xcel file"),0,this);
284 connect(fileExcelImport, SIGNAL(activated()), this, SLOT(slotImportExcelOpen())); 284 connect(fileExcelImport, SIGNAL(activated()), this, SLOT(slotImportExcelOpen()));
285 285
286 // helpGeneral=new QAction(tr("General Help"), QPixmap(help_general_xpm), tr("&General"), 0, this); 286 // helpGeneral=new QAction(tr("General Help"), QPixmap(help_general_xpm), tr("&General"), 0, this);
287 //connect(helpGeneral, SIGNAL(activated()), this, SLOT(slotHelpGeneral())); 287 //connect(helpGeneral, SIGNAL(activated()), this, SLOT(slotHelpGeneral()));
288 //helpAbout=new QAction(tr("About Opie Sheet"), tr("&About"), 0, this); 288 //helpAbout=new QAction(tr("About Opie Sheet"), tr("&About"), 0, this);
289 //connect(helpAbout, SIGNAL(activated()), this, SLOT(slotHelpAbout())); 289 //connect(helpAbout, SIGNAL(activated()), this, SLOT(slotHelpAbout()));
290 290
291 editAccept=new QAction(tr("Accept"),Resource::loadPixmap( "enter" ) , tr("&Accept"), 0, this); 291 editAccept=new QAction(tr("Accept"),Resource::loadPixmap( "enter" ) , tr("&Accept"), 0, this);
292 connect(editAccept, SIGNAL(activated()), this, SLOT(slotEditAccept())); 292 connect(editAccept, SIGNAL(activated()), this, SLOT(slotEditAccept()));
293 editCancel=new QAction(tr("Cancel"), Resource::loadPixmap( "close" ), tr("&Cancel"), 0, this); 293 editCancel=new QAction(tr("Cancel"), Resource::loadPixmap( "close" ), tr("&Cancel"), 0, this);
294 connect(editCancel, SIGNAL(activated()), this, SLOT(slotEditCancel())); 294 connect(editCancel, SIGNAL(activated()), this, SLOT(slotEditCancel()));
295 editCellSelect=new QAction(tr("Cell Selector"), Resource::loadPixmap( "opie-sheet/cell_select" ), tr("Cell &Selector"), 0, this); 295 editCellSelect=new QAction(tr("Cell Selector"), Resource::loadPixmap( "opie-sheet/cell-select" ), tr("Cell &Selector"), 0, this);
296 editCellSelect->setToggleAction(TRUE); 296 editCellSelect->setToggleAction(TRUE);
297 connect(editCellSelect, SIGNAL(toggled(bool)), this, SLOT(slotCellSelect(bool))); 297 connect(editCellSelect, SIGNAL(toggled(bool)), this, SLOT(slotCellSelect(bool)));
298 editCut=new QAction(tr("Cut Cells"), tr("Cu&t"), 0, this); 298 editCut=new QAction(tr("Cut Cells"), tr("Cu&t"), 0, this);
299 editCopy=new QAction(tr("Copy Cells"), tr("&Copy"), 0, this); 299 editCopy=new QAction(tr("Copy Cells"), tr("&Copy"), 0, this);
300 editPaste=new QAction(tr("Paste Cells"), tr("&Paste"), 0, this); 300 editPaste=new QAction(tr("Paste Cells"), tr("&Paste"), 0, this);
301 connect(editPaste, SIGNAL(activated()), this, SLOT(slotEditPaste())); 301 connect(editPaste, SIGNAL(activated()), this, SLOT(slotEditPaste()));
302 editPasteContents=new QAction(tr("Paste Contents"), tr("Paste Cont&ents"), 0, this); 302 editPasteContents=new QAction(tr("Paste Contents"), tr("Paste Cont&ents"), 0, this);
303 connect(editPasteContents, SIGNAL(activated()), this, SLOT(slotEditPasteContents())); 303 connect(editPasteContents, SIGNAL(activated()), this, SLOT(slotEditPasteContents()));
304 editClear=new QAction(tr("Clear Cells"), tr("C&lear"), 0, this); 304 editClear=new QAction(tr("Clear Cells"), tr("C&lear"), 0, this);
305 305
306 insertCells=new QAction(tr("Insert Cells"), tr("C&ells"), 0, this); 306 insertCells=new QAction(tr("Insert Cells"), tr("C&ells"), 0, this);
307 connect(insertCells, SIGNAL(activated()), this, SLOT(slotInsertCells())); 307 connect(insertCells, SIGNAL(activated()), this, SLOT(slotInsertCells()));
308 insertRows=new QAction(tr("Insert Rows"), tr("&Rows"), 0, this); 308 insertRows=new QAction(tr("Insert Rows"), tr("&Rows"), 0, this);
309 connect(insertRows, SIGNAL(activated()), this, SLOT(slotInsertRows())); 309 connect(insertRows, SIGNAL(activated()), this, SLOT(slotInsertRows()));
310 insertCols=new QAction(tr("Insert Columns"), tr("&Columns"), 0, this); 310 insertCols=new QAction(tr("Insert Columns"), tr("&Columns"), 0, this);
311 connect(insertCols, SIGNAL(activated()), this, SLOT(slotInsertCols())); 311 connect(insertCols, SIGNAL(activated()), this, SLOT(slotInsertCols()));
312 insertSheets=new QAction(tr("Add Sheets"), tr("&Sheets"), 0, this); 312 insertSheets=new QAction(tr("Add Sheets"), tr("&Sheets"), 0, this);
313 connect(insertSheets, SIGNAL(activated()), this, SLOT(slotInsertSheets())); 313 connect(insertSheets, SIGNAL(activated()), this, SLOT(slotInsertSheets()));
314 314
315 formatCells=new QAction(tr("Cells"), tr("&Cells"), 0, this); 315 formatCells=new QAction(tr("Cells"), tr("&Cells"), 0, this);
316 connect(formatCells, SIGNAL(activated()), this, SLOT(slotFormatCells())); 316 connect(formatCells, SIGNAL(activated()), this, SLOT(slotFormatCells()));
317 317
318 rowHeight=new QAction(tr("Row Height"), tr("H&eight"), 0, this); 318 rowHeight=new QAction(tr("Row Height"), tr("H&eight"), 0, this);
319 connect(rowHeight, SIGNAL(activated()), this, SLOT(slotRowHeight())); 319 connect(rowHeight, SIGNAL(activated()), this, SLOT(slotRowHeight()));
@@ -322,70 +322,70 @@ void MainWindow::initActions()
322 rowShow=new QAction(tr("Show Row"), tr("&Show"), 0, this); 322 rowShow=new QAction(tr("Show Row"), tr("&Show"), 0, this);
323 connect(rowShow, SIGNAL(activated()), this, SLOT(slotRowShow())); 323 connect(rowShow, SIGNAL(activated()), this, SLOT(slotRowShow()));
324 rowHide=new QAction(tr("Hide Row"), tr("&Hide"), 0, this); 324 rowHide=new QAction(tr("Hide Row"), tr("&Hide"), 0, this);
325 connect(rowHide, SIGNAL(activated()), this, SLOT(slotRowHide())); 325 connect(rowHide, SIGNAL(activated()), this, SLOT(slotRowHide()));
326 326
327 colWidth=new QAction(tr("Column Width"), tr("&Width"), 0, this); 327 colWidth=new QAction(tr("Column Width"), tr("&Width"), 0, this);
328 connect(colWidth, SIGNAL(activated()), this, SLOT(slotColumnWidth())); 328 connect(colWidth, SIGNAL(activated()), this, SLOT(slotColumnWidth()));
329 colAdjust=new QAction(tr("Adjust Column"), tr("&Adjust"), 0, this); 329 colAdjust=new QAction(tr("Adjust Column"), tr("&Adjust"), 0, this);
330 connect(colAdjust, SIGNAL(activated()), this, SLOT(slotColumnAdjust())); 330 connect(colAdjust, SIGNAL(activated()), this, SLOT(slotColumnAdjust()));
331 colShow=new QAction(tr("Show Column"), tr("&Show"), 0, this); 331 colShow=new QAction(tr("Show Column"), tr("&Show"), 0, this);
332 connect(colShow, SIGNAL(activated()), this, SLOT(slotColumnShow())); 332 connect(colShow, SIGNAL(activated()), this, SLOT(slotColumnShow()));
333 colHide=new QAction(tr("Hide Column"), tr("&Hide"), 0, this); 333 colHide=new QAction(tr("Hide Column"), tr("&Hide"), 0, this);
334 connect(colHide, SIGNAL(activated()), this, SLOT(slotColumnHide())); 334 connect(colHide, SIGNAL(activated()), this, SLOT(slotColumnHide()));
335 335
336 sheetRename=new QAction(tr("Rename Sheet"), tr("&Rename"), 0, this); 336 sheetRename=new QAction(tr("Rename Sheet"), tr("&Rename"), 0, this);
337 connect(sheetRename, SIGNAL(activated()), this, SLOT(slotSheetRename())); 337 connect(sheetRename, SIGNAL(activated()), this, SLOT(slotSheetRename()));
338 sheetRemove=new QAction(tr("Remove Sheet"), tr("R&emove"), 0, this); 338 sheetRemove=new QAction(tr("Remove Sheet"), tr("R&emove"), 0, this);
339 connect(sheetRemove, SIGNAL(activated()), this, SLOT(slotSheetRemove())); 339 connect(sheetRemove, SIGNAL(activated()), this, SLOT(slotSheetRemove()));
340 340
341 dataSort=new QAction(tr("Sort Data"), tr("&Sort"), 0, this); 341 dataSort=new QAction(tr("Sort Data"), tr("&Sort"), 0, this);
342 connect(dataSort, SIGNAL(activated()), this, SLOT(slotDataSort())); 342 connect(dataSort, SIGNAL(activated()), this, SLOT(slotDataSort()));
343 dataFindReplace=new QAction(tr("Find && Replace"), tr("&Find && Replace"), 0, this); 343 dataFindReplace=new QAction(tr("Find && Replace"), tr("&Find && Replace"), 0, this);
344 connect(dataFindReplace, SIGNAL(activated()), this, SLOT(slotDataFindReplace())); 344 connect(dataFindReplace, SIGNAL(activated()), this, SLOT(slotDataFindReplace()));
345 345
346 funcEqual=new QAction(tr("Equal To"), Resource::loadPixmap( "opie-sheet/func_equal" ), tr("&Equal To"), 0, this); 346 funcEqual=new QAction(tr("Equal To"), Resource::loadPixmap( "opie-sheet/func-equal" ), tr("&Equal To"), 0, this);
347 funcEqual->setToolTip("="); 347 funcEqual->setToolTip("=");
348 connect(funcEqual, SIGNAL(activated()), this, SLOT(slotFuncOutput())); 348 connect(funcEqual, SIGNAL(activated()), this, SLOT(slotFuncOutput()));
349 funcPlus=new QAction(tr("Addition"), Resource::loadPixmap( "opie-sheet/func_plus" ), tr("&Addition"), 0, this); 349 funcPlus=new QAction(tr("Addition"), Resource::loadPixmap( "opie-sheet/func-plus" ), tr("&Addition"), 0, this);
350 funcPlus->setToolTip("+"); 350 funcPlus->setToolTip("+");
351 connect(funcPlus, SIGNAL(activated()), this, SLOT(slotFuncOutput())); 351 connect(funcPlus, SIGNAL(activated()), this, SLOT(slotFuncOutput()));
352 funcMinus=new QAction(tr("Subtraction"), Resource::loadPixmap( "opie-sheet/func_minus" ), tr("&Subtraction"), 0, this); 352 funcMinus=new QAction(tr("Subtraction"), Resource::loadPixmap( "opie-sheet/func-minus" ), tr("&Subtraction"), 0, this);
353 funcMinus->setToolTip("-"); 353 funcMinus->setToolTip("-");
354 connect(funcMinus, SIGNAL(activated()), this, SLOT(slotFuncOutput())); 354 connect(funcMinus, SIGNAL(activated()), this, SLOT(slotFuncOutput()));
355 funcCross=new QAction(tr("Multiplication"), Resource::loadPixmap ("opie-sheet/func_cross" ), tr("&Multiplication"), 0, this); 355 funcCross=new QAction(tr("Multiplication"), Resource::loadPixmap ("opie-sheet/func-cross" ), tr("&Multiplication"), 0, this);
356 funcCross->setToolTip("*"); 356 funcCross->setToolTip("*");
357 connect(funcCross, SIGNAL(activated()), this, SLOT(slotFuncOutput())); 357 connect(funcCross, SIGNAL(activated()), this, SLOT(slotFuncOutput()));
358 funcDivide=new QAction(tr("Division"), Resource::loadPixmap( "opie-sheet/func_divide" ), tr("&Division"), 0, this); 358 funcDivide=new QAction(tr("Division"), Resource::loadPixmap( "opie-sheet/func-divide" ), tr("&Division"), 0, this);
359 funcDivide->setToolTip("/"); 359 funcDivide->setToolTip("/");
360 connect(funcDivide, SIGNAL(activated()), this, SLOT(slotFuncOutput())); 360 connect(funcDivide, SIGNAL(activated()), this, SLOT(slotFuncOutput()));
361 funcParanOpen=new QAction(tr("Open ParanthesistempCellData->row+row1, tempCellData->col+col1"), Resource::loadPixmap( "opie-sheet/func_paran_open" ), tr("&Open Paranthesis"), 0, this); 361 funcParanOpen=new QAction(tr("Open ParanthesistempCellData->row+row1, tempCellData->col+col1"), Resource::loadPixmap( "opie-sheet/func-paran-open" ), tr("&Open Paranthesis"), 0, this);
362 funcParanOpen->setToolTip("("); 362 funcParanOpen->setToolTip("(");
363 connect(funcParanOpen, SIGNAL(activated()), this, SLOT(slotFuncOutput())); 363 connect(funcParanOpen, SIGNAL(activated()), this, SLOT(slotFuncOutput()));
364 funcParanClose=new QAction(tr("Close Paranthesis"), Resource::loadPixmap( "opie-sheet/func_paran_close" ), tr("&Close Paranthesis"), 0, this); 364 funcParanClose=new QAction(tr("Close Paranthesis"), Resource::loadPixmap( "opie-sheet/func-paran-close" ), tr("&Close Paranthesis"), 0, this);
365 funcParanClose->setToolTip(")"); 365 funcParanClose->setToolTip(")");
366 connect(funcParanClose, SIGNAL(activated()), this, SLOT(slotFuncOutput())); 366 connect(funcParanClose, SIGNAL(activated()), this, SLOT(slotFuncOutput()));
367 funcComma=new QAction(tr("Comma"), Resource::loadPixmap( "opie-sheet/func_comma" ), tr("&Comma"), 0, this); 367 funcComma=new QAction(tr("Comma"), Resource::loadPixmap( "opie-sheet/func-comma" ), tr("&Comma"), 0, this);
368 funcComma->setToolTip(","); 368 funcComma->setToolTip(",");
369 connect(funcComma, SIGNAL(activated()), this, SLOT(slotFuncOutput())); 369 connect(funcComma, SIGNAL(activated()), this, SLOT(slotFuncOutput()));
370} 370}
371 371
372void MainWindow::initMenu() 372void MainWindow::initMenu()
373{ 373{
374 menu=new QMenuBar(this); 374 menu=new QMenuBar(this);
375 375
376 menuFile=new QPopupMenu; 376 menuFile=new QPopupMenu;
377 fileNew->addTo(menuFile); 377 fileNew->addTo(menuFile);
378 fileOpen->addTo(menuFile); 378 fileOpen->addTo(menuFile);
379 fileSave->addTo(menuFile); 379 fileSave->addTo(menuFile);
380 fileSaveAs->addTo(menuFile); 380 fileSaveAs->addTo(menuFile);
381// menuFile->insertSeparator(); 381// menuFile->insertSeparator();
382// fileQuit->addTo(menuFile); 382// fileQuit->addTo(menuFile);
383 menuFile->insertSeparator(); 383 menuFile->insertSeparator();
384 fileExcelImport->addTo(menuFile); 384 fileExcelImport->addTo(menuFile);
385 menu->insertItem(tr("&File"), menuFile); 385 menu->insertItem(tr("&File"), menuFile);
386 386
387 menuEdit=new QPopupMenu; 387 menuEdit=new QPopupMenu;
388 editAccept->addTo(menuEdit); 388 editAccept->addTo(menuEdit);
389 editCancel->addTo(menuEdit); 389 editCancel->addTo(menuEdit);
390 editCellSelect->addTo(menuEdit); 390 editCellSelect->addTo(menuEdit);
391 menuEdit->insertSeparator(); 391 menuEdit->insertSeparator();
@@ -579,49 +579,49 @@ void MainWindow::initStandardToolbar()
579 fileOpen->addTo(toolbarStandard); 579 fileOpen->addTo(toolbarStandard);
580 fileSave->addTo(toolbarStandard); 580 fileSave->addTo(toolbarStandard);
581 581
582 comboSheets=new QComboBox(toolbarStandard); 582 comboSheets=new QComboBox(toolbarStandard);
583 toolbarStandard->setStretchableWidget(comboSheets); 583 toolbarStandard->setStretchableWidget(comboSheets);
584 connect(comboSheets, SIGNAL(activated(const QString &)), this, SLOT(slotSheetChanged(const QString &))); 584 connect(comboSheets, SIGNAL(activated(const QString &)), this, SLOT(slotSheetChanged(const QString &)));
585} 585}
586 586
587void MainWindow::initFunctionsToolbar() 587void MainWindow::initFunctionsToolbar()
588{ 588{
589 toolbarFunctions=new QToolBar(this); 589 toolbarFunctions=new QToolBar(this);
590 toolbarFunctions->setHorizontalStretchable(TRUE); 590 toolbarFunctions->setHorizontalStretchable(TRUE);
591 moveToolBar(toolbarFunctions, Bottom); 591 moveToolBar(toolbarFunctions, Bottom);
592 592
593 funcEqual->addTo(toolbarFunctions); 593 funcEqual->addTo(toolbarFunctions);
594 funcPlus->addTo(toolbarFunctions); 594 funcPlus->addTo(toolbarFunctions);
595 funcMinus->addTo(toolbarFunctions); 595 funcMinus->addTo(toolbarFunctions);
596 funcCross->addTo(toolbarFunctions); 596 funcCross->addTo(toolbarFunctions);
597 funcDivide->addTo(toolbarFunctions); 597 funcDivide->addTo(toolbarFunctions);
598 funcParanOpen->addTo(toolbarFunctions); 598 funcParanOpen->addTo(toolbarFunctions);
599 funcParanClose->addTo(toolbarFunctions); 599 funcParanClose->addTo(toolbarFunctions);
600 funcComma->addTo(toolbarFunctions); 600 funcComma->addTo(toolbarFunctions);
601 601
602 toolFunction=new QToolButton(toolbarFunctions); 602 toolFunction=new QToolButton(toolbarFunctions);
603 toolFunction->setPixmap(Resource::loadPixmap( "opie-sheet/func_func" )); 603 toolFunction->setPixmap(Resource::loadPixmap( "opie-sheet/func-func" ));
604 toolFunction->setTextLabel(tr("Functions")); 604 toolFunction->setTextLabel(tr("Functions"));
605 toolFunction->setPopup(submenuFunc); 605 toolFunction->setPopup(submenuFunc);
606 toolFunction->setPopupDelay(0); 606 toolFunction->setPopupDelay(0);
607} 607}
608 608
609void MainWindow::initEditToolbar() 609void MainWindow::initEditToolbar()
610{ 610{
611 toolbarEdit=new QToolBar(this); 611 toolbarEdit=new QToolBar(this);
612 toolbarEdit->setHorizontalStretchable(TRUE); 612 toolbarEdit->setHorizontalStretchable(TRUE);
613 moveToolBar(toolbarEdit, Bottom); 613 moveToolBar(toolbarEdit, Bottom);
614 614
615 editAccept->addTo(toolbarEdit); 615 editAccept->addTo(toolbarEdit);
616 editCancel->addTo(toolbarEdit); 616 editCancel->addTo(toolbarEdit);
617 617
618 editData=new QLineEdit(toolbarEdit); 618 editData=new QLineEdit(toolbarEdit);
619 toolbarEdit->setStretchableWidget(editData); 619 toolbarEdit->setStretchableWidget(editData);
620 connect(editData, SIGNAL(returnPressed()), this, SLOT(slotEditAccept())); 620 connect(editData, SIGNAL(returnPressed()), this, SLOT(slotEditAccept()));
621 621
622 editCellSelect->addTo(toolbarEdit); 622 editCellSelect->addTo(toolbarEdit);
623} 623}
624 624
625void MainWindow::slotHelpAbout() 625void MainWindow::slotHelpAbout()
626{ 626{
627 QDialog dialogAbout(this, 0, TRUE); 627 QDialog dialogAbout(this, 0, TRUE);