author | harlekin <harlekin> | 2003-03-22 17:46:13 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-22 17:46:13 (UTC) |
commit | 3104d758b56032f76fa7344e66f010b85885496f (patch) (side-by-side diff) | |
tree | 0e55db2d45754f076e76676edc6381d978e1e5a0 | |
parent | 42e7ce25ed1733bd621c5e203c28d33f6dcc7e6d (diff) | |
download | opie-3104d758b56032f76fa7344e66f010b85885496f.zip opie-3104d758b56032f76fa7344e66f010b85885496f.tar.gz opie-3104d758b56032f76fa7344e66f010b85885496f.tar.bz2 |
adated to new icons, adapted to the right help system and removed quit and about
-rw-r--r-- | noncore/apps/opie-sheet/edit-accept.xpm | 30 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/edit-cancel.xpm | 25 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/file-new.xpm | 24 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/file-open.xpm | 25 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/file-save.xpm | 24 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/help-general.xpm | 25 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/mainwindow.cpp | 56 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/mainwindow.h | 1 |
8 files changed, 21 insertions, 189 deletions
diff --git a/noncore/apps/opie-sheet/edit-accept.xpm b/noncore/apps/opie-sheet/edit-accept.xpm deleted file mode 100644 index 5109281..0000000 --- a/noncore/apps/opie-sheet/edit-accept.xpm +++ b/dev/null @@ -1,30 +0,0 @@ -/* XPM */ -static const char *edit_accept_xpm[] = { -/* columns rows colors chars-per-pixel */ -"16 16 8 1", -" c #000000000000", -". c #000040400000", -"X c #404000000000", -"o c #000080800000", -"O c #0000c0c00000", -"+ c #c0c0ffffc0c0", -"@ c #ffffffffffff", -"# c None", -/* pixels */ -"################", -"################", -"##############+#", -"#############+O#", -"############+Oo#", -"###########+Oo.#", -"##+o######+Oo. #", -"#+OOo####+Oo.X##", -" .oOOo##+Oo. ###", -"# .oOOo+Oo.X####", -"##X.oOOOo.X#####", -"### .oOo. ######", -"#### .o. #######", -"##### X ########", -"################", -"################", -}; diff --git a/noncore/apps/opie-sheet/edit-cancel.xpm b/noncore/apps/opie-sheet/edit-cancel.xpm deleted file mode 100644 index 8e1606e..0000000 --- a/noncore/apps/opie-sheet/edit-cancel.xpm +++ b/dev/null @@ -1,25 +0,0 @@ -/* XPM */ -static const char *edit_cancel_xpm[] = { -/* columns rows colors chars-per-pixel */ -"16 16 3 1", -". c red", -"X c #ffffffffffff", -" c None", -/* pixels */ -" ", -" ", -" ..... ", -" ......... ", -" ........... ", -" ..XX...XX.. ", -" ...XXX.XXX... ", -" ....XXXXX.... ", -" .....XXX..... ", -" ....XXXXX.... ", -" ...XXX.XXX... ", -" ..XX...XX.. ", -" ........... ", -" ......... ", -" ..... ", -" ", -}; diff --git a/noncore/apps/opie-sheet/file-new.xpm b/noncore/apps/opie-sheet/file-new.xpm deleted file mode 100644 index ec8dd63..0000000 --- a/noncore/apps/opie-sheet/file-new.xpm +++ b/dev/null @@ -1,24 +0,0 @@ -/* XPM */ -static const char * file_new_xpm[] = { -"16 16 5 1", -" c None", -". c #808080", -"+ c #FFFFFF", -"@ c #C0C0C0", -"# c #000000", -" .......... ", -" .++++++++@. ", -" .++++++++@+. ", -" .++++++++#### ", -" .++++++++++@# ", -" .++++++++++@# ", -" .++++++++++@# ", -" .++++++++++@# ", -" .++++++++++@# ", -" .++++++++++@# ", -" .++++++++++@# ", -" .++++++++++@# ", -" .++++++++++@# ", -" .++++++++++@# ", -" .@@@@@@@@@@@# ", -" ############# "}; diff --git a/noncore/apps/opie-sheet/file-open.xpm b/noncore/apps/opie-sheet/file-open.xpm deleted file mode 100644 index 8449d5b..0000000 --- a/noncore/apps/opie-sheet/file-open.xpm +++ b/dev/null @@ -1,25 +0,0 @@ -/* XPM */ -static const char * file_open_xpm[] = { -"16 16 6 1", -" c None", -". c #808080", -"+ c #FFFFFF", -"@ c #C0C0C0", -"# c #FFFF00", -"$ c #000000", -" ", -" ..... ", -" .+++++. ", -" .+@#@#@+...... ", -" .+#@#@#@+++++.$", -" .+@#@#@#@#@#@.$", -".............#.$", -".++++++++++.$@.$", -".+@#@#@#@#@#$..$", -" .+@#@#@#@#@.$.$", -" .+#@#@#@#@#@$.$", -" .+#@#@#@#@#.$$", -" ............$$", -" $$$$$$$$$$$$$", -" ", -" "}; diff --git a/noncore/apps/opie-sheet/file-save.xpm b/noncore/apps/opie-sheet/file-save.xpm deleted file mode 100644 index 039a174..0000000 --- a/noncore/apps/opie-sheet/file-save.xpm +++ b/dev/null @@ -1,24 +0,0 @@ -/* XPM */ -static const char * file_save_xpm[] = { -"16 16 5 1", -" c None", -". c #808080", -"+ c #FFFFFF", -"@ c #000000", -"# c #0000FF", -" ", -" ........ ", -" .++++++.@ ", -" .+....+.+@ #", -" .++++++.@@@ ##", -" .+....++++@ ##@", -" .+++++++++@##@ ", -" .+.......+##@ ", -" .++++++++##@ ", -" .+......@#@ ", -" .++++++@@@@ ", -" .+....@@@+@ ", -" .++++@++++@ ", -" .+++++++++@ ", -" @@@@@@@@@@@ ", -" "}; diff --git a/noncore/apps/opie-sheet/help-general.xpm b/noncore/apps/opie-sheet/help-general.xpm deleted file mode 100644 index 9f10527..0000000 --- a/noncore/apps/opie-sheet/help-general.xpm +++ b/dev/null @@ -1,25 +0,0 @@ -/* XPM */ -static const char * help_general_xpm[] = { -"16 16 6 1", -" c None s None", -". c #000000", -"X c #FF0000", -"o c #FFFF00", -"O c #808080", -"+ c #FFFFFF", -" ", -" .. ", -" .XX. ", -" .XXXX. ", -" .XXXoXX. ", -" .XXXoXoXX. ", -" .XXXXXoXoX. ", -" .XXXXXXXoX.O ", -" ..XXXXXXX.+.O ", -" .+.XXXXX.+.O ", -" .+.XXX.+.O ", -" .+.X.+.O ", -" .+.+.O ", -" .+.O ", -" .O ", -" "}; diff --git a/noncore/apps/opie-sheet/mainwindow.cpp b/noncore/apps/opie-sheet/mainwindow.cpp index b9f8e57..43e5131 100644 --- a/noncore/apps/opie-sheet/mainwindow.cpp +++ b/noncore/apps/opie-sheet/mainwindow.cpp @@ -17,6 +17,8 @@ #include <qpe/filemanager.h> #include <qpe/qcopenvelope_qws.h> +#include <qpe/resource.h> #include <qmessagebox.h> #include <qfile.h> +#include <qtranslator.h> #include <qradiobutton.h> #include "cellformat.h" @@ -26,10 +28,5 @@ #include "finddlg.h" -#include "file-new.xpm" -#include "file-open.xpm" -#include "file-save.xpm" -#include "edit-cancel.xpm" -#include "edit-accept.xpm" -#include "help-general.xpm" + #include "func-plus.xpm" #include "func-minus.xpm" @@ -266,23 +263,23 @@ void MainWindow::setDocument(const QString &applnk_filename) void MainWindow::initActions() { - fileNew=new QAction(tr("New File"), QPixmap(file_new_xpm), tr("&New"), 0, this); + fileNew=new QAction(tr("New File"), Resource::loadPixmap( "new" ), tr("&New"), 0, this); connect(fileNew, SIGNAL(activated()), this, SLOT(slotFileNew())); - fileOpen=new QAction(tr("Open File"), QPixmap(file_open_xpm), tr("&Open"), 0, this); + fileOpen=new QAction(tr("Open File"), Resource::loadPixmap( "fileopen" ), tr("&Open"), 0, this); connect(fileOpen, SIGNAL(activated()), this, SLOT(slotFileOpen())); - fileSave=new QAction(tr("Save File"), QPixmap(file_save_xpm), tr("&Save"), 0, this); + fileSave=new QAction(tr("Save File"),Resource::loadPixmap( "save" ), tr("&Save"), 0, this); connect(fileSave, SIGNAL(activated()), this, SLOT(slotFileSave())); - fileSaveAs=new QAction(tr("Save File As"), QPixmap(file_save_xpm), tr("Save &As"), 0, this); + fileSaveAs=new QAction(tr("Save File As"), Resource::loadPixmap( "save" ), tr("Save &As"), 0, this); connect(fileSaveAs, SIGNAL(activated()), this, SLOT(slotFileSaveAs())); - fileQuit=new QAction(tr("Quit"), tr("&Quit"), 0, this); - connect(fileQuit, SIGNAL(activated()), this, SLOT(close())); + //fileQuit=new QAction(tr("Quit"), tr("&Quit"), 0, this); + //connect(fileQuit, SIGNAL(activated()), this, SLOT(close())); - helpGeneral=new QAction(tr("General Help"), QPixmap(help_general_xpm), tr("&General"), 0, this); - connect(helpGeneral, SIGNAL(activated()), this, SLOT(slotHelpGeneral())); - helpAbout=new QAction(tr("About Opie Sheet"), tr("&About"), 0, this); - connect(helpAbout, SIGNAL(activated()), this, SLOT(slotHelpAbout())); + // helpGeneral=new QAction(tr("General Help"), QPixmap(help_general_xpm), tr("&General"), 0, this); + //connect(helpGeneral, SIGNAL(activated()), this, SLOT(slotHelpGeneral())); + //helpAbout=new QAction(tr("About Opie Sheet"), tr("&About"), 0, this); + //connect(helpAbout, SIGNAL(activated()), this, SLOT(slotHelpAbout())); - editAccept=new QAction(tr("Accept"), QPixmap(edit_accept_xpm), tr("&Accept"), 0, this); + editAccept=new QAction(tr("Accept"),Resource::loadPixmap( "enter" ) , tr("&Accept"), 0, this); connect(editAccept, SIGNAL(activated()), this, SLOT(slotEditAccept())); - editCancel=new QAction(tr("Cancel"), QPixmap(edit_cancel_xpm), tr("&Cancel"), 0, this); + editCancel=new QAction(tr("Cancel"), Resource::loadPixmap( "close" ), tr("&Cancel"), 0, this); connect(editCancel, SIGNAL(activated()), this, SLOT(slotEditCancel())); editCellSelect=new QAction(tr("Cell Selector"), QPixmap(cell_select_xpm), tr("Cell &Selector"), 0, this); @@ -372,6 +369,6 @@ void MainWindow::initMenu() fileSave->addTo(menuFile); fileSaveAs->addTo(menuFile); - menuFile->insertSeparator(); - fileQuit->addTo(menuFile); +// menuFile->insertSeparator(); +// fileQuit->addTo(menuFile); menu->insertItem(tr("&File"), menuFile); @@ -400,8 +397,8 @@ void MainWindow::initMenu() menu->insertItem(tr("&Data"), menuData); - menuHelp=new QPopupMenu; - helpGeneral->addTo(menuHelp); - helpAbout->addTo(menuHelp); - menu->insertItem(tr("&Help"), menuHelp); +// menuHelp=new QPopupMenu; +// helpGeneral->addTo(menuHelp); +// helpAbout->addTo(menuHelp); +// menu->insertItem(tr("&Help"), menuHelp); submenuRow=new QPopupMenu; @@ -518,15 +515,4 @@ void MainWindow::initEditToolbar() } -void MainWindow::slotHelpGeneral() -{ - if (QFile::exists(helpFile)) - { - QCopEnvelope e("QPE/Application/helpbrowser", "showFile(QString)"); - e << helpFile; - } - else - QMessageBox::critical(this, tr("Error"), tr("Help file not found!")); -} - void MainWindow::slotHelpAbout() { diff --git a/noncore/apps/opie-sheet/mainwindow.h b/noncore/apps/opie-sheet/mainwindow.h index d68e25c..10d6650 100644 --- a/noncore/apps/opie-sheet/mainwindow.h +++ b/noncore/apps/opie-sheet/mainwindow.h @@ -89,5 +89,4 @@ class MainWindow: public QMainWindow void slotFileSaveAs(); void slotHelpAbout(); - void slotHelpGeneral(); void slotEditAccept(); void slotEditCancel(); |