summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/mainwindow/tinykate.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/apps/tinykate/mainwindow/tinykate.cpp b/noncore/apps/tinykate/mainwindow/tinykate.cpp
index 30c07fc..8d19c71 100644
--- a/noncore/apps/tinykate/mainwindow/tinykate.cpp
+++ b/noncore/apps/tinykate/mainwindow/tinykate.cpp
@@ -197,69 +197,69 @@ void TinyKate::open(const QString & filename)
197 tr("Linked Document"), 0, 1, 1 ) ) 197 tr("Linked Document"), 0, 1, 1 ) )
198 { 198 {
199 case 0: //desktop 199 case 0: //desktop
200 realFileName = filename; 200 realFileName = filename;
201 break; 201 break;
202 case 1: //linked 202 case 1: //linked
203 DocLnk docLnk( filename ); 203 DocLnk docLnk( filename );
204 realFileName = docLnk.file(); 204 realFileName = docLnk.file();
205 break; 205 break;
206 }; 206 };
207 } 207 }
208 208
209 QFileInfo fileInfo( realFileName ); 209 QFileInfo fileInfo( realFileName );
210 QString filenamed = fileInfo.fileName(); 210 QString filenamed = fileInfo.fileName();
211 tabwidget->addTab(kv=kd->createView(tabwidget,"bLAH"),"tinykate/tinykate", filenamed ); 211 tabwidget->addTab(kv=kd->createView(tabwidget,"bLAH"),"tinykate/tinykate", filenamed );
212 odebug << realFileName << oendl; 212 odebug << realFileName << oendl;
213 213
214 kd->setDocName( filenamed); 214 kd->setDocName( filenamed);
215 kd->open( realFileName ); 215 kd->open( realFileName );
216 viewCount++; 216 viewCount++;
217} 217}
218 218
219void TinyKate::setDocument(const QString& fileref) 219void TinyKate::setDocument(const QString& fileref)
220{ 220{
221 open( fileref ); 221 open( fileref );
222} 222}
223 223
224void TinyKate::slotCurrentChanged( QWidget * view) 224void TinyKate::slotCurrentChanged( QWidget * view)
225{ 225{
226 if (currentView) 226 if (currentView)
227 { 227 {
228 228
229 disconnect(editCopy,SIGNAL(activated()),currentView,SLOT(copy())); 229 disconnect(editCopy,SIGNAL(clicked()),currentView,SLOT(copy()));
230 disconnect(editCut,SIGNAL(activated()),currentView,SLOT(cut())); 230 disconnect(editCut,SIGNAL(clicked()),currentView,SLOT(cut()));
231 disconnect(editPaste,SIGNAL(activated()),currentView,SLOT(paste())); 231 disconnect(editPaste,SIGNAL(clicked()),currentView,SLOT(paste()));
232 disconnect(editUndo,SIGNAL(activated()),currentView,SLOT(undo())); 232 disconnect(editUndo,SIGNAL(clicked()),currentView,SLOT(undo()));
233 disconnect(editRedo,SIGNAL(activated()),currentView,SLOT(redo())); 233 disconnect(editRedo,SIGNAL(clicked()),currentView,SLOT(redo()));
234 disconnect(viewIncFontSizes,SIGNAL(activated()), currentView,SLOT(slotIncFontSizes())); 234 disconnect(viewIncFontSizes,SIGNAL(activated()), currentView,SLOT(slotIncFontSizes()));
235 disconnect(viewDecFontSizes,SIGNAL(activated()), currentView,SLOT(slotDecFontSizes())); 235 disconnect(viewDecFontSizes,SIGNAL(activated()), currentView,SLOT(slotDecFontSizes()));
236 disconnect(hlmenu,SIGNAL(activated(int)), currentView,SLOT(setHl(int))); 236 disconnect(hlmenu,SIGNAL(activated(int)), currentView,SLOT(setHl(int)));
237 disconnect(utilSettings,SIGNAL(activated()), currentView,SLOT(configDialog())); 237 disconnect(utilSettings,SIGNAL(activated()), currentView,SLOT(configDialog()));
238 } 238 }
239 239
240 currentView=(KTextEditor::View*)view; 240 currentView=(KTextEditor::View*)view;
241 241
242 connect(editCopy,SIGNAL(clicked()),currentView,SLOT(copy())); 242 connect(editCopy,SIGNAL(clicked()),currentView,SLOT(copy()));
243 connect(editCut,SIGNAL(clicked()),currentView,SLOT(cut())); 243 connect(editCut,SIGNAL(clicked()),currentView,SLOT(cut()));
244 connect(editPaste,SIGNAL(clicked()),currentView,SLOT(paste())); 244 connect(editPaste,SIGNAL(clicked()),currentView,SLOT(paste()));
245 connect(editUndo,SIGNAL(clicked()),currentView,SLOT(undo())); 245 connect(editUndo,SIGNAL(clicked()),currentView,SLOT(undo()));
246 connect(editRedo,SIGNAL(clicked()),currentView,SLOT(redo())); 246 connect(editRedo,SIGNAL(clicked()),currentView,SLOT(redo()));
247 connect(viewIncFontSizes,SIGNAL(activated()), currentView,SLOT(slotIncFontSizes())); 247 connect(viewIncFontSizes,SIGNAL(activated()), currentView,SLOT(slotIncFontSizes()));
248 connect(viewDecFontSizes,SIGNAL(activated()), currentView,SLOT(slotDecFontSizes())); 248 connect(viewDecFontSizes,SIGNAL(activated()), currentView,SLOT(slotDecFontSizes()));
249 connect(hlmenu,SIGNAL(activated(int)), currentView,SLOT(setHl(int))); 249 connect(hlmenu,SIGNAL(activated(int)), currentView,SLOT(setHl(int)));
250 connect(utilSettings,SIGNAL(activated()), currentView,SLOT(configDialog())); 250 connect(utilSettings,SIGNAL(activated()), currentView,SLOT(configDialog()));
251 251
252} 252}
253 253
254void TinyKate::slotNew( ) 254void TinyKate::slotNew( )
255{ 255{
256 KateDocument *kd= new KateDocument(false, false, this,0,this); 256 KateDocument *kd= new KateDocument(false, false, this,0,this);
257 KTextEditor::View *kv; 257 KTextEditor::View *kv;
258 tabwidget->addTab(kv=kd->createView(tabwidget,"BLAH"), 258 tabwidget->addTab(kv=kd->createView(tabwidget,"BLAH"),
259 "tinykate/tinykate", 259 "tinykate/tinykate",
260 tr("Unnamed %1").arg(nextUnnamed++)); 260 tr("Unnamed %1").arg(nextUnnamed++));
261 viewCount++; 261 viewCount++;
262} 262}
263 263
264void TinyKate::slotClose( ) 264void TinyKate::slotClose( )
265{ 265{