[rkward-cvs] rkward/rkward/windows rkcommandeditorwindow.cpp,1.8,1.9 rkcommandeditorwindow.h,1.5,1.6

Pierre ecoch at users.sourceforge.net
Wed Nov 3 14:53:44 UTC 2004


Update of /cvsroot/rkward/rkward/rkward/windows
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25251/windows

Modified Files:
	rkcommandeditorwindow.cpp rkcommandeditorwindow.h 
Log Message:
Some marketing mainly (adding icons and more tollbars, etc.).

Index: rkcommandeditorwindow.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/windows/rkcommandeditorwindow.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** rkcommandeditorwindow.cpp	2 Nov 2004 18:51:27 -0000	1.8
--- rkcommandeditorwindow.cpp	3 Nov 2004 14:53:41 -0000	1.9
***************
*** 140,150 ****
  		setRHighlighting(m_doc);
  		
! 		QString fname;
! 		if (getFilenameAndPath(url,&fname)){
! 			setTabCaption(fname);
! 		}
! 		else {
! 			setTabCaption(url.prettyURL());
! 		}
  		
  		return true;
--- 140,144 ----
  		setRHighlighting(m_doc);
  		
! 		updateTabCaption(url);
  		
  		return true;
***************
*** 198,202 ****
  
  bool RKCommandEditorWindow::saveAs(const KURL &url){
! 	return m_doc->saveAs(url); 
  }
  
--- 192,197 ----
  
  bool RKCommandEditorWindow::saveAs(const KURL &url){
! 	return m_doc->saveAs(url);
! 	updateTabCaption(url); 
  }
  
***************
*** 232,233 ****
--- 227,249 ----
  	 m_doc->redo();
  }
+ 
+ 
+ 
+ void RKCommandEditorWindow::insertText(QString text)
+ {
+ 	m_doc->insertText(m_view->cursorLine(),m_view->cursorColumn(),text);
+ 	setFocus();
+ }
+ 
+ 
+ 
+ void RKCommandEditorWindow::updateTabCaption(const KURL &url)
+ {
+ 	QString fname;
+ 	if (getFilenameAndPath(url,&fname)){
+ 		setTabCaption(fname);
+ 	}
+ 	else {
+ 		setTabCaption(url.prettyURL());
+ 	}
+ }

Index: rkcommandeditorwindow.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/windows/rkcommandeditorwindow.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** rkcommandeditorwindow.h	2 Nov 2004 18:51:27 -0000	1.5
--- rkcommandeditorwindow.h	3 Nov 2004 14:53:41 -0000	1.6
***************
*** 62,65 ****
--- 62,66 ----
      void undo();
      void redo();
+     void insertText(QString text);
  
  private:
***************
*** 69,72 ****
--- 70,74 ----
  	KLibrary *m_library;
  	bool getFilenameAndPath(const KURL &url,QString *fname);
+     
  	QBoxLayout* pLayout;
  private slots:
***************
*** 75,78 ****
--- 77,82 ----
  
  
+ private:
+     void updateTabCaption(const KURL &url);
  };
  





More information about the rkward-tracker mailing list