summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2004-08-30 07:47:56 (UTC)
committer zautrix <zautrix>2004-08-30 07:47:56 (UTC)
commitb36bcd92b643c87ee5e2bfc39076ea56abf4c7d2 (patch) (unidiff)
tree99223dd8edf0e00a4f060610ea0642f915cf4703 /korganizer
parent78f44f13835e3fa501997f485b505b193bd474f5 (diff)
downloadkdepimpi-b36bcd92b643c87ee5e2bfc39076ea56abf4c7d2.zip
kdepimpi-b36bcd92b643c87ee5e2bfc39076ea56abf4c7d2.tar.gz
kdepimpi-b36bcd92b643c87ee5e2bfc39076ea56abf4c7d2.tar.bz2
Changes in gammu connection
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp2
-rw-r--r--korganizer/korganizer.pro1
2 files changed, 1 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 7444bad..db07713 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -1622,513 +1622,513 @@ void CalendarView::readSettings()
1622 1622
1623 } 1623 }
1624 list = config->readListEntry("ViewerLayout"); 1624 list = config->readListEntry("ViewerLayout");
1625 if ( ! list.isEmpty() ) { 1625 if ( ! list.isEmpty() ) {
1626 x = list[0].toInt(); 1626 x = list[0].toInt();
1627 y = list[1].toInt(); 1627 y = list[1].toInt();
1628 w = list[2].toInt(); 1628 w = list[2].toInt();
1629 h = list[3].toInt(); 1629 h = list[3].toInt();
1630 getEventViewerDialog()->setGeometry(x,y,w,h); 1630 getEventViewerDialog()->setGeometry(x,y,w,h);
1631 } 1631 }
1632#endif 1632#endif
1633 1633
1634} 1634}
1635 1635
1636 1636
1637void CalendarView::writeSettings() 1637void CalendarView::writeSettings()
1638{ 1638{
1639 // kdDebug() << "CalendarView::writeSettings" << endl; 1639 // kdDebug() << "CalendarView::writeSettings" << endl;
1640 1640
1641 KConfig *config = KOGlobals::config(); 1641 KConfig *config = KOGlobals::config();
1642 1642
1643#ifndef KORG_NOSPLITTER 1643#ifndef KORG_NOSPLITTER
1644 config->setGroup("KOrganizer Geometry"); 1644 config->setGroup("KOrganizer Geometry");
1645 1645
1646 QValueList<int> list = mPanner->sizes(); 1646 QValueList<int> list = mPanner->sizes();
1647 config->writeEntry("Separator1",list); 1647 config->writeEntry("Separator1",list);
1648 1648
1649 list = mLeftSplitter->sizes(); 1649 list = mLeftSplitter->sizes();
1650 config->writeEntry("Separator2",list); 1650 config->writeEntry("Separator2",list);
1651#endif 1651#endif
1652 1652
1653 mViewManager->writeSettings( config ); 1653 mViewManager->writeSettings( config );
1654 mTodoList->saveLayout(config,QString("Todo Layout")); 1654 mTodoList->saveLayout(config,QString("Todo Layout"));
1655 mDialogManager->writeSettings( config ); 1655 mDialogManager->writeSettings( config );
1656 //KOPrefs::instance()->usrWriteConfig(); 1656 //KOPrefs::instance()->usrWriteConfig();
1657 KOPrefs::instance()->writeConfig(); 1657 KOPrefs::instance()->writeConfig();
1658 1658
1659 writeFilterSettings(config); 1659 writeFilterSettings(config);
1660 1660
1661 config->setGroup( "Views" ); 1661 config->setGroup( "Views" );
1662 config->writeEntry( "ShownDatesCount", mNavigator->selectedDates().count() ); 1662 config->writeEntry( "ShownDatesCount", mNavigator->selectedDates().count() );
1663 1663
1664#ifdef DESKTOP_VERSION 1664#ifdef DESKTOP_VERSION
1665 config->setGroup("WidgetLayout"); 1665 config->setGroup("WidgetLayout");
1666 QStringList list ;//= config->readListEntry("MainLayout"); 1666 QStringList list ;//= config->readListEntry("MainLayout");
1667 int x,y,w,h; 1667 int x,y,w,h;
1668 QWidget* wid; 1668 QWidget* wid;
1669 wid = topLevelWidget(); 1669 wid = topLevelWidget();
1670 x = wid->geometry().x(); 1670 x = wid->geometry().x();
1671 y = wid->geometry().y(); 1671 y = wid->geometry().y();
1672 w = wid->width(); 1672 w = wid->width();
1673 h = wid->height(); 1673 h = wid->height();
1674 list.clear(); 1674 list.clear();
1675 list << QString::number( x ); 1675 list << QString::number( x );
1676 list << QString::number( y ); 1676 list << QString::number( y );
1677 list << QString::number( w ); 1677 list << QString::number( w );
1678 list << QString::number( h ); 1678 list << QString::number( h );
1679 config->writeEntry("MainLayout",list ); 1679 config->writeEntry("MainLayout",list );
1680 1680
1681 wid = mEventEditor; 1681 wid = mEventEditor;
1682 x = wid->geometry().x(); 1682 x = wid->geometry().x();
1683 y = wid->geometry().y(); 1683 y = wid->geometry().y();
1684 w = wid->width(); 1684 w = wid->width();
1685 h = wid->height(); 1685 h = wid->height();
1686 list.clear(); 1686 list.clear();
1687 list << QString::number( x ); 1687 list << QString::number( x );
1688 list << QString::number( y ); 1688 list << QString::number( y );
1689 list << QString::number( w ); 1689 list << QString::number( w );
1690 list << QString::number( h ); 1690 list << QString::number( h );
1691 config->writeEntry("EditEventLayout",list ); 1691 config->writeEntry("EditEventLayout",list );
1692 1692
1693 wid = mTodoEditor; 1693 wid = mTodoEditor;
1694 x = wid->geometry().x(); 1694 x = wid->geometry().x();
1695 y = wid->geometry().y(); 1695 y = wid->geometry().y();
1696 w = wid->width(); 1696 w = wid->width();
1697 h = wid->height(); 1697 h = wid->height();
1698 list.clear(); 1698 list.clear();
1699 list << QString::number( x ); 1699 list << QString::number( x );
1700 list << QString::number( y ); 1700 list << QString::number( y );
1701 list << QString::number( w ); 1701 list << QString::number( w );
1702 list << QString::number( h ); 1702 list << QString::number( h );
1703 config->writeEntry("EditTodoLayout",list ); 1703 config->writeEntry("EditTodoLayout",list );
1704 wid = getEventViewerDialog(); 1704 wid = getEventViewerDialog();
1705 x = wid->geometry().x(); 1705 x = wid->geometry().x();
1706 y = wid->geometry().y(); 1706 y = wid->geometry().y();
1707 w = wid->width(); 1707 w = wid->width();
1708 h = wid->height(); 1708 h = wid->height();
1709 list.clear(); 1709 list.clear();
1710 list << QString::number( x ); 1710 list << QString::number( x );
1711 list << QString::number( y ); 1711 list << QString::number( y );
1712 list << QString::number( w ); 1712 list << QString::number( w );
1713 list << QString::number( h ); 1713 list << QString::number( h );
1714 config->writeEntry("ViewerLayout",list ); 1714 config->writeEntry("ViewerLayout",list );
1715 wid = mDialogManager->getSearchDialog(); 1715 wid = mDialogManager->getSearchDialog();
1716 if ( wid ) { 1716 if ( wid ) {
1717 x = wid->geometry().x(); 1717 x = wid->geometry().x();
1718 y = wid->geometry().y(); 1718 y = wid->geometry().y();
1719 w = wid->width(); 1719 w = wid->width();
1720 h = wid->height(); 1720 h = wid->height();
1721 list.clear(); 1721 list.clear();
1722 list << QString::number( x ); 1722 list << QString::number( x );
1723 list << QString::number( y ); 1723 list << QString::number( y );
1724 list << QString::number( w ); 1724 list << QString::number( w );
1725 list << QString::number( h ); 1725 list << QString::number( h );
1726 config->writeEntry("SearchLayout",list ); 1726 config->writeEntry("SearchLayout",list );
1727 } 1727 }
1728#endif 1728#endif
1729 1729
1730 1730
1731 config->sync(); 1731 config->sync();
1732} 1732}
1733 1733
1734void CalendarView::readFilterSettings(KConfig *config) 1734void CalendarView::readFilterSettings(KConfig *config)
1735{ 1735{
1736 // kdDebug() << "CalendarView::readFilterSettings()" << endl; 1736 // kdDebug() << "CalendarView::readFilterSettings()" << endl;
1737 1737
1738 mFilters.clear(); 1738 mFilters.clear();
1739 1739
1740 config->setGroup("General"); 1740 config->setGroup("General");
1741 QStringList filterList = config->readListEntry("CalendarFilters"); 1741 QStringList filterList = config->readListEntry("CalendarFilters");
1742 1742
1743 QStringList::ConstIterator it = filterList.begin(); 1743 QStringList::ConstIterator it = filterList.begin();
1744 QStringList::ConstIterator end = filterList.end(); 1744 QStringList::ConstIterator end = filterList.end();
1745 while(it != end) { 1745 while(it != end) {
1746 // kdDebug() << " filter: " << (*it) << endl; 1746 // kdDebug() << " filter: " << (*it) << endl;
1747 1747
1748 CalFilter *filter; 1748 CalFilter *filter;
1749 filter = new CalFilter(*it); 1749 filter = new CalFilter(*it);
1750 config->setGroup("Filter_" + (*it)); 1750 config->setGroup("Filter_" + (*it));
1751 //qDebug("readFilterSettings %d ",config->readNumEntry("Criteria",0) ); 1751 //qDebug("readFilterSettings %d ",config->readNumEntry("Criteria",0) );
1752 filter->setCriteria(config->readNumEntry("Criteria",0)); 1752 filter->setCriteria(config->readNumEntry("Criteria",0));
1753 filter->setCategoryList(config->readListEntry("CategoryList")); 1753 filter->setCategoryList(config->readListEntry("CategoryList"));
1754 mFilters.append(filter); 1754 mFilters.append(filter);
1755 1755
1756 ++it; 1756 ++it;
1757 } 1757 }
1758 1758
1759 if (mFilters.count() == 0) { 1759 if (mFilters.count() == 0) {
1760 CalFilter *filter = new CalFilter(i18n("Default")); 1760 CalFilter *filter = new CalFilter(i18n("Default"));
1761 mFilters.append(filter); 1761 mFilters.append(filter);
1762 } 1762 }
1763 mFilterView->updateFilters(); 1763 mFilterView->updateFilters();
1764 config->setGroup("FilterView"); 1764 config->setGroup("FilterView");
1765 1765
1766 mFilterView->blockSignals(true); 1766 mFilterView->blockSignals(true);
1767 mFilterView->setFiltersEnabled(config->readBoolEntry("FilterEnabled")); 1767 mFilterView->setFiltersEnabled(config->readBoolEntry("FilterEnabled"));
1768 mFilterView->setSelectedFilter(config->readEntry("Current Filter")); 1768 mFilterView->setSelectedFilter(config->readEntry("Current Filter"));
1769 mFilterView->blockSignals(false); 1769 mFilterView->blockSignals(false);
1770 // We do it manually to avoid it being done twice by the above calls 1770 // We do it manually to avoid it being done twice by the above calls
1771 updateFilter(); 1771 updateFilter();
1772} 1772}
1773 1773
1774void CalendarView::writeFilterSettings(KConfig *config) 1774void CalendarView::writeFilterSettings(KConfig *config)
1775{ 1775{
1776 // kdDebug() << "CalendarView::writeFilterSettings()" << endl; 1776 // kdDebug() << "CalendarView::writeFilterSettings()" << endl;
1777 1777
1778 QStringList filterList; 1778 QStringList filterList;
1779 1779
1780 CalFilter *filter = mFilters.first(); 1780 CalFilter *filter = mFilters.first();
1781 while(filter) { 1781 while(filter) {
1782 // kdDebug() << " fn: " << filter->name() << endl; 1782 // kdDebug() << " fn: " << filter->name() << endl;
1783 filterList << filter->name(); 1783 filterList << filter->name();
1784 config->setGroup("Filter_" + filter->name()); 1784 config->setGroup("Filter_" + filter->name());
1785 config->writeEntry("Criteria",filter->criteria()); 1785 config->writeEntry("Criteria",filter->criteria());
1786 config->writeEntry("CategoryList",filter->categoryList()); 1786 config->writeEntry("CategoryList",filter->categoryList());
1787 filter = mFilters.next(); 1787 filter = mFilters.next();
1788 } 1788 }
1789 config->setGroup("General"); 1789 config->setGroup("General");
1790 config->writeEntry("CalendarFilters",filterList); 1790 config->writeEntry("CalendarFilters",filterList);
1791 1791
1792 config->setGroup("FilterView"); 1792 config->setGroup("FilterView");
1793 config->writeEntry("FilterEnabled",mFilterView->filtersEnabled()); 1793 config->writeEntry("FilterEnabled",mFilterView->filtersEnabled());
1794 config->writeEntry("Current Filter",mFilterView->selectedFilter()->name()); 1794 config->writeEntry("Current Filter",mFilterView->selectedFilter()->name());
1795} 1795}
1796 1796
1797 1797
1798void CalendarView::goToday() 1798void CalendarView::goToday()
1799{ 1799{
1800 mNavigator->selectToday(); 1800 mNavigator->selectToday();
1801} 1801}
1802 1802
1803void CalendarView::goNext() 1803void CalendarView::goNext()
1804{ 1804{
1805 mNavigator->selectNext(); 1805 mNavigator->selectNext();
1806} 1806}
1807 1807
1808void CalendarView::goPrevious() 1808void CalendarView::goPrevious()
1809{ 1809{
1810 mNavigator->selectPrevious(); 1810 mNavigator->selectPrevious();
1811} 1811}
1812void CalendarView::goNextMonth() 1812void CalendarView::goNextMonth()
1813{ 1813{
1814 mNavigator->selectNextMonth(); 1814 mNavigator->selectNextMonth();
1815} 1815}
1816 1816
1817void CalendarView::goPreviousMonth() 1817void CalendarView::goPreviousMonth()
1818{ 1818{
1819 mNavigator->selectPreviousMonth(); 1819 mNavigator->selectPreviousMonth();
1820} 1820}
1821void CalendarView::writeLocale() 1821void CalendarView::writeLocale()
1822{ 1822{
1823 KGlobal::locale()->setHore24Format( !KOPrefs::instance()->mPreferredTime ); 1823 KGlobal::locale()->setHore24Format( !KOPrefs::instance()->mPreferredTime );
1824 KGlobal::locale()->setWeekStartMonday( !KOPrefs::instance()->mWeekStartsOnSunday ); 1824 KGlobal::locale()->setWeekStartMonday( !KOPrefs::instance()->mWeekStartsOnSunday );
1825 KGlobal::locale()->setIntDateFormat( (KLocale::IntDateFormat)KOPrefs::instance()->mPreferredDate ); 1825 KGlobal::locale()->setIntDateFormat( (KLocale::IntDateFormat)KOPrefs::instance()->mPreferredDate );
1826 KGlobal::locale()->setLanguage( KOPrefs::instance()->mPreferredLanguage ); 1826 KGlobal::locale()->setLanguage( KOPrefs::instance()->mPreferredLanguage );
1827 QString dummy = KOPrefs::instance()->mUserDateFormatLong; 1827 QString dummy = KOPrefs::instance()->mUserDateFormatLong;
1828 KGlobal::locale()->setDateFormat(dummy.replace( QRegExp("K"), QString(",") )); 1828 KGlobal::locale()->setDateFormat(dummy.replace( QRegExp("K"), QString(",") ));
1829 dummy = KOPrefs::instance()->mUserDateFormatShort; 1829 dummy = KOPrefs::instance()->mUserDateFormatShort;
1830 KGlobal::locale()->setDateFormatShort(dummy.replace( QRegExp("K"), QString(",") )); 1830 KGlobal::locale()->setDateFormatShort(dummy.replace( QRegExp("K"), QString(",") ));
1831 KGlobal::locale()->setDaylightSaving( KOPrefs::instance()->mUseDaylightsaving, 1831 KGlobal::locale()->setDaylightSaving( KOPrefs::instance()->mUseDaylightsaving,
1832 KOPrefs::instance()->mDaylightsavingStart, 1832 KOPrefs::instance()->mDaylightsavingStart,
1833 KOPrefs::instance()->mDaylightsavingEnd ); 1833 KOPrefs::instance()->mDaylightsavingEnd );
1834 KGlobal::locale()->setTimezone( KOPrefs::instance()->mTimeZoneId ); 1834 KGlobal::locale()->setTimezone( KOPrefs::instance()->mTimeZoneId );
1835} 1835}
1836void CalendarView::updateConfig() 1836void CalendarView::updateConfig()
1837{ 1837{
1838 writeLocale(); 1838 writeLocale();
1839 if ( KOPrefs::instance()->mUseAppColors ) 1839 if ( KOPrefs::instance()->mUseAppColors )
1840 QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); 1840 QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true );
1841 emit configChanged(); 1841 emit configChanged();
1842 mTodoList->updateConfig(); 1842 mTodoList->updateConfig();
1843 // mDateNavigator->setFont ( KOPrefs::instance()->mDateNavigatorFont); 1843 // mDateNavigator->setFont ( KOPrefs::instance()->mDateNavigatorFont);
1844 mCalendar->setTimeZoneId(KOPrefs::instance()->mTimeZoneId); 1844 mCalendar->setTimeZoneId(KOPrefs::instance()->mTimeZoneId);
1845 // To make the "fill window" configurations work 1845 // To make the "fill window" configurations work
1846 //mViewManager->raiseCurrentView(); 1846 //mViewManager->raiseCurrentView();
1847} 1847}
1848 1848
1849 1849
1850void CalendarView::eventChanged(Event *event) 1850void CalendarView::eventChanged(Event *event)
1851{ 1851{
1852 changeEventDisplay(event,KOGlobals::EVENTEDITED); 1852 changeEventDisplay(event,KOGlobals::EVENTEDITED);
1853 //updateUnmanagedViews(); 1853 //updateUnmanagedViews();
1854} 1854}
1855 1855
1856void CalendarView::eventAdded(Event *event) 1856void CalendarView::eventAdded(Event *event)
1857{ 1857{
1858 changeEventDisplay(event,KOGlobals::EVENTADDED); 1858 changeEventDisplay(event,KOGlobals::EVENTADDED);
1859} 1859}
1860 1860
1861void CalendarView::eventToBeDeleted(Event *) 1861void CalendarView::eventToBeDeleted(Event *)
1862{ 1862{
1863 kdDebug() << "CalendarView::eventToBeDeleted(): to be implemented" << endl; 1863 kdDebug() << "CalendarView::eventToBeDeleted(): to be implemented" << endl;
1864} 1864}
1865 1865
1866void CalendarView::eventDeleted() 1866void CalendarView::eventDeleted()
1867{ 1867{
1868 changeEventDisplay(0,KOGlobals::EVENTDELETED); 1868 changeEventDisplay(0,KOGlobals::EVENTDELETED);
1869} 1869}
1870void CalendarView::changeTodoDisplay(Todo *which, int action) 1870void CalendarView::changeTodoDisplay(Todo *which, int action)
1871{ 1871{
1872 changeIncidenceDisplay((Incidence *)which, action); 1872 changeIncidenceDisplay((Incidence *)which, action);
1873 mDateNavigator->updateView(); 1873 mDateNavigator->updateView();
1874 //mDialogManager->updateSearchDialog(); 1874 //mDialogManager->updateSearchDialog();
1875 1875
1876 if (which) { 1876 if (which) {
1877 mViewManager->currentView()->updateView(); 1877 mViewManager->currentView()->updateView();
1878 mTodoList->updateView(); 1878 //mTodoList->updateView();
1879 } 1879 }
1880 1880
1881} 1881}
1882 1882
1883void CalendarView::changeIncidenceDisplay(Incidence *which, int action) 1883void CalendarView::changeIncidenceDisplay(Incidence *which, int action)
1884{ 1884{
1885 updateUnmanagedViews(); 1885 updateUnmanagedViews();
1886 //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action ); 1886 //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action );
1887 if ( action == KOGlobals::EVENTDELETED ) { //delete 1887 if ( action == KOGlobals::EVENTDELETED ) { //delete
1888 mCalendar->checkAlarmForIncidence( 0, true ); 1888 mCalendar->checkAlarmForIncidence( 0, true );
1889 if ( mEventViewerDialog ) 1889 if ( mEventViewerDialog )
1890 mEventViewerDialog->hide(); 1890 mEventViewerDialog->hide();
1891 } 1891 }
1892 else 1892 else
1893 mCalendar->checkAlarmForIncidence( which , false ); 1893 mCalendar->checkAlarmForIncidence( which , false );
1894} 1894}
1895 1895
1896// most of the changeEventDisplays() right now just call the view's 1896// most of the changeEventDisplays() right now just call the view's
1897// total update mode, but they SHOULD be recoded to be more refresh-efficient. 1897// total update mode, but they SHOULD be recoded to be more refresh-efficient.
1898void CalendarView::changeEventDisplay(Event *which, int action) 1898void CalendarView::changeEventDisplay(Event *which, int action)
1899{ 1899{
1900 // kdDebug() << "CalendarView::changeEventDisplay" << endl; 1900 // kdDebug() << "CalendarView::changeEventDisplay" << endl;
1901 changeIncidenceDisplay((Incidence *)which, action); 1901 changeIncidenceDisplay((Incidence *)which, action);
1902 mDateNavigator->updateView(); 1902 mDateNavigator->updateView();
1903 //mDialogManager->updateSearchDialog(); 1903 //mDialogManager->updateSearchDialog();
1904 1904
1905 if (which) { 1905 if (which) {
1906 // If there is an event view visible update the display 1906 // If there is an event view visible update the display
1907 mViewManager->currentView()->changeEventDisplay(which,action); 1907 mViewManager->currentView()->changeEventDisplay(which,action);
1908 // TODO: check, if update needed 1908 // TODO: check, if update needed
1909 // if (which->getTodoStatus()) { 1909 // if (which->getTodoStatus()) {
1910 mTodoList->updateView(); 1910 mTodoList->updateView();
1911 // } 1911 // }
1912 } else { 1912 } else {
1913 mViewManager->currentView()->updateView(); 1913 mViewManager->currentView()->updateView();
1914 } 1914 }
1915} 1915}
1916 1916
1917 1917
1918void CalendarView::updateTodoViews() 1918void CalendarView::updateTodoViews()
1919{ 1919{
1920 1920
1921 mTodoList->updateView(); 1921 mTodoList->updateView();
1922 mViewManager->currentView()->updateView(); 1922 mViewManager->currentView()->updateView();
1923 1923
1924} 1924}
1925 1925
1926 1926
1927void CalendarView::updateView(const QDate &start, const QDate &end) 1927void CalendarView::updateView(const QDate &start, const QDate &end)
1928{ 1928{
1929 mTodoList->updateView(); 1929 mTodoList->updateView();
1930 mViewManager->updateView(start, end); 1930 mViewManager->updateView(start, end);
1931 //mDateNavigator->updateView(); 1931 //mDateNavigator->updateView();
1932} 1932}
1933 1933
1934void CalendarView::updateView() 1934void CalendarView::updateView()
1935{ 1935{
1936 DateList tmpList = mNavigator->selectedDates(); 1936 DateList tmpList = mNavigator->selectedDates();
1937 1937
1938 // We assume that the navigator only selects consecutive days. 1938 // We assume that the navigator only selects consecutive days.
1939 updateView( tmpList.first(), tmpList.last() ); 1939 updateView( tmpList.first(), tmpList.last() );
1940} 1940}
1941 1941
1942void CalendarView::updateUnmanagedViews() 1942void CalendarView::updateUnmanagedViews()
1943{ 1943{
1944 mDateNavigator->updateDayMatrix(); 1944 mDateNavigator->updateDayMatrix();
1945} 1945}
1946 1946
1947int CalendarView::msgItemDelete() 1947int CalendarView::msgItemDelete()
1948{ 1948{
1949 return KMessageBox::warningContinueCancel(this, 1949 return KMessageBox::warningContinueCancel(this,
1950 i18n("This item will be\npermanently deleted."), 1950 i18n("This item will be\npermanently deleted."),
1951 i18n("KO/Pi Confirmation"),i18n("Delete")); 1951 i18n("KO/Pi Confirmation"),i18n("Delete"));
1952} 1952}
1953 1953
1954 1954
1955void CalendarView::edit_cut() 1955void CalendarView::edit_cut()
1956{ 1956{
1957 Event *anEvent=0; 1957 Event *anEvent=0;
1958 1958
1959 Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); 1959 Incidence *incidence = mViewManager->currentView()->selectedIncidences().first();
1960 1960
1961 if (mViewManager->currentView()->isEventView()) { 1961 if (mViewManager->currentView()->isEventView()) {
1962 if ( incidence && incidence->type() == "Event" ) { 1962 if ( incidence && incidence->type() == "Event" ) {
1963 anEvent = static_cast<Event *>(incidence); 1963 anEvent = static_cast<Event *>(incidence);
1964 } 1964 }
1965 } 1965 }
1966 1966
1967 if (!anEvent) { 1967 if (!anEvent) {
1968 KNotifyClient::beep(); 1968 KNotifyClient::beep();
1969 return; 1969 return;
1970 } 1970 }
1971 DndFactory factory( mCalendar ); 1971 DndFactory factory( mCalendar );
1972 factory.cutEvent(anEvent); 1972 factory.cutEvent(anEvent);
1973 changeEventDisplay(anEvent, KOGlobals::EVENTDELETED); 1973 changeEventDisplay(anEvent, KOGlobals::EVENTDELETED);
1974} 1974}
1975 1975
1976void CalendarView::edit_copy() 1976void CalendarView::edit_copy()
1977{ 1977{
1978 Event *anEvent=0; 1978 Event *anEvent=0;
1979 1979
1980 Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); 1980 Incidence *incidence = mViewManager->currentView()->selectedIncidences().first();
1981 1981
1982 if (mViewManager->currentView()->isEventView()) { 1982 if (mViewManager->currentView()->isEventView()) {
1983 if ( incidence && incidence->type() == "Event" ) { 1983 if ( incidence && incidence->type() == "Event" ) {
1984 anEvent = static_cast<Event *>(incidence); 1984 anEvent = static_cast<Event *>(incidence);
1985 } 1985 }
1986 } 1986 }
1987 1987
1988 if (!anEvent) { 1988 if (!anEvent) {
1989 KNotifyClient::beep(); 1989 KNotifyClient::beep();
1990 return; 1990 return;
1991 } 1991 }
1992 DndFactory factory( mCalendar ); 1992 DndFactory factory( mCalendar );
1993 factory.copyEvent(anEvent); 1993 factory.copyEvent(anEvent);
1994} 1994}
1995 1995
1996void CalendarView::edit_paste() 1996void CalendarView::edit_paste()
1997{ 1997{
1998 QDate date = mNavigator->selectedDates().first(); 1998 QDate date = mNavigator->selectedDates().first();
1999 1999
2000 DndFactory factory( mCalendar ); 2000 DndFactory factory( mCalendar );
2001 Event *pastedEvent = factory.pasteEvent( date ); 2001 Event *pastedEvent = factory.pasteEvent( date );
2002 2002
2003 changeEventDisplay( pastedEvent, KOGlobals::EVENTADDED ); 2003 changeEventDisplay( pastedEvent, KOGlobals::EVENTADDED );
2004} 2004}
2005 2005
2006void CalendarView::edit_options() 2006void CalendarView::edit_options()
2007{ 2007{
2008 mDialogManager->showOptionsDialog(); 2008 mDialogManager->showOptionsDialog();
2009 //writeSettings(); 2009 //writeSettings();
2010} 2010}
2011void CalendarView::edit_sync_options() 2011void CalendarView::edit_sync_options()
2012{ 2012{
2013 //mDialogManager->showSyncOptions(); 2013 //mDialogManager->showSyncOptions();
2014 //KOPrefs::instance()->mSyncAlgoPrefs 2014 //KOPrefs::instance()->mSyncAlgoPrefs
2015 QDialog dia( this, "dia", true ); 2015 QDialog dia( this, "dia", true );
2016 dia.setCaption( i18n("Device: " ) +mCurrentSyncDevice ); 2016 dia.setCaption( i18n("Device: " ) +mCurrentSyncDevice );
2017 QButtonGroup gr ( 1, Qt::Horizontal, i18n("Sync preferences"), &dia); 2017 QButtonGroup gr ( 1, Qt::Horizontal, i18n("Sync preferences"), &dia);
2018 QVBoxLayout lay ( &dia ); 2018 QVBoxLayout lay ( &dia );
2019 lay.setSpacing( 2 ); 2019 lay.setSpacing( 2 );
2020 lay.setMargin( 3 ); 2020 lay.setMargin( 3 );
2021 lay.addWidget(&gr); 2021 lay.addWidget(&gr);
2022 QRadioButton loc ( i18n("Take local entry on conflict"), &gr ); 2022 QRadioButton loc ( i18n("Take local entry on conflict"), &gr );
2023 QRadioButton rem ( i18n("Take remote entry on conflict"), &gr ); 2023 QRadioButton rem ( i18n("Take remote entry on conflict"), &gr );
2024 QRadioButton newest( i18n("Take newest entry on conflict"), &gr ); 2024 QRadioButton newest( i18n("Take newest entry on conflict"), &gr );
2025 QRadioButton ask( i18n("Ask for every entry on conflict"), &gr ); 2025 QRadioButton ask( i18n("Ask for every entry on conflict"), &gr );
2026 QRadioButton f_loc( i18n("Force: Take local entry always"), &gr ); 2026 QRadioButton f_loc( i18n("Force: Take local entry always"), &gr );
2027 QRadioButton f_rem( i18n("Force: Take remote entry always"), &gr ); 2027 QRadioButton f_rem( i18n("Force: Take remote entry always"), &gr );
2028 //QRadioButton both( i18n("Take both on conflict"), &gr ); 2028 //QRadioButton both( i18n("Take both on conflict"), &gr );
2029 QPushButton pb ( "OK", &dia); 2029 QPushButton pb ( "OK", &dia);
2030 lay.addWidget( &pb ); 2030 lay.addWidget( &pb );
2031 connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); 2031 connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) );
2032 switch ( KOPrefs::instance()->mSyncAlgoPrefs ) { 2032 switch ( KOPrefs::instance()->mSyncAlgoPrefs ) {
2033 case 0: 2033 case 0:
2034 loc.setChecked( true); 2034 loc.setChecked( true);
2035 break; 2035 break;
2036 case 1: 2036 case 1:
2037 rem.setChecked( true ); 2037 rem.setChecked( true );
2038 break; 2038 break;
2039 case 2: 2039 case 2:
2040 newest.setChecked( true); 2040 newest.setChecked( true);
2041 break; 2041 break;
2042 case 3: 2042 case 3:
2043 ask.setChecked( true); 2043 ask.setChecked( true);
2044 break; 2044 break;
2045 case 4: 2045 case 4:
2046 f_loc.setChecked( true); 2046 f_loc.setChecked( true);
2047 break; 2047 break;
2048 case 5: 2048 case 5:
2049 f_rem.setChecked( true); 2049 f_rem.setChecked( true);
2050 break; 2050 break;
2051 case 6: 2051 case 6:
2052 // both.setChecked( true); 2052 // both.setChecked( true);
2053 break; 2053 break;
2054 default: 2054 default:
2055 break; 2055 break;
2056 } 2056 }
2057 if ( dia.exec() ) { 2057 if ( dia.exec() ) {
2058 KOPrefs::instance()->mSyncAlgoPrefs = rem.isChecked()*1+newest.isChecked()*2+ ask.isChecked()*3+ f_loc.isChecked()*4+ f_rem.isChecked()*5;//+ both.isChecked()*6 ; 2058 KOPrefs::instance()->mSyncAlgoPrefs = rem.isChecked()*1+newest.isChecked()*2+ ask.isChecked()*3+ f_loc.isChecked()*4+ f_rem.isChecked()*5;//+ both.isChecked()*6 ;
2059 } 2059 }
2060 2060
2061} 2061}
2062 2062
2063void CalendarView::slotSelectPickerDate( QDate d) 2063void CalendarView::slotSelectPickerDate( QDate d)
2064{ 2064{
2065 mDateFrame->hide(); 2065 mDateFrame->hide();
2066 if ( mDatePickerMode == 1 ) { 2066 if ( mDatePickerMode == 1 ) {
2067 mNavigator->slotDaySelect( d ); 2067 mNavigator->slotDaySelect( d );
2068 } else if ( mDatePickerMode == 2 ) { 2068 } else if ( mDatePickerMode == 2 ) {
2069 if ( mMoveIncidence->type() == "Todo" ) { 2069 if ( mMoveIncidence->type() == "Todo" ) {
2070 Todo * to = (Todo *) mMoveIncidence; 2070 Todo * to = (Todo *) mMoveIncidence;
2071 QTime tim; 2071 QTime tim;
2072 if ( to->hasDueDate() ) 2072 if ( to->hasDueDate() )
2073 tim = to->dtDue().time(); 2073 tim = to->dtDue().time();
2074 else { 2074 else {
2075 tim = QTime ( 0,0,0 ); 2075 tim = QTime ( 0,0,0 );
2076 to->setFloats( true ); 2076 to->setFloats( true );
2077 to->setHasDueDate( true ); 2077 to->setHasDueDate( true );
2078 } 2078 }
2079 QDateTime dt ( d,tim ); 2079 QDateTime dt ( d,tim );
2080 to->setDtDue( dt ); 2080 to->setDtDue( dt );
2081 todoChanged( to ); 2081 todoChanged( to );
2082 } else { 2082 } else {
2083 QTime tim = mMoveIncidence->dtStart().time(); 2083 QTime tim = mMoveIncidence->dtStart().time();
2084 int secs = mMoveIncidence->dtStart().secsTo( mMoveIncidence->dtEnd()); 2084 int secs = mMoveIncidence->dtStart().secsTo( mMoveIncidence->dtEnd());
2085 QDateTime dt ( d,tim ); 2085 QDateTime dt ( d,tim );
2086 mMoveIncidence->setDtStart( dt ); 2086 mMoveIncidence->setDtStart( dt );
2087 ((Event*)mMoveIncidence)->setDtEnd( dt.addSecs( secs ) ); 2087 ((Event*)mMoveIncidence)->setDtEnd( dt.addSecs( secs ) );
2088 changeEventDisplay((Event*)mMoveIncidence, KOGlobals::EVENTEDITED); 2088 changeEventDisplay((Event*)mMoveIncidence, KOGlobals::EVENTEDITED);
2089 } 2089 }
2090 2090
2091 mMoveIncidence->setRevision( mMoveIncidence->revision()+1 ); 2091 mMoveIncidence->setRevision( mMoveIncidence->revision()+1 );
2092 } 2092 }
2093} 2093}
2094 2094
2095void CalendarView::removeCategories() 2095void CalendarView::removeCategories()
2096{ 2096{
2097 QPtrList<Incidence> incList = mCalendar->rawIncidences(); 2097 QPtrList<Incidence> incList = mCalendar->rawIncidences();
2098 QStringList catList = KOPrefs::instance()->mCustomCategories; 2098 QStringList catList = KOPrefs::instance()->mCustomCategories;
2099 QStringList catIncList; 2099 QStringList catIncList;
2100 QStringList newCatList; 2100 QStringList newCatList;
2101 Incidence* inc = incList.first(); 2101 Incidence* inc = incList.first();
2102 int i; 2102 int i;
2103 int count = 0; 2103 int count = 0;
2104 while ( inc ) { 2104 while ( inc ) {
2105 newCatList.clear(); 2105 newCatList.clear();
2106 catIncList = inc->categories() ; 2106 catIncList = inc->categories() ;
2107 for( i = 0; i< catIncList.count(); ++i ) { 2107 for( i = 0; i< catIncList.count(); ++i ) {
2108 if ( catList.contains (catIncList[i])) 2108 if ( catList.contains (catIncList[i]))
2109 newCatList.append( catIncList[i] ); 2109 newCatList.append( catIncList[i] );
2110 } 2110 }
2111 newCatList.sort(); 2111 newCatList.sort();
2112 inc->setCategories( newCatList.join(",") ); 2112 inc->setCategories( newCatList.join(",") );
2113 inc = incList.next(); 2113 inc = incList.next();
2114 } 2114 }
2115} 2115}
2116 2116
2117int CalendarView::addCategories() 2117int CalendarView::addCategories()
2118{ 2118{
2119 QPtrList<Incidence> incList = mCalendar->rawIncidences(); 2119 QPtrList<Incidence> incList = mCalendar->rawIncidences();
2120 QStringList catList = KOPrefs::instance()->mCustomCategories; 2120 QStringList catList = KOPrefs::instance()->mCustomCategories;
2121 QStringList catIncList; 2121 QStringList catIncList;
2122 Incidence* inc = incList.first(); 2122 Incidence* inc = incList.first();
2123 int i; 2123 int i;
2124 int count = 0; 2124 int count = 0;
2125 while ( inc ) { 2125 while ( inc ) {
2126 catIncList = inc->categories() ; 2126 catIncList = inc->categories() ;
2127 for( i = 0; i< catIncList.count(); ++i ) { 2127 for( i = 0; i< catIncList.count(); ++i ) {
2128 if ( !catList.contains (catIncList[i])) { 2128 if ( !catList.contains (catIncList[i])) {
2129 catList.append( catIncList[i] ); 2129 catList.append( catIncList[i] );
2130 //qDebug("add cat %s ", catIncList[i].latin1()); 2130 //qDebug("add cat %s ", catIncList[i].latin1());
2131 ++count; 2131 ++count;
2132 } 2132 }
2133 } 2133 }
2134 inc = incList.next(); 2134 inc = incList.next();
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro
index 9fdcd2f..543db86 100644
--- a/korganizer/korganizer.pro
+++ b/korganizer/korganizer.pro
@@ -1,193 +1,192 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG = qt warn_on 2 CONFIG = qt warn_on
3 TARGET = kopi 3 TARGET = kopi
4OBJECTS_DIR = _obj/ 4OBJECTS_DIR = _obj/
5MOC_DIR = _moc 5MOC_DIR = _moc
6DESTDIR= ../bin 6DESTDIR= ../bin
7 7
8include( ../variables.pri ) 8include( ../variables.pri )
9 9
10INCLUDEPATH += ../microkde ../ interfaces ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio ../libkdepim 10INCLUDEPATH += ../microkde ../ interfaces ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio ../libkdepim
11#../qtcompat 11#../qtcompat
12DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL 12DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL
13DEFINES += KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER 13DEFINES += KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER
14#KORG_NOPRINTER KORG_NOKABC 14#KORG_NOPRINTER KORG_NOKABC
15DEFINES += KORG_NOLVALTERNATION 15DEFINES += KORG_NOLVALTERNATION
16DEFINES += DESKTOP_VERSION 16DEFINES += DESKTOP_VERSION
17unix : { 17unix : {
18LIBS += ../bin/libmicrokdepim.so 18LIBS += ../bin/libmicrokdepim.so
19LIBS += ../bin/libmicrokcal.so 19LIBS += ../bin/libmicrokcal.so
20LIBS += ../bin/libmicrokde.so 20LIBS += ../bin/libmicrokde.so
21LIBS += ../bin/libmicrokabc.so 21LIBS += ../bin/libmicrokabc.so
22LIBS += ../bin/libmicrogammu.so
23LIBS += -lbluetooth 22LIBS += -lbluetooth
24LIBS += -lsdp 23LIBS += -lsdp
25 24
26LIBS += -lldap 25LIBS += -lldap
27OBJECTS_DIR = obj/unix 26OBJECTS_DIR = obj/unix
28MOC_DIR = moc/unix 27MOC_DIR = moc/unix
29} 28}
30win32: { 29win32: {
31DEFINES += _WIN32_ 30DEFINES += _WIN32_
32LIBS += ../bin/microkdepim.lib 31LIBS += ../bin/microkdepim.lib
33LIBS += ../bin/microkcal.lib 32LIBS += ../bin/microkcal.lib
34LIBS += ../bin/microkde.lib 33LIBS += ../bin/microkde.lib
35LIBS += ../bin/microkabc.lib 34LIBS += ../bin/microkabc.lib
36LIBS += ../libical/lib/ical.lib 35LIBS += ../libical/lib/ical.lib
37LIBS += ../libical/lib/icalss.lib 36LIBS += ../libical/lib/icalss.lib
38#LIBS += atls.lib 37#LIBS += atls.lib
39LIBS += mfc71u.lib 38LIBS += mfc71u.lib
40QMAKE_LINK += /NODEFAULTLIB:LIBC 39QMAKE_LINK += /NODEFAULTLIB:LIBC
41#QMAKE_LINK += /NODEFAULTLIB:MSVCRT 40#QMAKE_LINK += /NODEFAULTLIB:MSVCRT
42#QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib 41#QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib
43OBJECTS_DIR = obj/win 42OBJECTS_DIR = obj/win
44MOC_DIR = moc/win 43MOC_DIR = moc/win
45} 44}
46 45
47 46
48INTERFACES = kofilterview_base.ui 47INTERFACES = kofilterview_base.ui
49# filteredit_base.ui 48# filteredit_base.ui
50 49
51# kdateedit.h \ 50# kdateedit.h \
52 51
53HEADERS = \ 52HEADERS = \
54 filteredit_base.h \ 53 filteredit_base.h \
55 alarmclient.h \ 54 alarmclient.h \
56 calendarview.h \ 55 calendarview.h \
57 customlistviewitem.h \ 56 customlistviewitem.h \
58 datenavigator.h \ 57 datenavigator.h \
59 docprefs.h \ 58 docprefs.h \
60 filtereditdialog.h \ 59 filtereditdialog.h \
61 incomingdialog.h \ 60 incomingdialog.h \
62 incomingdialog_base.h \ 61 incomingdialog_base.h \
63 interfaces/korganizer/baseview.h \ 62 interfaces/korganizer/baseview.h \
64 interfaces/korganizer/calendarviewbase.h \ 63 interfaces/korganizer/calendarviewbase.h \
65 journalentry.h \ 64 journalentry.h \
66 kdatenavigator.h \ 65 kdatenavigator.h \
67 koagenda.h \ 66 koagenda.h \
68 koagendaitem.h \ 67 koagendaitem.h \
69 koagendaview.h \ 68 koagendaview.h \
70 kocounterdialog.h \ 69 kocounterdialog.h \
71 kodaymatrix.h \ 70 kodaymatrix.h \
72 kodialogmanager.h \ 71 kodialogmanager.h \
73 koeditordetails.h \ 72 koeditordetails.h \
74 koeditorgeneral.h \ 73 koeditorgeneral.h \
75 koeditorgeneralevent.h \ 74 koeditorgeneralevent.h \
76 koeditorgeneraltodo.h \ 75 koeditorgeneraltodo.h \
77 koeditorrecurrence.h \ 76 koeditorrecurrence.h \
78 koeventeditor.h \ 77 koeventeditor.h \
79 koeventpopupmenu.h \ 78 koeventpopupmenu.h \
80 koeventview.h \ 79 koeventview.h \
81 koeventviewer.h \ 80 koeventviewer.h \
82 koeventviewerdialog.h \ 81 koeventviewerdialog.h \
83 kofilterview.h \ 82 kofilterview.h \
84 koglobals.h \ 83 koglobals.h \
85 koincidenceeditor.h \ 84 koincidenceeditor.h \
86 kojournalview.h \ 85 kojournalview.h \
87 kolistview.h \ 86 kolistview.h \
88 kolocationbox.h \ 87 kolocationbox.h \
89 komonthview.h \ 88 komonthview.h \
90 koprefs.h \ 89 koprefs.h \
91 koprefsdialog.h \ 90 koprefsdialog.h \
92 kotimespanview.h \ 91 kotimespanview.h \
93 kotodoeditor.h \ 92 kotodoeditor.h \
94 kotodoview.h \ 93 kotodoview.h \
95 kotodoviewitem.h \ 94 kotodoviewitem.h \
96 koviewmanager.h \ 95 koviewmanager.h \
97 kowhatsnextview.h \ 96 kowhatsnextview.h \
98 ktimeedit.h \ 97 ktimeedit.h \
99 lineview.h \ 98 lineview.h \
100 mainwindow.h \ 99 mainwindow.h \
101 navigatorbar.h \ 100 navigatorbar.h \
102 outgoingdialog.h \ 101 outgoingdialog.h \
103 outgoingdialog_base.h \ 102 outgoingdialog_base.h \
104 publishdialog.h \ 103 publishdialog.h \
105 publishdialog_base.h \ 104 publishdialog_base.h \
106 savetemplatedialog.h \ 105 savetemplatedialog.h \
107 searchdialog.h \ 106 searchdialog.h \
108 simplealarmclient.h \ 107 simplealarmclient.h \
109 statusdialog.h \ 108 statusdialog.h \
110 timeline.h \ 109 timeline.h \
111 timespanview.h \ 110 timespanview.h \
112 version.h \ 111 version.h \
113 ../kalarmd/alarmdialog.h \ 112 ../kalarmd/alarmdialog.h \
114 113
115 114
116SOURCES = \ 115SOURCES = \
117filteredit_base.cpp \ 116filteredit_base.cpp \
118 calendarview.cpp \ 117 calendarview.cpp \
119 datenavigator.cpp \ 118 datenavigator.cpp \
120 docprefs.cpp \ 119 docprefs.cpp \
121 filtereditdialog.cpp \ 120 filtereditdialog.cpp \
122 incomingdialog.cpp \ 121 incomingdialog.cpp \
123 incomingdialog_base.cpp \ 122 incomingdialog_base.cpp \
124 journalentry.cpp \ 123 journalentry.cpp \
125 kdatenavigator.cpp \ 124 kdatenavigator.cpp \
126 koagenda.cpp \ 125 koagenda.cpp \
127 koagendaitem.cpp \ 126 koagendaitem.cpp \
128 koagendaview.cpp \ 127 koagendaview.cpp \
129 kocounterdialog.cpp \ 128 kocounterdialog.cpp \
130 kodaymatrix.cpp \ 129 kodaymatrix.cpp \
131 kodialogmanager.cpp \ 130 kodialogmanager.cpp \
132 koeditordetails.cpp \ 131 koeditordetails.cpp \
133 koeditorgeneral.cpp \ 132 koeditorgeneral.cpp \
134 koeditorgeneralevent.cpp \ 133 koeditorgeneralevent.cpp \
135 koeditorgeneraltodo.cpp \ 134 koeditorgeneraltodo.cpp \
136 koeditorrecurrence.cpp \ 135 koeditorrecurrence.cpp \
137 koeventeditor.cpp \ 136 koeventeditor.cpp \
138 koeventpopupmenu.cpp \ 137 koeventpopupmenu.cpp \
139 koeventview.cpp \ 138 koeventview.cpp \
140 koeventviewer.cpp \ 139 koeventviewer.cpp \
141 koeventviewerdialog.cpp \ 140 koeventviewerdialog.cpp \
142 kofilterview.cpp \ 141 kofilterview.cpp \
143 koglobals.cpp \ 142 koglobals.cpp \
144 koincidenceeditor.cpp \ 143 koincidenceeditor.cpp \
145 kojournalview.cpp \ 144 kojournalview.cpp \
146 kolistview.cpp \ 145 kolistview.cpp \
147 kolocationbox.cpp \ 146 kolocationbox.cpp \
148 komonthview.cpp \ 147 komonthview.cpp \
149 koprefs.cpp \ 148 koprefs.cpp \
150 koprefsdialog.cpp \ 149 koprefsdialog.cpp \
151 kotimespanview.cpp \ 150 kotimespanview.cpp \
152 kotodoeditor.cpp \ 151 kotodoeditor.cpp \
153 kotodoview.cpp \ 152 kotodoview.cpp \
154 kotodoviewitem.cpp \ 153 kotodoviewitem.cpp \
155 koviewmanager.cpp \ 154 koviewmanager.cpp \
156 kowhatsnextview.cpp \ 155 kowhatsnextview.cpp \
157 ktimeedit.cpp \ 156 ktimeedit.cpp \
158 lineview.cpp \ 157 lineview.cpp \
159 main.cpp \ 158 main.cpp \
160 mainwindow.cpp \ 159 mainwindow.cpp \
161 navigatorbar.cpp \ 160 navigatorbar.cpp \
162 outgoingdialog.cpp \ 161 outgoingdialog.cpp \
163 outgoingdialog_base.cpp \ 162 outgoingdialog_base.cpp \
164 publishdialog.cpp \ 163 publishdialog.cpp \
165 publishdialog_base.cpp \ 164 publishdialog_base.cpp \
166 savetemplatedialog.cpp \ 165 savetemplatedialog.cpp \
167 searchdialog.cpp \ 166 searchdialog.cpp \
168 simplealarmclient.cpp \ 167 simplealarmclient.cpp \
169 statusdialog.cpp \ 168 statusdialog.cpp \
170 timeline.cpp \ 169 timeline.cpp \
171 timespanview.cpp \ 170 timespanview.cpp \
172 ../kalarmd/alarmdialog.cpp 171 ../kalarmd/alarmdialog.cpp
173 172
174HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h 173HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h
175INTERFACES += calprintdayconfig_base.ui \ 174INTERFACES += calprintdayconfig_base.ui \
176 calprintmonthconfig_base.ui \ 175 calprintmonthconfig_base.ui \
177 calprinttodoconfig_base.ui \ 176 calprinttodoconfig_base.ui \
178 calprintweekconfig_base.ui 177 calprintweekconfig_base.ui
179SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp 178SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp
180 179
181 180
182 181
183win32: { 182win32: {
184HEADERS += ../outport/msoutl9.h \ 183HEADERS += ../outport/msoutl9.h \
185 koimportoldialog.h 184 koimportoldialog.h
186 185
187 186
188SOURCES += ../outport/msoutl9.cpp \ 187SOURCES += ../outport/msoutl9.cpp \
189 koimportoldialog.cpp 188 koimportoldialog.cpp
190 189
191 190
192} 191}
193 192