author | zautrix <zautrix> | 2005-06-11 18:34:05 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-11 18:34:05 (UTC) |
commit | b56d3be87557510285d3381250faf9b7af300680 (patch) (unidiff) | |
tree | 887e24db261f56f78dda8397196a6125cc346fc5 | |
parent | 81370a5f955c2710b6e9336b6c412c8d630ef72a (diff) | |
download | kdepimpi-b56d3be87557510285d3381250faf9b7af300680.zip kdepimpi-b56d3be87557510285d3381250faf9b7af300680.tar.gz kdepimpi-b56d3be87557510285d3381250faf9b7af300680.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/calendarview.cpp | 39 | ||||
-rw-r--r-- | microkde/kfiledialog.cpp | 2 |
2 files changed, 31 insertions, 10 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 8f5de4d..753d81f 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -549,199 +549,202 @@ void CalendarView::init() | |||
549 | connect( mTodoList, SIGNAL( purgeCompletedSignal() ), | 549 | connect( mTodoList, SIGNAL( purgeCompletedSignal() ), |
550 | SLOT( purgeCompleted() ) ); | 550 | SLOT( purgeCompleted() ) ); |
551 | connect( mTodoList, SIGNAL( todoModifiedSignal( Todo *, int ) ), | 551 | connect( mTodoList, SIGNAL( todoModifiedSignal( Todo *, int ) ), |
552 | SIGNAL( todoModified( Todo *, int ) ) ); | 552 | SIGNAL( todoModified( Todo *, int ) ) ); |
553 | 553 | ||
554 | connect( mTodoList, SIGNAL( cloneTodoSignal( Incidence * ) ), | 554 | connect( mTodoList, SIGNAL( cloneTodoSignal( Incidence * ) ), |
555 | this, SLOT ( cloneIncidence( Incidence * ) ) ); | 555 | this, SLOT ( cloneIncidence( Incidence * ) ) ); |
556 | connect( mTodoList, SIGNAL( cancelTodoSignal( Incidence * ) ), | 556 | connect( mTodoList, SIGNAL( cancelTodoSignal( Incidence * ) ), |
557 | this, SLOT (cancelIncidence( Incidence * ) ) ); | 557 | this, SLOT (cancelIncidence( Incidence * ) ) ); |
558 | 558 | ||
559 | connect( mTodoList, SIGNAL( moveTodoSignal( Incidence * ) ), | 559 | connect( mTodoList, SIGNAL( moveTodoSignal( Incidence * ) ), |
560 | this, SLOT ( moveIncidence( Incidence * ) ) ); | 560 | this, SLOT ( moveIncidence( Incidence * ) ) ); |
561 | connect( mTodoList, SIGNAL( beamTodoSignal( Incidence * ) ), | 561 | connect( mTodoList, SIGNAL( beamTodoSignal( Incidence * ) ), |
562 | this, SLOT ( beamIncidence( Incidence * ) ) ); | 562 | this, SLOT ( beamIncidence( Incidence * ) ) ); |
563 | 563 | ||
564 | connect( mTodoList, SIGNAL( unparentTodoSignal( Todo * ) ), | 564 | connect( mTodoList, SIGNAL( unparentTodoSignal( Todo * ) ), |
565 | this, SLOT ( todo_unsub( Todo * ) ) ); | 565 | this, SLOT ( todo_unsub( Todo * ) ) ); |
566 | 566 | ||
567 | connect( mTodoList, SIGNAL( reparentTodoSignal( Todo *,Todo * ) ), | 567 | connect( mTodoList, SIGNAL( reparentTodoSignal( Todo *,Todo * ) ), |
568 | this, SLOT ( todo_resub( Todo *,Todo * ) ) ); | 568 | this, SLOT ( todo_resub( Todo *,Todo * ) ) ); |
569 | connect( this, SIGNAL( todoModified( Todo *, int )), mTodoList, | 569 | connect( this, SIGNAL( todoModified( Todo *, int )), mTodoList, |
570 | SLOT( updateTodo( Todo *, int ) ) ); | 570 | SLOT( updateTodo( Todo *, int ) ) ); |
571 | connect( this, SIGNAL( todoModified( Todo *, int )), this, | 571 | connect( this, SIGNAL( todoModified( Todo *, int )), this, |
572 | SLOT( changeTodoDisplay( Todo *, int ) ) ); | 572 | SLOT( changeTodoDisplay( Todo *, int ) ) ); |
573 | 573 | ||
574 | 574 | ||
575 | connect( mFilterView, SIGNAL( filterChanged() ), SLOT( updateFilter() ) ); | 575 | connect( mFilterView, SIGNAL( filterChanged() ), SLOT( updateFilter() ) ); |
576 | connect( mFilterView, SIGNAL( editFilters() ), SLOT( editFilters() ) ); | 576 | connect( mFilterView, SIGNAL( editFilters() ), SLOT( editFilters() ) ); |
577 | connect( mCalendar, SIGNAL( addAlarm(const QDateTime &, const QString & ) ), SLOT( addAlarm(const QDateTime &, const QString & ) ) ); | 577 | connect( mCalendar, SIGNAL( addAlarm(const QDateTime &, const QString & ) ), SLOT( addAlarm(const QDateTime &, const QString & ) ) ); |
578 | connect( mCalendar, SIGNAL( removeAlarm(const QDateTime &, const QString & ) ), SLOT( removeAlarm(const QDateTime &, const QString & ) ) ); | 578 | connect( mCalendar, SIGNAL( removeAlarm(const QDateTime &, const QString & ) ), SLOT( removeAlarm(const QDateTime &, const QString & ) ) ); |
579 | 579 | ||
580 | 580 | ||
581 | 581 | ||
582 | 582 | ||
583 | 583 | ||
584 | connect(QApplication::clipboard(),SIGNAL(dataChanged()), | 584 | connect(QApplication::clipboard(),SIGNAL(dataChanged()), |
585 | SLOT(checkClipboard())); | 585 | SLOT(checkClipboard())); |
586 | connect( mTodoList,SIGNAL( incidenceSelected( Incidence * ) ), | 586 | connect( mTodoList,SIGNAL( incidenceSelected( Incidence * ) ), |
587 | SLOT( processTodoListSelection( Incidence * ) ) ); | 587 | SLOT( processTodoListSelection( Incidence * ) ) ); |
588 | connect(mTodoList,SIGNAL(isModified(bool)),SLOT(setModified(bool))); | 588 | connect(mTodoList,SIGNAL(isModified(bool)),SLOT(setModified(bool))); |
589 | 589 | ||
590 | // kdDebug() << "CalendarView::CalendarView() done" << endl; | 590 | // kdDebug() << "CalendarView::CalendarView() done" << endl; |
591 | 591 | ||
592 | mDateFrame = new QVBox(0,0,WType_Popup); | 592 | mDateFrame = new QVBox(0,0,WType_Popup); |
593 | //mDateFrame->setFrameStyle(QFrame::PopupPanel | QFrame::Raised); | 593 | //mDateFrame->setFrameStyle(QFrame::PopupPanel | QFrame::Raised); |
594 | mDateFrame->setFrameStyle( QFrame::WinPanel |QFrame::Raised ); | 594 | mDateFrame->setFrameStyle( QFrame::WinPanel |QFrame::Raised ); |
595 | mDateFrame->setLineWidth(3); | 595 | mDateFrame->setLineWidth(3); |
596 | mDateFrame->hide(); | 596 | mDateFrame->hide(); |
597 | mDateFrame->setCaption( i18n( "Pick a date to display")); | 597 | mDateFrame->setCaption( i18n( "Pick a date to display")); |
598 | mDatePicker = new KDatePicker ( mDateFrame , QDate::currentDate() ); | 598 | mDatePicker = new KDatePicker ( mDateFrame , QDate::currentDate() ); |
599 | 599 | ||
600 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),SLOT(slotSelectPickerDate(QDate))); | 600 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),SLOT(slotSelectPickerDate(QDate))); |
601 | 601 | ||
602 | mEventEditor = mDialogManager->getEventEditor(); | 602 | mEventEditor = mDialogManager->getEventEditor(); |
603 | mTodoEditor = mDialogManager->getTodoEditor(); | 603 | mTodoEditor = mDialogManager->getTodoEditor(); |
604 | 604 | ||
605 | mFlagEditDescription = false; | 605 | mFlagEditDescription = false; |
606 | 606 | ||
607 | mSuspendTimer = new QTimer( this ); | 607 | mSuspendTimer = new QTimer( this ); |
608 | mAlarmTimer = new QTimer( this ); | 608 | mAlarmTimer = new QTimer( this ); |
609 | mRecheckAlarmTimer = new QTimer( this ); | 609 | mRecheckAlarmTimer = new QTimer( this ); |
610 | connect( mRecheckAlarmTimer, SIGNAL( timeout () ), SLOT( recheckTimerAlarm() ) ); | 610 | connect( mRecheckAlarmTimer, SIGNAL( timeout () ), SLOT( recheckTimerAlarm() ) ); |
611 | connect( mSuspendTimer, SIGNAL( timeout () ), SLOT( suspendAlarm() ) ); | 611 | connect( mSuspendTimer, SIGNAL( timeout () ), SLOT( suspendAlarm() ) ); |
612 | connect( mAlarmTimer, SIGNAL( timeout () ), SLOT( timerAlarm() ) ); | 612 | connect( mAlarmTimer, SIGNAL( timeout () ), SLOT( timerAlarm() ) ); |
613 | mAlarmDialog = new AlarmDialog( this ); | 613 | mAlarmDialog = new AlarmDialog( this ); |
614 | connect( mAlarmDialog, SIGNAL( addAlarm(const QDateTime &, const QString & ) ), SLOT( addSuspendAlarm(const QDateTime &, const QString & ) ) ); | 614 | connect( mAlarmDialog, SIGNAL( addAlarm(const QDateTime &, const QString & ) ), SLOT( addSuspendAlarm(const QDateTime &, const QString & ) ) ); |
615 | mAlarmDialog->setServerNotification( false ); | 615 | mAlarmDialog->setServerNotification( false ); |
616 | mAlarmDialog->setSuspendTime( KOPrefs::instance()->mAlarmSuspendTime ); | 616 | mAlarmDialog->setSuspendTime( KOPrefs::instance()->mAlarmSuspendTime ); |
617 | 617 | ||
618 | 618 | ||
619 | #ifndef DESKTOP_VERSION | 619 | #ifndef DESKTOP_VERSION |
620 | //US listen for arriving address resultsets | 620 | //US listen for arriving address resultsets |
621 | connect(ExternalAppHandler::instance(), SIGNAL(receivedBirthdayListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&)), | 621 | connect(ExternalAppHandler::instance(), SIGNAL(receivedBirthdayListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&)), |
622 | this, SLOT(insertBirthdays(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&))); | 622 | this, SLOT(insertBirthdays(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&))); |
623 | #endif | 623 | #endif |
624 | mDateNavigator->setCalendar( mCalendar ); | 624 | mDateNavigator->setCalendar( mCalendar ); |
625 | } | 625 | } |
626 | 626 | ||
627 | 627 | ||
628 | CalendarView::~CalendarView() | 628 | CalendarView::~CalendarView() |
629 | { | 629 | { |
630 | // kdDebug() << "~CalendarView()" << endl; | 630 | // kdDebug() << "~CalendarView()" << endl; |
631 | //qDebug("CalendarView::~CalendarView() "); | 631 | //qDebug("CalendarView::~CalendarView() "); |
632 | delete mDialogManager; | 632 | delete mDialogManager; |
633 | delete mViewManager; | 633 | delete mViewManager; |
634 | delete mStorage; | 634 | delete mStorage; |
635 | delete mDateFrame ; | 635 | delete mDateFrame ; |
636 | delete beamDialog; | 636 | delete beamDialog; |
637 | delete mEventViewerDialog; | 637 | delete mEventViewerDialog; |
638 | //kdDebug() << "~CalendarView() done" << endl; | 638 | //kdDebug() << "~CalendarView() done" << endl; |
639 | } | 639 | } |
640 | void CalendarView::checkAlarms() | 640 | void CalendarView::checkAlarms() |
641 | { | 641 | { |
642 | KConfig *config = KOGlobals::config(); | 642 | KConfig *config = KOGlobals::config(); |
643 | config->setGroup( "AppRun" ); | 643 | config->setGroup( "AppRun" ); |
644 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); | 644 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); |
645 | int daysto = dt.daysTo( QDate::currentDate() ); | ||
646 | int days = config->readNumEntry( "LatestProgramStopDays" , daysto); | ||
647 | dt = dt.addDays( days ); | ||
645 | int secto = dt.secsTo( QDateTime::currentDateTime() ); | 648 | int secto = dt.secsTo( QDateTime::currentDateTime() ); |
646 | int secs = config->readNumEntry( "LatestProgramStop" , secto) - 30; | 649 | int secs = config->readNumEntry( "LatestProgramStopSecs" , secto) - 30; |
647 | qDebug("KO: Reading program stop %d ", secs); | 650 | //qDebug("KO: Reading program stop %d ", secs); |
648 | //secs -= ( 3600 * 24*3 ); // debug only | 651 | //secs -= ( 3600 * 24*3 ); // debug only |
649 | QDateTime latest = dt.addSecs ( secs ); | 652 | QDateTime latest = dt.addSecs ( secs ); |
650 | qDebug("KO: Last termination on %s ", latest.toString().latin1()); | 653 | qDebug("KO: Last termination on %s ", latest.toString().latin1()); |
651 | qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() ); | 654 | //qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() ); |
652 | QPtrList<Incidence> el = mCalendar->rawIncidences(); | 655 | QPtrList<Incidence> el = mCalendar->rawIncidences(); |
653 | QPtrList<Incidence> al; | 656 | QPtrList<Incidence> al; |
654 | Incidence* inL = el.first(); | 657 | Incidence* inL = el.first(); |
655 | QDateTime cur = QDateTime::currentDateTime().addSecs(-59); | 658 | QDateTime cur = QDateTime::currentDateTime().addSecs(-59); |
656 | qDebug("KO: Checking alarm until %s ", cur.toString().latin1()); | 659 | qDebug("KO: Checking alarm until %s ", cur.toString().latin1()); |
657 | while ( inL ) { | 660 | while ( inL ) { |
658 | bool ok = false; | 661 | bool ok = false; |
659 | int offset = 0; | 662 | int offset = 0; |
660 | QDateTime next = inL->getNextAlarmDateTime(& ok, &offset, latest ) ; | 663 | QDateTime next = inL->getNextAlarmDateTime(& ok, &offset, latest ) ; |
661 | if ( ok ) { | 664 | if ( ok ) { |
662 | //qDebug("OK %s",next.toString().latin1()); | 665 | //qDebug("OK %s",next.toString().latin1()); |
663 | if ( next < cur ) { | 666 | if ( next < cur ) { |
664 | al.append( inL ); | 667 | al.append( inL ); |
665 | //qDebug("found missed alarm: %s ", inL->summary().latin1() ); | 668 | //qDebug("found missed alarm: %s ", inL->summary().latin1() ); |
666 | } | 669 | } |
667 | } | 670 | } |
668 | inL = el.next(); | 671 | inL = el.next(); |
669 | } | 672 | } |
670 | if ( al.count() ) { | 673 | if ( al.count() ) { |
671 | QDialog* dia = new QDialog( this, "huhu", false, WDestructiveClose | WStyle_StaysOnTop ); | 674 | QDialog* dia = new QDialog( this, "huhu", false, WDestructiveClose | WStyle_StaysOnTop ); |
672 | dia->setCaption( i18n("KO/Pi: Missing alarms!") ); | 675 | dia->setCaption( i18n("KO/Pi: Missing alarms!") ); |
673 | QVBoxLayout* lay = new QVBoxLayout( dia ); | 676 | QVBoxLayout* lay = new QVBoxLayout( dia ); |
674 | lay->setSpacing( 0 ); | 677 | lay->setSpacing( 0 ); |
675 | lay->setMargin( 0 ); | 678 | lay->setMargin( 0 ); |
676 | MissedAlarmTextBrowser* matb = new MissedAlarmTextBrowser ( dia, al, latest ); | 679 | MissedAlarmTextBrowser* matb = new MissedAlarmTextBrowser ( dia, al, latest ); |
677 | connect( matb, SIGNAL( showIncidence( QString ) ),SLOT( showIncidence( QString ) )); | 680 | connect( matb, SIGNAL( showIncidence( QString ) ),SLOT( showIncidence( QString ) )); |
678 | lay->addWidget( matb ); | 681 | lay->addWidget( matb ); |
679 | if ( QApplication::desktop()->width() == 480 || QApplication::desktop()->width() == 640 ) { | 682 | if ( QApplication::desktop()->width() == 480 || QApplication::desktop()->width() == 640 ) { |
680 | int wid = 210; | 683 | int wid = 210; |
681 | int x = QApplication::desktop()->width() - wid - 7; | 684 | int x = QApplication::desktop()->width() - wid - 7; |
682 | int y = QApplication::desktop()->height() - wid - 70; | 685 | int y = QApplication::desktop()->height() - wid - 70; |
683 | dia->setGeometry ( x,y,wid,wid); | 686 | dia->setGeometry ( x,y,wid,wid); |
684 | } else { | 687 | } else { |
685 | int si = 220; | 688 | int si = 220; |
686 | if ( QApplication::desktop()->width() > 470 ) | 689 | if ( QApplication::desktop()->width() > 470 ) |
687 | si = 400; | 690 | si = 400; |
688 | dia->resize(si,si/2); | 691 | dia->resize(si,si/2); |
689 | } | 692 | } |
690 | dia->setBackgroundColor( QColor( 255, 255, 255 ) ); | 693 | dia->setBackgroundColor( QColor( 255, 255, 255 ) ); |
691 | dia->show(); | 694 | dia->show(); |
692 | 695 | ||
693 | } | 696 | } |
694 | } | 697 | } |
695 | void CalendarView::showDay( QDate d ) | 698 | void CalendarView::showDay( QDate d ) |
696 | { | 699 | { |
697 | dateNavigator()->blockSignals( true ); | 700 | dateNavigator()->blockSignals( true ); |
698 | dateNavigator()->selectDate( d ); | 701 | dateNavigator()->selectDate( d ); |
699 | dateNavigator()->blockSignals( false ); | 702 | dateNavigator()->blockSignals( false ); |
700 | mViewManager->showDayView(); | 703 | mViewManager->showDayView(); |
701 | //dateNavigator()->selectDate( d ); | 704 | //dateNavigator()->selectDate( d ); |
702 | } | 705 | } |
703 | void CalendarView::timerAlarm() | 706 | void CalendarView::timerAlarm() |
704 | { | 707 | { |
705 | //qDebug("CalendarView::timerAlarm() "); | 708 | //qDebug("CalendarView::timerAlarm() "); |
706 | computeAlarm(mAlarmNotification ); | 709 | computeAlarm(mAlarmNotification ); |
707 | } | 710 | } |
708 | 711 | ||
709 | void CalendarView::suspendAlarm() | 712 | void CalendarView::suspendAlarm() |
710 | { | 713 | { |
711 | //qDebug(" CalendarView::suspendAlarm() "); | 714 | //qDebug(" CalendarView::suspendAlarm() "); |
712 | computeAlarm(mSuspendAlarmNotification ); | 715 | computeAlarm(mSuspendAlarmNotification ); |
713 | 716 | ||
714 | } | 717 | } |
715 | 718 | ||
716 | void CalendarView::startAlarm( QString mess , QString filename) | 719 | void CalendarView::startAlarm( QString mess , QString filename) |
717 | { | 720 | { |
718 | 721 | ||
719 | topLevelWidget()->showNormal(); | 722 | topLevelWidget()->showNormal(); |
720 | topLevelWidget()->setActiveWindow(); | 723 | topLevelWidget()->setActiveWindow(); |
721 | topLevelWidget()->raise(); | 724 | topLevelWidget()->raise(); |
722 | 725 | ||
723 | mAlarmDialog->eventNotification( mess, KOPrefs::instance()->mAlarmPlayBeeps, filename, true,KOPrefs::instance()->mAlarmBeepInterval ,KOPrefs::instance()->mAlarmSuspendCount ); | 726 | mAlarmDialog->eventNotification( mess, KOPrefs::instance()->mAlarmPlayBeeps, filename, true,KOPrefs::instance()->mAlarmBeepInterval ,KOPrefs::instance()->mAlarmSuspendCount ); |
724 | QTimer::singleShot( 3000, this, SLOT( checkNextTimerAlarm() ) ); | 727 | QTimer::singleShot( 3000, this, SLOT( checkNextTimerAlarm() ) ); |
725 | 728 | ||
726 | } | 729 | } |
727 | 730 | ||
728 | void CalendarView::checkNextTimerAlarm() | 731 | void CalendarView::checkNextTimerAlarm() |
729 | { | 732 | { |
730 | mCalendar->checkAlarmForIncidence( 0, true ); | 733 | mCalendar->checkAlarmForIncidence( 0, true ); |
731 | } | 734 | } |
732 | 735 | ||
733 | void CalendarView::computeAlarm( QString msg ) | 736 | void CalendarView::computeAlarm( QString msg ) |
734 | { | 737 | { |
735 | 738 | ||
736 | QString mess = msg; | 739 | QString mess = msg; |
737 | QString mAlarmMessage = mess.mid( 9 ); | 740 | QString mAlarmMessage = mess.mid( 9 ); |
738 | QString filename = MainWindow::resourcePath(); | 741 | QString filename = MainWindow::resourcePath(); |
739 | filename += "koalarm.wav"; | 742 | filename += "koalarm.wav"; |
740 | QString tempfilename; | 743 | QString tempfilename; |
741 | if ( mess.left( 13 ) == "suspend_alarm") { | 744 | if ( mess.left( 13 ) == "suspend_alarm") { |
742 | bool error = false; | 745 | bool error = false; |
743 | int len = mess.mid( 13 ).find("+++"); | 746 | int len = mess.mid( 13 ).find("+++"); |
744 | if ( len < 2 ) | 747 | if ( len < 2 ) |
745 | error = true; | 748 | error = true; |
746 | else { | 749 | else { |
747 | tempfilename = mess.mid( 13, len ); | 750 | tempfilename = mess.mid( 13, len ); |
@@ -2065,202 +2068,220 @@ void CalendarView::readSettings() | |||
2065 | list = config->readListEntry("EditTodoLayout"); | 2068 | list = config->readListEntry("EditTodoLayout"); |
2066 | if ( ! list.isEmpty() ) { | 2069 | if ( ! list.isEmpty() ) { |
2067 | x = list[0].toInt(); | 2070 | x = list[0].toInt(); |
2068 | y = list[1].toInt(); | 2071 | y = list[1].toInt(); |
2069 | w = list[2].toInt(); | 2072 | w = list[2].toInt(); |
2070 | h = list[3].toInt(); | 2073 | h = list[3].toInt(); |
2071 | KApplication::testCoords( &x,&y,&w,&h ); | 2074 | KApplication::testCoords( &x,&y,&w,&h ); |
2072 | mTodoEditor->setGeometry(x,y,w,h); | 2075 | mTodoEditor->setGeometry(x,y,w,h); |
2073 | 2076 | ||
2074 | } | 2077 | } |
2075 | list = config->readListEntry("ViewerLayout"); | 2078 | list = config->readListEntry("ViewerLayout"); |
2076 | if ( ! list.isEmpty() ) { | 2079 | if ( ! list.isEmpty() ) { |
2077 | x = list[0].toInt(); | 2080 | x = list[0].toInt(); |
2078 | y = list[1].toInt(); | 2081 | y = list[1].toInt(); |
2079 | w = list[2].toInt(); | 2082 | w = list[2].toInt(); |
2080 | h = list[3].toInt(); | 2083 | h = list[3].toInt(); |
2081 | KApplication::testCoords( &x,&y,&w,&h ); | 2084 | KApplication::testCoords( &x,&y,&w,&h ); |
2082 | getEventViewerDialog()->setGeometry(x,y,w,h); | 2085 | getEventViewerDialog()->setGeometry(x,y,w,h); |
2083 | } | 2086 | } |
2084 | #endif | 2087 | #endif |
2085 | config->setGroup( "Views" ); | 2088 | config->setGroup( "Views" ); |
2086 | int dateCount = config->readNumEntry( "ShownDatesCount", 7 ); | 2089 | int dateCount = config->readNumEntry( "ShownDatesCount", 7 ); |
2087 | 2090 | ||
2088 | QValueList<int> sizes = config->readIntListEntry("Left Splitter Frame"); | 2091 | QValueList<int> sizes = config->readIntListEntry("Left Splitter Frame"); |
2089 | 2092 | ||
2090 | int resetval = 0; | 2093 | int resetval = 0; |
2091 | int maxVal = 0; | 2094 | int maxVal = 0; |
2092 | if (sizes.count() != 3) { | 2095 | if (sizes.count() != 3) { |
2093 | if ( KOPrefs::instance()->mVerticalScreen ) { | 2096 | if ( KOPrefs::instance()->mVerticalScreen ) { |
2094 | resetval = mDateNavigator->sizeHint().width()+2; | 2097 | resetval = mDateNavigator->sizeHint().width()+2; |
2095 | } else { | 2098 | } else { |
2096 | resetval = mDateNavigator->sizeHint().height()+2; | 2099 | resetval = mDateNavigator->sizeHint().height()+2; |
2097 | } | 2100 | } |
2098 | } | 2101 | } |
2099 | if ( resetval ) { | 2102 | if ( resetval ) { |
2100 | sizes.clear(); | 2103 | sizes.clear(); |
2101 | if ( KOPrefs::instance()->mVerticalScreen ) { | 2104 | if ( KOPrefs::instance()->mVerticalScreen ) { |
2102 | maxVal = QApplication::desktop()->width() -10; | 2105 | maxVal = QApplication::desktop()->width() -10; |
2103 | } else { | 2106 | } else { |
2104 | maxVal = QApplication::desktop()->height()-10; | 2107 | maxVal = QApplication::desktop()->height()-10; |
2105 | } | 2108 | } |
2106 | sizes << resetval; | 2109 | sizes << resetval; |
2107 | if ( maxVal < resetval + resetval) | 2110 | if ( maxVal < resetval + resetval) |
2108 | resetval = maxVal - resetval; | 2111 | resetval = maxVal - resetval; |
2109 | sizes << resetval; | 2112 | sizes << resetval; |
2110 | sizes << 100; | 2113 | sizes << 100; |
2111 | } | 2114 | } |
2112 | mLeftFrame->setSizes(sizes); | 2115 | mLeftFrame->setSizes(sizes); |
2113 | sizes = config->readIntListEntry("Main Splitter Frame"); | 2116 | sizes = config->readIntListEntry("Main Splitter Frame"); |
2114 | resetval = 0; | 2117 | resetval = 0; |
2115 | maxVal = 0; | 2118 | maxVal = 0; |
2116 | if (sizes.count() != 2) { | 2119 | if (sizes.count() != 2) { |
2117 | if ( !KOPrefs::instance()->mVerticalScreen ) { | 2120 | if ( !KOPrefs::instance()->mVerticalScreen ) { |
2118 | resetval = mDateNavigator->sizeHint().width()+2; | 2121 | resetval = mDateNavigator->sizeHint().width()+2; |
2119 | } else { | 2122 | } else { |
2120 | resetval = mDateNavigator->sizeHint().height()+2; | 2123 | resetval = mDateNavigator->sizeHint().height()+2; |
2121 | } | 2124 | } |
2122 | } | 2125 | } |
2123 | if ( resetval ) { | 2126 | if ( resetval ) { |
2124 | sizes.clear(); | 2127 | sizes.clear(); |
2125 | if ( !KOPrefs::instance()->mVerticalScreen ) { | 2128 | if ( !KOPrefs::instance()->mVerticalScreen ) { |
2126 | maxVal = QApplication::desktop()->width() -10; | 2129 | maxVal = QApplication::desktop()->width() -10; |
2127 | } else { | 2130 | } else { |
2128 | maxVal = QApplication::desktop()->height()-10; | 2131 | maxVal = QApplication::desktop()->height()-10; |
2129 | } | 2132 | } |
2130 | sizes << resetval; | 2133 | sizes << resetval; |
2131 | if ( maxVal < resetval + resetval) | 2134 | if ( maxVal < resetval + resetval) |
2132 | resetval = maxVal - resetval; | 2135 | resetval = maxVal - resetval; |
2133 | sizes << resetval; | 2136 | sizes << resetval; |
2134 | } | 2137 | } |
2135 | mMainFrame->setSizes(sizes); | 2138 | mMainFrame->setSizes(sizes); |
2136 | if ( dateCount == 5 ) mNavigator->selectWorkWeek(); | 2139 | if ( dateCount == 5 ) mNavigator->selectWorkWeek(); |
2137 | else if ( dateCount == 7 ) mNavigator->selectWeek(); | 2140 | else if ( dateCount == 7 ) mNavigator->selectWeek(); |
2138 | else mNavigator->selectDates( dateCount ); | 2141 | else mNavigator->selectDates( dateCount ); |
2139 | // mViewManager->readSettings( config ); | 2142 | // mViewManager->readSettings( config ); |
2140 | updateConfig(); | 2143 | updateConfig(); |
2141 | globalFlagBlockAgenda = 2; | 2144 | globalFlagBlockAgenda = 2; |
2142 | mViewManager->readSettings( config ); | 2145 | mViewManager->readSettings( config ); |
2143 | QTimer::singleShot( 1, mDateNavigator, SLOT ( setResizeEnabled() ) ); | 2146 | QTimer::singleShot( 1, mDateNavigator, SLOT ( setResizeEnabled() ) ); |
2144 | } | 2147 | } |
2145 | 2148 | ||
2146 | 2149 | ||
2147 | void CalendarView::writeSettings() | 2150 | void CalendarView::writeSettings() |
2148 | { | 2151 | { |
2149 | // kdDebug() << "CalendarView::writeSettings" << endl; | 2152 | // kdDebug() << "CalendarView::writeSettings" << endl; |
2150 | 2153 | ||
2151 | KConfig *config = KOGlobals::config(); | 2154 | KConfig *config = KOGlobals::config(); |
2152 | 2155 | ||
2153 | mViewManager->writeSettings( config ); | 2156 | mViewManager->writeSettings( config ); |
2154 | mTodoList->saveLayout(config,QString("Todo Layout")); | 2157 | mTodoList->saveLayout(config,QString("Todo Layout")); |
2155 | mDialogManager->writeSettings( config ); | 2158 | mDialogManager->writeSettings( config ); |
2156 | //KOPrefs::instance()->usrWriteConfig(); | 2159 | //KOPrefs::instance()->usrWriteConfig(); |
2157 | KOPrefs::instance()->writeConfig(); | 2160 | KOPrefs::instance()->writeConfig(); |
2158 | 2161 | ||
2159 | writeFilterSettings(config); | 2162 | writeFilterSettings(config); |
2160 | config->setGroup( "AppRun" ); | 2163 | config->setGroup( "AppRun" ); |
2161 | QDateTime dt ( QDate (2005,3,1), QTime( 0,0,0 ) ); | 2164 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); |
2165 | int days = dt.daysTo( QDate::currentDate() ); | ||
2166 | dt = dt.addDays( days ); | ||
2162 | int secs = dt.secsTo( QDateTime::currentDateTime() ); | 2167 | int secs = dt.secsTo( QDateTime::currentDateTime() ); |
2163 | config->writeEntry( "LatestProgramStop", secs ); | 2168 | config->writeEntry( "LatestProgramStopDays", days ); |
2164 | qDebug("KO: Writing stop time: %d ", secs); | 2169 | config->writeEntry( "LatestProgramStopSecs", secs ); |
2165 | qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() ); | 2170 | //qDebug("KO: Writing stop time: %d ", secs); |
2166 | QDateTime latest = dt.addSecs ( secs ); | 2171 | //qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() ); |
2167 | qDebug("KO: Test termination on %s ", latest.toString().latin1()); | 2172 | //QDateTime latest = dt.addSecs ( secs ); |
2173 | //qDebug("KO: Termination on %s ", latest.toString().latin1()); | ||
2168 | config->setGroup( "Views" ); | 2174 | config->setGroup( "Views" ); |
2169 | config->writeEntry( "ShownDatesCount", mNavigator->selectedDates().count() ); | 2175 | config->writeEntry( "ShownDatesCount", mNavigator->selectedDates().count() ); |
2170 | 2176 | ||
2177 | #if 0 | ||
2178 | qDebug("********************* "); | ||
2179 | qDebug("Testcode secsto "); | ||
2180 | QDateTime dt_nodaylight ( QDate (2005,3,26), QTime( 0,0,0 ) ); | ||
2181 | QDateTime dt_daylight ( QDate (2005,3,29), QTime( 0,0,0 ) ); | ||
2182 | int secsto = dt_nodaylight.secsTo( dt_daylight ); | ||
2183 | QDateTime dt_daylight_wrong = dt_nodaylight.addSecs( secsto ); | ||
2184 | qDebug("dt nodaylight %s ",dt_nodaylight.toString().latin1() ); | ||
2185 | qDebug("dt daylight %s ",dt_daylight.toString().latin1() ); | ||
2186 | qDebug("dt daylight_wrong %s ",dt_daylight_wrong.toString().latin1() ); | ||
2187 | qDebug("Computed secsTo %d . in minutes: %d . in hours: %d ", secsto, secsto/60, secsto/3600); | ||
2188 | qDebug("********************* testcode end"); | ||
2189 | |||
2190 | #endif | ||
2191 | |||
2171 | QValueList<int> listINT = mLeftFrame->sizes(); | 2192 | QValueList<int> listINT = mLeftFrame->sizes(); |
2172 | config->writeEntry("Left Splitter Frame",listINT); | 2193 | config->writeEntry("Left Splitter Frame",listINT); |
2173 | QValueList<int> listINT2 = mMainFrame->sizes(); | 2194 | QValueList<int> listINT2 = mMainFrame->sizes(); |
2174 | config->writeEntry("Main Splitter Frame",listINT2); | 2195 | config->writeEntry("Main Splitter Frame",listINT2); |
2175 | #ifdef DESKTOP_VERSION | 2196 | #ifdef DESKTOP_VERSION |
2176 | config->setGroup("WidgetLayout"); | 2197 | config->setGroup("WidgetLayout"); |
2177 | QStringList list ;//= config->readListEntry("MainLayout"); | 2198 | QStringList list ;//= config->readListEntry("MainLayout"); |
2178 | int x,y,w,h; | 2199 | int x,y,w,h; |
2179 | QWidget* wid; | 2200 | QWidget* wid; |
2180 | wid = topLevelWidget(); | 2201 | wid = topLevelWidget(); |
2181 | x = wid->geometry().x(); | 2202 | x = wid->geometry().x(); |
2182 | y = wid->geometry().y(); | 2203 | y = wid->geometry().y(); |
2183 | w = wid->width(); | 2204 | w = wid->width(); |
2184 | h = wid->height(); | 2205 | h = wid->height(); |
2185 | list.clear(); | 2206 | list.clear(); |
2186 | list << QString::number( x ); | 2207 | list << QString::number( x ); |
2187 | list << QString::number( y ); | 2208 | list << QString::number( y ); |
2188 | list << QString::number( w ); | 2209 | list << QString::number( w ); |
2189 | list << QString::number( h ); | 2210 | list << QString::number( h ); |
2190 | config->writeEntry("MainLayout",list ); | 2211 | config->writeEntry("MainLayout",list ); |
2191 | 2212 | ||
2192 | wid = mEventEditor; | 2213 | wid = mEventEditor; |
2193 | x = wid->geometry().x(); | 2214 | x = wid->geometry().x(); |
2194 | y = wid->geometry().y(); | 2215 | y = wid->geometry().y(); |
2195 | w = wid->width(); | 2216 | w = wid->width(); |
2196 | h = wid->height(); | 2217 | h = wid->height(); |
2197 | list.clear(); | 2218 | list.clear(); |
2198 | list << QString::number( x ); | 2219 | list << QString::number( x ); |
2199 | list << QString::number( y ); | 2220 | list << QString::number( y ); |
2200 | list << QString::number( w ); | 2221 | list << QString::number( w ); |
2201 | list << QString::number( h ); | 2222 | list << QString::number( h ); |
2202 | config->writeEntry("EditEventLayout",list ); | 2223 | config->writeEntry("EditEventLayout",list ); |
2203 | 2224 | ||
2204 | wid = mTodoEditor; | 2225 | wid = mTodoEditor; |
2205 | x = wid->geometry().x(); | 2226 | x = wid->geometry().x(); |
2206 | y = wid->geometry().y(); | 2227 | y = wid->geometry().y(); |
2207 | w = wid->width(); | 2228 | w = wid->width(); |
2208 | h = wid->height(); | 2229 | h = wid->height(); |
2209 | list.clear(); | 2230 | list.clear(); |
2210 | list << QString::number( x ); | 2231 | list << QString::number( x ); |
2211 | list << QString::number( y ); | 2232 | list << QString::number( y ); |
2212 | list << QString::number( w ); | 2233 | list << QString::number( w ); |
2213 | list << QString::number( h ); | 2234 | list << QString::number( h ); |
2214 | config->writeEntry("EditTodoLayout",list ); | 2235 | config->writeEntry("EditTodoLayout",list ); |
2215 | wid = getEventViewerDialog(); | 2236 | wid = getEventViewerDialog(); |
2216 | x = wid->geometry().x(); | 2237 | x = wid->geometry().x(); |
2217 | y = wid->geometry().y(); | 2238 | y = wid->geometry().y(); |
2218 | w = wid->width(); | 2239 | w = wid->width(); |
2219 | h = wid->height(); | 2240 | h = wid->height(); |
2220 | list.clear(); | 2241 | list.clear(); |
2221 | list << QString::number( x ); | 2242 | list << QString::number( x ); |
2222 | list << QString::number( y ); | 2243 | list << QString::number( y ); |
2223 | list << QString::number( w ); | 2244 | list << QString::number( w ); |
2224 | list << QString::number( h ); | 2245 | list << QString::number( h ); |
2225 | config->writeEntry("ViewerLayout",list ); | 2246 | config->writeEntry("ViewerLayout",list ); |
2226 | wid = mDialogManager->getSearchDialog(); | 2247 | wid = mDialogManager->getSearchDialog(); |
2227 | if ( wid ) { | 2248 | if ( wid ) { |
2228 | x = wid->geometry().x(); | 2249 | x = wid->geometry().x(); |
2229 | y = wid->geometry().y(); | 2250 | y = wid->geometry().y(); |
2230 | w = wid->width(); | 2251 | w = wid->width(); |
2231 | h = wid->height(); | 2252 | h = wid->height(); |
2232 | list.clear(); | 2253 | list.clear(); |
2233 | list << QString::number( x ); | 2254 | list << QString::number( x ); |
2234 | list << QString::number( y ); | 2255 | list << QString::number( y ); |
2235 | list << QString::number( w ); | 2256 | list << QString::number( w ); |
2236 | list << QString::number( h ); | 2257 | list << QString::number( h ); |
2237 | config->writeEntry("SearchLayout",list ); | 2258 | config->writeEntry("SearchLayout",list ); |
2238 | } | 2259 | } |
2239 | #endif | 2260 | #endif |
2240 | 2261 | ||
2241 | 2262 | ||
2242 | config->sync(); | 2263 | config->sync(); |
2243 | } | 2264 | } |
2244 | 2265 | ||
2245 | void CalendarView::readFilterSettings(KConfig *config) | 2266 | void CalendarView::readFilterSettings(KConfig *config) |
2246 | { | 2267 | { |
2247 | // kdDebug() << "CalendarView::readFilterSettings()" << endl; | 2268 | // kdDebug() << "CalendarView::readFilterSettings()" << endl; |
2248 | 2269 | ||
2249 | mFilters.clear(); | 2270 | mFilters.clear(); |
2250 | 2271 | ||
2251 | config->setGroup("General"); | 2272 | config->setGroup("General"); |
2252 | QStringList filterList = config->readListEntry("CalendarFilters"); | 2273 | QStringList filterList = config->readListEntry("CalendarFilters"); |
2253 | 2274 | ||
2254 | QStringList::ConstIterator it = filterList.begin(); | 2275 | QStringList::ConstIterator it = filterList.begin(); |
2255 | QStringList::ConstIterator end = filterList.end(); | 2276 | QStringList::ConstIterator end = filterList.end(); |
2256 | while(it != end) { | 2277 | while(it != end) { |
2257 | // kdDebug() << " filter: " << (*it) << endl; | 2278 | // kdDebug() << " filter: " << (*it) << endl; |
2258 | 2279 | ||
2259 | CalFilter *filter; | 2280 | CalFilter *filter; |
2260 | filter = new CalFilter(*it); | 2281 | filter = new CalFilter(*it); |
2261 | config->setGroup("Filter_" + (*it).utf8()); | 2282 | config->setGroup("Filter_" + (*it).utf8()); |
2262 | //qDebug("readFilterSettings %d ",config->readNumEntry("Criteria",0) ); | 2283 | //qDebug("readFilterSettings %d ",config->readNumEntry("Criteria",0) ); |
2263 | filter->setCriteria(config->readNumEntry("Criteria",0)); | 2284 | filter->setCriteria(config->readNumEntry("Criteria",0)); |
2264 | filter->setCategoryList(config->readListEntry("CategoryList")); | 2285 | filter->setCategoryList(config->readListEntry("CategoryList")); |
2265 | mFilters.append(filter); | 2286 | mFilters.append(filter); |
2266 | 2287 | ||
diff --git a/microkde/kfiledialog.cpp b/microkde/kfiledialog.cpp index c64f325..383e711 100644 --- a/microkde/kfiledialog.cpp +++ b/microkde/kfiledialog.cpp | |||
@@ -1,88 +1,88 @@ | |||
1 | #include <kfiledialog.h> | 1 | #include <kfiledialog.h> |
2 | #include <qdialog.h> | 2 | #include <qdialog.h> |
3 | #include <qlayout.h> | 3 | #include <qlayout.h> |
4 | #include <qdir.h> | 4 | #include <qdir.h> |
5 | #include <qfileinfo.h> | 5 | #include <qfileinfo.h> |
6 | #include <qapplication.h> | 6 | #include <qapplication.h> |
7 | 7 | ||
8 | #ifndef DESKTOP_VERSION | 8 | #ifndef DESKTOP_VERSION |
9 | //US orig#include <ofileselector.h> | 9 | //US orig#include <ofileselector.h> |
10 | #include <ofileselector_p.h> | 10 | #include <ofileselector_p.h> |
11 | QString KFileDialog::getSaveFileName( const QString & fn, | 11 | QString KFileDialog::getSaveFileName( const QString & fn, |
12 | const QString & cap , QWidget * par ) | 12 | const QString & cap , QWidget * par ) |
13 | { | 13 | { |
14 | QString retfile = ""; | 14 | QString retfile = ""; |
15 | QDialog dia ( par, "input-dialog", true ); | 15 | QDialog dia ( par, "input-dialog", true ); |
16 | QVBoxLayout lay( &dia ); | 16 | QVBoxLayout lay( &dia ); |
17 | lay.setMargin(7); | 17 | lay.setMargin(7); |
18 | lay.setSpacing(7); | 18 | lay.setSpacing(7); |
19 | QString file = fn; | 19 | QString file = fn; |
20 | if ( file.isEmpty() ) | 20 | if ( file.isEmpty() ) |
21 | file = QDir::homeDirPath()+"/*"; | 21 | file = QDir::homeDirPath()+"/*"; |
22 | QFileInfo fi ( file ); | 22 | QFileInfo fi ( file ); |
23 | OFileSelector o ( &dia,OFileSelector::FileSelector, OFileSelector::Save, fi.dirPath(true), fi.fileName() ); | 23 | OFileSelector o ( &dia,OFileSelector::FileSelector, OFileSelector::Save, fi.dirPath(true), fi.fileName() ); |
24 | QObject::connect ( &o, SIGNAL( ok() ), &dia, SLOT ( accept () ) ); | 24 | QObject::connect ( &o, SIGNAL( ok() ), &dia, SLOT ( accept () ) ); |
25 | lay.addWidget( &o); | 25 | lay.addWidget( &o); |
26 | // o.setNewVisible( true ); | 26 | // o.setNewVisible( true ); |
27 | // o.setNameVisible( true ); | 27 | // o.setNameVisible( true ); |
28 | dia.showMaximized(); | 28 | dia.showMaximized(); |
29 | if ( cap.isEmpty() ) | 29 | if ( cap.isEmpty() ) |
30 | dia.setCaption( file ); | 30 | dia.setCaption( file ); |
31 | else | 31 | else |
32 | dia.setCaption( cap ); | 32 | dia.setCaption( cap ); |
33 | int res = dia.exec(); | 33 | int res = dia.exec(); |
34 | if ( res ) | 34 | if ( res ) |
35 | retfile = o.selectedName(); | 35 | retfile = o.selectedName(); |
36 | return retfile; | 36 | return retfile; |
37 | } | 37 | } |
38 | 38 | ||
39 | QString KFileDialog::getOpenFileName( const QString & fn, | 39 | QString KFileDialog::getOpenFileName( const QString & fn, |
40 | const QString & cap, QWidget * par ) | 40 | const QString & cap, QWidget * par ) |
41 | { | 41 | { |
42 | QString retfile = ""; | 42 | QString retfile = ""; |
43 | QDialog dia ( par, "input-dialog", true ); | 43 | QDialog dia ( par, "input-dialog", true ); |
44 | // QLineEdit lab ( &dia ); | 44 | // QLineEdit lab ( &dia ); |
45 | QVBoxLayout lay( &dia ); | 45 | QVBoxLayout lay( &dia ); |
46 | lay.setMargin(7); | 46 | lay.setMargin(7); |
47 | lay.setSpacing(7); | 47 | lay.setSpacing(7); |
48 | QString file = fn; | 48 | QString file = fn; |
49 | if ( file.isEmpty() ) | 49 | if ( file.isEmpty() ) |
50 | file = QDir::homeDirPath()+"/*";; | 50 | file = QDir::homeDirPath()+"/*";; |
51 | QFileInfo fi ( file ); | 51 | QFileInfo fi ( file ); |
52 | OFileSelector o ( &dia,OFileSelector::FileSelector, OFileSelector::Open, fi.dirPath(true), fi.fileName() ); | 52 | OFileSelector o ( &dia,OFileSelector::FileSelector, OFileSelector::Open, fi.dirPath(true), fi.fileName() ); |
53 | QObject::connect ( &o, SIGNAL( ok() ), &dia, SLOT ( accept () ) ); | 53 | QObject::connect ( &o, SIGNAL( ok() ), &dia, SLOT ( accept () ) ); |
54 | lay.addWidget( &o); | 54 | lay.addWidget( &o); |
55 | dia.showMaximized(); | 55 | dia.showMaximized(); |
56 | dia.setCaption( cap ); | 56 | dia.setCaption( cap ); |
57 | int res = dia.exec(); | 57 | int res = dia.exec(); |
58 | if ( res ) | 58 | if ( res ) |
59 | retfile = o.selectedName(); | 59 | retfile = o.selectedName(); |
60 | return retfile; | 60 | return retfile; |
61 | } | 61 | } |
62 | QString KFileDialog::getExistingDirectory( const QString & fn, | 62 | QString KFileDialog::getExistingDirectory( const QString & fn, |
63 | const QString & cap, QWidget * par ) | 63 | const QString & cap, QWidget * par ) |
64 | { | 64 | { |
65 | return KFileDialog::getSaveFileName( fn, cap, pr ); | 65 | return KFileDialog::getSaveFileName( fn, cap, par ); |
66 | } | 66 | } |
67 | #else | 67 | #else |
68 | 68 | ||
69 | #include <qfiledialog.h> | 69 | #include <qfiledialog.h> |
70 | 70 | ||
71 | QString KFileDialog::getSaveFileName( const QString & fn, | 71 | QString KFileDialog::getSaveFileName( const QString & fn, |
72 | const QString & cap , QWidget * par ) | 72 | const QString & cap , QWidget * par ) |
73 | { | 73 | { |
74 | return QFileDialog::getSaveFileName( fn, QString::null, par, "openfile", cap ); | 74 | return QFileDialog::getSaveFileName( fn, QString::null, par, "openfile", cap ); |
75 | } | 75 | } |
76 | QString KFileDialog::getOpenFileName( const QString & fn, | 76 | QString KFileDialog::getOpenFileName( const QString & fn, |
77 | const QString & cap, QWidget * par ) | 77 | const QString & cap, QWidget * par ) |
78 | { | 78 | { |
79 | 79 | ||
80 | return QFileDialog::getOpenFileName( fn, QString::null, par, "openfile", cap ); | 80 | return QFileDialog::getOpenFileName( fn, QString::null, par, "openfile", cap ); |
81 | } | 81 | } |
82 | QString KFileDialog::getExistingDirectory( const QString & fn, | 82 | QString KFileDialog::getExistingDirectory( const QString & fn, |
83 | const QString & cap, QWidget * par ) | 83 | const QString & cap, QWidget * par ) |
84 | { | 84 | { |
85 | return QFileDialog::getExistingDirectory( fn, par, "exidtingdir", cap ); | 85 | return QFileDialog::getExistingDirectory( fn, par, "exidtingdir", cap ); |
86 | } | 86 | } |
87 | #endif | 87 | #endif |
88 | 88 | ||