[rkward-cvs] rkward/rkward/misc getfilenamewidget.cpp,1.2,1.3 getfilenamewidget.h,1.1,1.2

Thomas Friedrichsmeier tfry at users.sourceforge.net
Fri Mar 17 16:46:27 UTC 2006


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

Modified Files:
	getfilenamewidget.cpp getfilenamewidget.h 
Log Message:
Moved over RKInput and RKPluginBrowser to RKComponent-infrastructure

Index: getfilenamewidget.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/misc/getfilenamewidget.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** getfilenamewidget.cpp	29 Sep 2005 16:02:51 -0000	1.2
--- getfilenamewidget.cpp	17 Mar 2006 16:46:25 -0000	1.3
***************
*** 58,61 ****
--- 58,67 ----
  }
  
+ void GetFileNameWidget::setLocation (const QString &new_location) {
+ 	RK_TRACE (MISC);
+ 
+ 	location_edit->setText (new_location);
+ }
+ 
  void GetFileNameWidget::locationEditChanged (const QString &) {
  	RK_TRACE (MISC);
***************
*** 69,73 ****
  		temp = KFileDialog::getExistingDirectory (location_edit->text (), this, caption);
  	} else if (mode == ExistingFile) {
! 		temp = KFileDialog::getOpenFileName (location_edit->text (), QString::null, this, caption);
  	} else {
  		RK_ASSERT (false);
--- 75,79 ----
  		temp = KFileDialog::getExistingDirectory (location_edit->text (), this, caption);
  	} else if (mode == ExistingFile) {
! 		temp = KFileDialog::getOpenFileName (location_edit->text (), _filter, this, caption);
  	} else {
  		RK_ASSERT (false);

Index: getfilenamewidget.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/misc/getfilenamewidget.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** getfilenamewidget.h	31 Aug 2004 12:37:33 -0000	1.1
--- getfilenamewidget.h	17 Mar 2006 16:46:25 -0000	1.2
***************
*** 35,42 ****
      
  	GetFileNameWidget (QWidget *parent, FileType mode, const QString &label, const QString &caption, const QString &initial);
  
!     ~GetFileNameWidget ();
  
! /// retrieves the current location
  	QString getLocation ();
  public slots:
--- 35,46 ----
      
  	GetFileNameWidget (QWidget *parent, FileType mode, const QString &label, const QString &caption, const QString &initial);
+ 	~GetFileNameWidget ();
  
! /** set filename pattern filter, e.g. "*.cpp *.cc *.C|C++ Source Files\n*.h *.H|Header files" */
! 	void setFilter (const QString &filter) { _filter = filter; };
! /** set the filename/location from outside */
! 	void setLocation (const QString &new_location);
  
! /** retrieves the current location */
  	QString getLocation ();
  public slots:
***************
*** 49,52 ****
--- 53,57 ----
  	QPushButton *browse_button;
  	QString caption;
+ 	QString _filter;
  	FileType mode;
  };





More information about the rkward-tracker mailing list