summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-08-13 12:24:47 (UTC)
committer mickeyl <mickeyl>2003-08-13 12:24:47 (UTC)
commit6e7dbb9320256c326cd19e7555b4309e71d039e3 (patch) (unidiff)
tree3a64f0284a7f9f2a2fdbacffde3e11eb768b79bc
parentdb952faa29fa56602b061ef4faff61cc57f71243 (diff)
downloadopie-6e7dbb9320256c326cd19e7555b4309e71d039e3.zip
opie-6e7dbb9320256c326cd19e7555b4309e71d039e3.tar.gz
opie-6e7dbb9320256c326cd19e7555b4309e71d039e3.tar.bz2
make it at least compile. ljp, please look @ the doctab
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make1
-rw-r--r--core/launcher/launcher.cpp27
2 files changed, 15 insertions, 13 deletions
diff --git a/Rules.make b/Rules.make
index ab77abf..5fd8d90 100644
--- a/Rules.make
+++ b/Rules.make
@@ -13,96 +13,97 @@ else
13 echo CONFIG -= debug >> $@ 13 echo CONFIG -= debug >> $@
14 echo CONFIG += release >> $@ 14 echo CONFIG += release >> $@
15endif 15endif
16ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 16ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3
17 echo CONFIG -= qt3 >> $@ 17 echo CONFIG -= qt3 >> $@
18else 18else
19 echo CONFIG += qt3 >> $@ 19 echo CONFIG += qt3 >> $@
20endif 20endif
21 21
22$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 22$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
23 @echo Generating dependency information... 23 @echo Generating dependency information...
24# add to subdir-y, and add descend rules 24# add to subdir-y, and add descend rules
25 @cat $(TOPDIR)/packages | grep -v '^#' | \ 25 @cat $(TOPDIR)/packages | grep -v '^#' | \
26 awk '{print \ 26 awk '{print \
27 ".PHONY : " $$2 "\n" \ 27 ".PHONY : " $$2 "\n" \
28 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ 28 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \
29 print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends 29 print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
30 cat $(TOPDIR)/packages | grep -v '^#' | \ 30 cat $(TOPDIR)/packages | grep -v '^#' | \
31 perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ 31 perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \
32 >> $(TOPDIR)/.depends 32 >> $(TOPDIR)/.depends
33# interpackage dependency generation 33# interpackage dependency generation
34 @cat $(TOPDIR)/packages | \ 34 @cat $(TOPDIR)/packages | \
35 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends 35 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends
36 36
37$(TOPDIR)/.depends.cfgs: 37$(TOPDIR)/.depends.cfgs:
38# config.in interdependencies 38# config.in interdependencies
39 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs 39 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs
40 @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ 40 @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@
41 @-rm -f dirs 41 @-rm -f dirs
42 42
43$(QTDIR)/stamp-headers : 43$(QTDIR)/stamp-headers :
44 @-rm -f $(QTDIR)/stamp-headers* 44 @-rm -f $(QTDIR)/stamp-headers*
45 ( cd $(QTDIR)/include; \ 45 ( cd $(QTDIR)/include; \
46 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ 46 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \
47 qcopchannel_qws.h qwindowsystem_qws.h \ 47 qcopchannel_qws.h qwindowsystem_qws.h \
48 qfontmanager_qws.h qwsdefaultdecoration_qws.h)) 48 qfontmanager_qws.h qwsdefaultdecoration_qws.h))
49 touch $@ 49 touch $@
50 50
51$(QTDIR)/stamp-headers-x11 : 51$(QTDIR)/stamp-headers-x11 :
52 @-rm -f $(QTDIR)/stamp-headers* 52 @-rm -f $(QTDIR)/stamp-headers*
53 cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) 53 cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h)
54 touch $@ 54 touch $@
55 55
56$(OPIEDIR)/stamp-headers : 56$(OPIEDIR)/stamp-headers :
57 @-rm -f $(OPIEDIR)/stamp-headers* 57 @-rm -f $(OPIEDIR)/stamp-headers*
58 mkdir -p $(TOPDIR)/include/qpe \ 58 mkdir -p $(TOPDIR)/include/qpe \
59 $(TOPDIR)/include/qtopia \ 59 $(TOPDIR)/include/qtopia \
60 $(TOPDIR)/include/opie \ 60 $(TOPDIR)/include/opie \
61 $(TOPDIR)/include/opie2 \
61 $(TOPDIR)/include/qtopia/private 62 $(TOPDIR)/include/qtopia/private
62 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 63 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
63 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 64 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
64 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 65 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
65 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) 66 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; )
66 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) 67 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; )
67 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 68 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
68 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) 69 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; )
69 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) 70 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; )
70 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) 71 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; )
71 #( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 72 #( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
72 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 73 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
73 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 74 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
74 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) 75 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done )
75 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 76 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
76 touch $@ 77 touch $@
77 78
78$(OPIEDIR)/stamp-headers-x11 : 79$(OPIEDIR)/stamp-headers-x11 :
79 @-rm -f $(OPIEDIR)/stamp-headers* 80 @-rm -f $(OPIEDIR)/stamp-headers*
80 mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ 81 mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \
81 $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private 82 $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private
82 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 83 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
83 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 84 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
84 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 85 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
85 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) 86 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; )
86 ( cd include/opie && ln -sf ../../libsql/*.h .; ) 87 ( cd include/opie && ln -sf ../../libsql/*.h .; )
87 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) 88 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; )
88 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 89 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
89 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) 90 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done )
90 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 91 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
91 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) 92 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; )
92 touch $@ 93 touch $@
93 94
94$(TOPDIR)/library/custom.h : $(TOPDIR)/.config 95$(TOPDIR)/library/custom.h : $(TOPDIR)/.config
95 @-rm -f $@ 96 @-rm -f $@
96 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ 97 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\
97 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) 98 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@)
98 @touch $@ 99 @touch $@
99 100
100$(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: 101$(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake:
101 @$(call descend,$(shell dirname $@),$(shell basename $@)) 102 @$(call descend,$(shell dirname $@),$(shell basename $@))
102 103
103menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in 104menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in
104 $(TOPDIR)/scripts/kconfig/mconf ./config.in 105 $(TOPDIR)/scripts/kconfig/mconf ./config.in
105 @touch ./.config.stamp 106 @touch ./.config.stamp
106 107
107xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 108xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
108 $(TOPDIR)/scripts/kconfig/qconf ./config.in 109 $(TOPDIR)/scripts/kconfig/qconf ./config.in
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp
index 0205622..b612aa2 100644
--- a/core/launcher/launcher.cpp
+++ b/core/launcher/launcher.cpp
@@ -336,104 +336,105 @@ void CategoryTabWidget::setTabAppearance( const QString &id, Config &cfg )
336 tab->bgColor = QColor(tabCol); 336 tab->bgColor = QColor(tabCol);
337 QString tabTextCol = cfg.readEntry( "TabTextColor" ); 337 QString tabTextCol = cfg.readEntry( "TabTextColor" );
338 if ( tabTextCol.isEmpty() ) 338 if ( tabTextCol.isEmpty() )
339 tab->fgColor = QColor(); 339 tab->fgColor = QColor();
340 else 340 else
341 tab->fgColor = QColor(tabTextCol); 341 tab->fgColor = QColor(tabTextCol);
342} 342}
343 343
344//void CategoryTabWidget::updateDocs(AppLnkSet* docFolder, const QList<FileSystem> & /*fs*/) 344//void CategoryTabWidget::updateDocs(AppLnkSet* docFolder, const QList<FileSystem> & /*fs*/)
345//{ 345//{
346 // docFolder->detachChildren(); 346 // docFolder->detachChildren();
347//} 347//}
348 348
349void CategoryTabWidget::tabProperties() 349void CategoryTabWidget::tabProperties()
350{ 350{
351 LauncherView *view = (LauncherView*)stack->widget( categoryBar->currentTab() ); 351 LauncherView *view = (LauncherView*)stack->widget( categoryBar->currentTab() );
352 QPopupMenu *m = new QPopupMenu( this ); 352 QPopupMenu *m = new QPopupMenu( this );
353 m->insertItem( tr("Icon View"), LauncherView::Icon ); 353 m->insertItem( tr("Icon View"), LauncherView::Icon );
354 m->insertItem( tr("List View"), LauncherView::List ); 354 m->insertItem( tr("List View"), LauncherView::List );
355 m->setItemChecked( (int)view->viewMode(), TRUE ); 355 m->setItemChecked( (int)view->viewMode(), TRUE );
356 int rv = m->exec( QCursor::pos() ); 356 int rv = m->exec( QCursor::pos() );
357 if ( rv >= 0 && rv != view->viewMode() ) { 357 if ( rv >= 0 && rv != view->viewMode() ) {
358 view->setViewMode( (LauncherView::ViewMode)rv ); 358 view->setViewMode( (LauncherView::ViewMode)rv );
359 } 359 }
360 360
361 delete m; 361 delete m;
362} 362}
363 363
364QString CategoryTabWidget::getAllDocLinkInfo() const 364QString CategoryTabWidget::getAllDocLinkInfo() const
365{ 365{
366 return ""; 366 return "";
367} 367}
368 368
369LauncherView* CategoryTabWidget::newView( const QString& id, const QPixmap& pm, const QString& label ) 369LauncherView* CategoryTabWidget::newView( const QString& id, const QPixmap& pm, const QString& label )
370{ 370{
371 LauncherView* view = new LauncherView( stack ); 371 LauncherView* view = new LauncherView( stack );
372 connect( view, SIGNAL(clicked(const AppLnk*)), 372 connect( view, SIGNAL(clicked(const AppLnk*)),
373 this, SIGNAL(clicked(const AppLnk*))); 373 this, SIGNAL(clicked(const AppLnk*)));
374 connect( view, SIGNAL(rightPressed(AppLnk*)), 374 connect( view, SIGNAL(rightPressed(AppLnk*)),
375 this, SIGNAL(rightPressed(AppLnk*))); 375 this, SIGNAL(rightPressed(AppLnk*)));
376 ids.append(id); 376 ids.append(id);
377 categoryBar->addTab( new CategoryTab( pm, label ) ); 377 categoryBar->addTab( new CategoryTab( pm, label ) );
378 stack->addWidget( view, tabs++ ); 378 stack->addWidget( view, tabs++ );
379 return view; 379 return view;
380} 380}
381 381
382void CategoryTabWidget::updateLink(const QString& linkfile) 382void CategoryTabWidget::updateLink(const QString& linkfile)
383{ 383{
384 // LauncherView* view; 384 int i=0;
385 qApp->processEvents(); 385 LauncherView* view;
386// while ((view = (LauncherView*)stack->widget(i++))) { 386 //qApp->processEvents();
387// if ( view->removeLink(linkfile) ) 387 while ((view = (LauncherView*)stack->widget(i++))) {
388// break; 388 if ( view->removeLink(linkfile) )
389// } 389 break;
390 // addItem(linkfile); 390 }
391 fileSel->reparse(); 391 addItem(linkfile);
392 docview->updateTools();
392} 393}
393 394
394void CategoryTabWidget::paletteChange( const QPalette &p ) 395void CategoryTabWidget::paletteChange( const QPalette &p )
395{ 396{
396 QVBox::paletteChange( p ); 397 QVBox::paletteChange( p );
397 QPalette pal = palette(); 398 QPalette pal = palette();
398 pal.setColor( QColorGroup::Light, pal.color(QPalette::Active,QColorGroup::Shadow) ); 399 pal.setColor( QColorGroup::Light, pal.color(QPalette::Active,QColorGroup::Shadow) );
399 pal.setColor( QColorGroup::Background, pal.active().background().light(110) ); 400 pal.setColor( QColorGroup::Background, pal.active().background().light(110) );
400 categoryBar->setPalette( pal ); 401 categoryBar->setPalette( pal );
401 categoryBar->update(); 402 categoryBar->update();
402} 403}
403 404
404void CategoryTabWidget::setBusy(bool on) 405void CategoryTabWidget::setBusy(bool on)
405{ 406{
406 if ( on ) 407 if ( on )
407 ((LauncherView*)stack->visibleWidget())->setBusy(TRUE); 408 ((LauncherView*)stack->visibleWidget())->setBusy(TRUE);
408 else 409 else
409 for (int i=0; i<tabs-1; i++) 410 for (int i=0; i<tabs-1; i++)
410 ((LauncherView*)stack->widget(i))->setBusy(FALSE); 411 ((LauncherView*)stack->widget(i))->setBusy(FALSE);
411} 412}
412 413
413LauncherView *CategoryTabWidget::view( const QString &id ) 414LauncherView *CategoryTabWidget::view( const QString &id )
414{ 415{
415 int idx = ids.findIndex( id ); 416 int idx = ids.findIndex( id );
416 return (LauncherView *)stack->widget(idx); 417 return (LauncherView *)stack->widget(idx);
417} 418}
418 419
419void CategoryTabWidget::setBusyIndicatorType ( const QString &type ) 420void CategoryTabWidget::setBusyIndicatorType ( const QString &type )
420{ 421{
421 for ( QStringList::Iterator it = ids. begin ( ); it != ids. end ( ); ++it ) 422 for ( QStringList::Iterator it = ids. begin ( ); it != ids. end ( ); ++it )
422 view ( *it )-> setBusyIndicatorType ( type ); 423 view ( *it )-> setBusyIndicatorType ( type );
423} 424}
424 425
425//=========================================================================== 426//===========================================================================
426 427
427CategoryTabBar::CategoryTabBar( QWidget *parent, const char *name ) 428CategoryTabBar::CategoryTabBar( QWidget *parent, const char *name )
428 : QTabBar( parent, name ) 429 : QTabBar( parent, name )
429{ 430{
430 setFocusPolicy( NoFocus ); 431 setFocusPolicy( NoFocus );
431 connect( this, SIGNAL( selected(int) ), this, SLOT( layoutTabs() ) ); 432 connect( this, SIGNAL( selected(int) ), this, SLOT( layoutTabs() ) );
432} 433}
433 434
434CategoryTabBar::~CategoryTabBar() 435CategoryTabBar::~CategoryTabBar()
435{ 436{
436} 437}
437 438
438void CategoryTabBar::layoutTabs() 439void CategoryTabBar::layoutTabs()
439{ 440{
@@ -1296,60 +1297,60 @@ bool Launcher::mkdir(const QString &localPath)
1296 QString checkedPath; 1297 QString checkedPath;
1297 1298
1298 // didn't find any seps; weird, use the cur dir instead 1299 // didn't find any seps; weird, use the cur dir instead
1299 if (dirIndex == -1) { 1300 if (dirIndex == -1) {
1300 //qDebug("No seperators found in path %s", localPath.latin1()); 1301 //qDebug("No seperators found in path %s", localPath.latin1());
1301 checkedPath = QDir::currentDirPath(); 1302 checkedPath = QDir::currentDirPath();
1302 } 1303 }
1303 1304
1304 while (checkedPath != localPath) { 1305 while (checkedPath != localPath) {
1305 // no more seperators found, use the local path 1306 // no more seperators found, use the local path
1306 if (dirIndex == -1) 1307 if (dirIndex == -1)
1307 checkedPath = localPath; 1308 checkedPath = localPath;
1308 else { 1309 else {
1309 // the next directory to check 1310 // the next directory to check
1310 checkedPath = localPath.left(dirIndex) + "/"; 1311 checkedPath = localPath.left(dirIndex) + "/";
1311 // advance the iterator; the next dir seperator 1312 // advance the iterator; the next dir seperator
1312 dirIndex = localPath.find(dirSeps, dirIndex+1); 1313 dirIndex = localPath.find(dirSeps, dirIndex+1);
1313 } 1314 }
1314 1315
1315 QDir checkDir(checkedPath); 1316 QDir checkDir(checkedPath);
1316 if (!checkDir.exists()) { 1317 if (!checkDir.exists()) {
1317 //qDebug("mkdir making dir %s", checkedPath.latin1()); 1318 //qDebug("mkdir making dir %s", checkedPath.latin1());
1318 1319
1319 if (!checkDir.mkdir(checkedPath)) { 1320 if (!checkDir.mkdir(checkedPath)) {
1320 qDebug("Unable to make directory %s", checkedPath.latin1()); 1321 qDebug("Unable to make directory %s", checkedPath.latin1());
1321 return FALSE; 1322 return FALSE;
1322 } 1323 }
1323 } 1324 }
1324 1325
1325 } 1326 }
1326 return TRUE; 1327 return TRUE;
1327} 1328}
1328 1329
1329void Launcher::preloadApps() 1330void Launcher::preloadApps()
1330{ 1331{
1331 Config cfg("Launcher"); 1332 Config cfg("Launcher");
1332 cfg.setGroup("Preload"); 1333 cfg.setGroup("Preload");
1333 QStringList apps = cfg.readListEntry("Apps",','); 1334 QStringList apps = cfg.readListEntry("Apps",',');
1334 for (QStringList::ConstIterator it=apps.begin(); it!=apps.end(); ++it) { 1335 for (QStringList::ConstIterator it=apps.begin(); it!=apps.end(); ++it) {
1335#ifndef QT_NO_COP 1336#ifndef QT_NO_COP
1336 QCopEnvelope e("QPE/Application/"+(*it).local8Bit(), "enablePreload()"); 1337 QCopEnvelope e("QPE/Application/"+(*it).local8Bit(), "enablePreload()");
1337#endif 1338#endif
1338 } 1339 }
1339} 1340}
1340 1341
1341DocumentTab::DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName) 1342DocumentTab::DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName)
1342 : OFileSelector(parent,mode,selector,dirName,fileName) 1343 : OFileSelector(parent,mode,selector,dirName,fileName)
1343{ 1344{
1344 setYesCancelVisible(false); 1345 //setYesCancelVisible(false);
1345 setToolbarVisible(false); 1346 //setToolbarVisible(false);
1346 setPermissionBarVisible(false); 1347 //setPermissionBarVisible(false);
1347 setLineEditVisible(false) ; 1348 //setLineEditVisible(false) ;
1348 //setChooserVisible( bool chooser ); 1349 //setChooserVisible( bool chooser );
1349 1350
1350} 1351}
1351 1352
1352DocumentTab::~DocumentTab() { 1353DocumentTab::~DocumentTab() {
1353 1354
1354} 1355}
1355 1356