author | hayzel <hayzel> | 2004-01-09 21:34:15 (UTC) |
---|---|---|
committer | hayzel <hayzel> | 2004-01-09 21:34:15 (UTC) |
commit | 6a5b22e96544806b7d08454071bad435ac237f10 (patch) (unidiff) | |
tree | ba63be3f240919aea54368cac150ad67b654bf29 | |
parent | 29961a27e46a5ebf000690339243ec51e55a6b5a (diff) | |
download | opie-6a5b22e96544806b7d08454071bad435ac237f10.zip opie-6a5b22e96544806b7d08454071bad435ac237f10.tar.gz opie-6a5b22e96544806b7d08454071bad435ac237f10.tar.bz2 |
corrected resource names for icons.
-rw-r--r-- | noncore/apps/opie-sheet/ChangeLog | 2 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/mainwindow.cpp | 20 |
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,16 +1,18 @@ | |||
1 | January 9, 2004 corrected the names of the resource icons in mainwindow.cpp.... So now they are loaded fine. | ||
2 | |||
1 | January 8, 2004 | 3 | January 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 | ||
6 | January 8, 2004 | 8 | January 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 | ||
10 | January 7, 2004 | 12 | January 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. |
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 | |||
@@ -279,33 +279,33 @@ void MainWindow::initActions() | |||
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())); |
@@ -330,54 +330,54 @@ void MainWindow::initActions() | |||
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 | ||
372 | void MainWindow::initMenu() | 372 | void 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(); |
@@ -587,33 +587,33 @@ void MainWindow::initStandardToolbar() | |||
587 | void MainWindow::initFunctionsToolbar() | 587 | void 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 | ||
609 | void MainWindow::initEditToolbar() | 609 | void 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); |