Diffstat (limited to 'korganizer/koeventviewerdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/koeventviewerdialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp index 772fd95..3979ed2 100644 --- a/korganizer/koeventviewerdialog.cpp +++ b/korganizer/koeventviewerdialog.cpp | |||
@@ -100,48 +100,51 @@ void KOEventViewerDialog::setColorMode( int m ) | |||
100 | { | 100 | { |
101 | mEventViewer->setColorMode( m ); | 101 | mEventViewer->setColorMode( m ); |
102 | } | 102 | } |
103 | int KOEventViewerDialog::executeS( bool local ) | 103 | int KOEventViewerDialog::executeS( bool local ) |
104 | { | 104 | { |
105 | mSyncResult = 3; | 105 | mSyncResult = 3; |
106 | if ( local ) | 106 | if ( local ) |
107 | findButton( User1 )->setFocus(); | 107 | findButton( User1 )->setFocus(); |
108 | else | 108 | else |
109 | findButton( Ok )->setFocus(); | 109 | findButton( Ok )->setFocus(); |
110 | exec(); | 110 | exec(); |
111 | return mSyncResult; | 111 | return mSyncResult; |
112 | } | 112 | } |
113 | 113 | ||
114 | void KOEventViewerDialog::updateConfig() | 114 | void KOEventViewerDialog::updateConfig() |
115 | { | 115 | { |
116 | mEventViewer->setFont( KOPrefs::instance()->mEventViewFont ); | 116 | mEventViewer->setFont( KOPrefs::instance()->mEventViewFont ); |
117 | 117 | ||
118 | } | 118 | } |
119 | void KOEventViewerDialog::setEvent(Event *event) | 119 | void KOEventViewerDialog::setEvent(Event *event) |
120 | { | 120 | { |
121 | mEventViewer->setEvent(event); | 121 | mEventViewer->setEvent(event); |
122 | mIncidence = event; | 122 | mIncidence = event; |
123 | findButton( Close )->setFocus(); | 123 | findButton( Close )->setFocus(); |
124 | if ( !mSyncMode ) { | ||
125 | findButton( User1 )->setText( i18n("Agenda")); | ||
126 | } | ||
124 | } | 127 | } |
125 | void KOEventViewerDialog::setIncidence(Incidence *in ) | 128 | void KOEventViewerDialog::setIncidence(Incidence *in ) |
126 | { | 129 | { |
127 | if ( in->type() == "Event" ) | 130 | if ( in->type() == "Event" ) |
128 | setEvent( (Event*) in ); | 131 | setEvent( (Event*) in ); |
129 | else if ( in->type() =="Todo" ) | 132 | else if ( in->type() =="Todo" ) |
130 | setTodo( (Todo*) in ); | 133 | setTodo( (Todo*) in ); |
131 | else if ( in->type() =="Journal" ) | 134 | else if ( in->type() =="Journal" ) |
132 | setJournal( (Journal*) in ); | 135 | setJournal( (Journal*) in ); |
133 | } | 136 | } |
134 | void KOEventViewerDialog::addIncidence(Incidence *in) | 137 | void KOEventViewerDialog::addIncidence(Incidence *in) |
135 | { | 138 | { |
136 | if ( in->type() == "Event" ) | 139 | if ( in->type() == "Event" ) |
137 | addEvent( (Event*) in ); | 140 | addEvent( (Event*) in ); |
138 | else if ( in->type() =="Todo" ) | 141 | else if ( in->type() =="Todo" ) |
139 | mEventViewer->setTodo( (Todo*) in, false ); | 142 | mEventViewer->setTodo( (Todo*) in, false ); |
140 | else if ( in->type() =="Journal" ) | 143 | else if ( in->type() =="Journal" ) |
141 | mEventViewer->setJournal( (Journal*) in, false ); | 144 | mEventViewer->setJournal( (Journal*) in, false ); |
142 | if ( mSyncMode ) { | 145 | if ( mSyncMode ) { |
143 | findButton( User1 )->setFocus(); | 146 | findButton( User1 )->setFocus(); |
144 | setCaption(i18n("Conflict! Please choose entry")); | 147 | setCaption(i18n("Conflict! Please choose entry")); |
145 | } | 148 | } |
146 | } | 149 | } |
147 | 150 | ||