summaryrefslogtreecommitdiff
authorhayzel <hayzel>2004-01-09 21:16:45 (UTC)
committer hayzel <hayzel>2004-01-09 21:16:45 (UTC)
commit29961a27e46a5ebf000690339243ec51e55a6b5a (patch) (unidiff)
treead24240c5bb02dfbe8fd4b028db59fec39ed2267
parent88af644c534f19e391ebbe8ea0babf3ccf459eb1 (diff)
downloadopie-29961a27e46a5ebf000690339243ec51e55a6b5a.zip
opie-29961a27e46a5ebf000690339243ec51e55a6b5a.tar.gz
opie-29961a27e46a5ebf000690339243ec51e55a6b5a.tar.bz2
remove a faulty "/" from a Resource::loadPixmap sentence....
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-sheet/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-sheet/mainwindow.cpp b/noncore/apps/opie-sheet/mainwindow.cpp
index d47a570..07e581a 100644
--- a/noncore/apps/opie-sheet/mainwindow.cpp
+++ b/noncore/apps/opie-sheet/mainwindow.cpp
@@ -235,97 +235,97 @@ void MainWindow::selectorHide()
235void MainWindow::slotFileNew() 235void MainWindow::slotFileNew()
236{ 236{
237 selectorFileNew(DocLnk()); 237 selectorFileNew(DocLnk());
238} 238}
239 239
240void MainWindow::slotFileOpen() 240void MainWindow::slotFileOpen()
241{ 241{
242 selectorShow(); 242 selectorShow();
243} 243}
244 244
245void MainWindow::slotImportExcelOpen() 245void MainWindow::slotImportExcelOpen()
246{ 246{
247 sheet->hide(); 247 sheet->hide();
248 setCentralWidget(ExcelSelector); 248 setCentralWidget(ExcelSelector);
249 ExcelSelector->show(); 249 ExcelSelector->show();
250 ExcelSelector->reread(); 250 ExcelSelector->reread();
251} 251}
252 252
253void MainWindow::ExcelSelectorHide() 253void MainWindow::ExcelSelectorHide()
254{ 254{
255 ExcelSelector->hide(); 255 ExcelSelector->hide();
256 setCentralWidget(sheet); 256 setCentralWidget(sheet);
257 sheet->show(); 257 sheet->show();
258} 258}
259 259
260void MainWindow::slotFileSave() 260void MainWindow::slotFileSave()
261{ 261{
262 saveCurrentFile(FALSE); 262 saveCurrentFile(FALSE);
263} 263}
264 264
265void MainWindow::setDocument(const QString &applnk_filename) 265void MainWindow::setDocument(const QString &applnk_filename)
266{ 266{
267 selectorFileOpen(DocLnk(applnk_filename)); 267 selectorFileOpen(DocLnk(applnk_filename));
268} 268}
269 269
270void MainWindow::initActions() 270void 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()));
320 rowAdjust=new QAction(tr("Adjust Row"), tr("&Adjust"), 0, this); 320 rowAdjust=new QAction(tr("Adjust Row"), tr("&Adjust"), 0, this);
321 connect(rowAdjust, SIGNAL(activated()), this, SLOT(slotRowAdjust())); 321 connect(rowAdjust, SIGNAL(activated()), this, SLOT(slotRowAdjust()));
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);