[rkward-cvs] rkward/rkward/plugin rkcheckbox.cpp,1.4,1.5 rkinput.cpp,1.3,1.4 rknote.cpp,1.1,1.2 rkplugin.cpp,1.16,1.17 rkpluginbrowser.cpp,1.3,1.4 rkpluginspinbox.cpp,1.5,1.6 rkpluginwidget.cpp,1.4,1.5 rkradio.cpp,1.4,1.5 rkvarslot.cpp,1.11,1.12

Thomas Friedrichsmeier tfry at users.sourceforge.net
Thu Sep 29 13:24:50 UTC 2005


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

Modified Files:
	rkcheckbox.cpp rkinput.cpp rknote.cpp rkplugin.cpp 
	rkpluginbrowser.cpp rkpluginspinbox.cpp rkpluginwidget.cpp 
	rkradio.cpp rkvarslot.cpp 
Log Message:
Code cleanups, focus: wrap debug-output in RK_DO, add RK_TRACEs

Index: rkpluginwidget.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkpluginwidget.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** rkpluginwidget.cpp	14 Mar 2005 17:10:37 -0000	1.4
--- rkpluginwidget.cpp	29 Sep 2005 13:24:48 -0000	1.5
***************
*** 21,26 ****
--- 21,28 ----
  
  #include "rkplugin.h"
+ #include "../debug.h"
  
  RKPluginWidget::RKPluginWidget (const QDomElement &, QWidget *parent, RKPlugin *plugin) : QWidget (parent) {
+ 	RK_TRACE (PLUGIN);
  	_plugin = plugin;
  	
***************
*** 29,44 ****
  
  RKPluginWidget::~RKPluginWidget () {
! 	qDebug ("widget deleted");
  }
  
  QString RKPluginWidget::complaints () {
  	return "";
  }
  
  QString RKPluginWidget::value (const QString &) {
  	return "";
  }
  
  bool RKPluginWidget::isSatisfied () {
  	return true;
  }
--- 31,49 ----
  
  RKPluginWidget::~RKPluginWidget () {
! 	RK_TRACE (PLUGIN);
  }
  
  QString RKPluginWidget::complaints () {
+ 	RK_TRACE (PLUGIN);
  	return "";
  }
  
  QString RKPluginWidget::value (const QString &) {
+ 	RK_TRACE (PLUGIN);
  	return "";
  }
  
  bool RKPluginWidget::isSatisfied () {
+ 	RK_TRACE (PLUGIN);
  	return true;
  }

Index: rkradio.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkradio.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** rkradio.cpp	26 Mar 2005 10:32:17 -0000	1.4
--- rkradio.cpp	29 Sep 2005 13:24:48 -0000	1.5
***************
*** 25,30 ****
--- 25,32 ----
  
  #include "../rkglobals.h"
+ #include "../debug.h"
  
  RKRadio::RKRadio(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
+ 	RK_TRACE (PLUGIN);
  	QVBoxLayout *vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
  
***************
*** 47,51 ****
  	bool checked_one = false;	
  	for (unsigned int i=0; i < children.count (); i++) {
- 		qDebug ("option");
  		QDomElement child = children.item (i).toElement ();
  
--- 49,52 ----
***************
*** 70,76 ****
--- 71,79 ----
  
  RKRadio::~RKRadio(){
+ 	RK_TRACE (PLUGIN);
  }
  
  QString RKRadio::value (const QString &) {
+ 	RK_TRACE (PLUGIN);
  	OptionsMap::Iterator it;
  	for (it = options.begin(); it != options.end(); ++it) {
***************
*** 84,91 ****
--- 87,96 ----
  
  void RKRadio::buttonClicked (int) {
+ 	RK_TRACE (PLUGIN);
  	emit (changed ());
  }
  
  void RKRadio::setEnabled(bool checked){
+ 	RK_TRACE (PLUGIN);
    group->setEnabled(checked);
    label->setEnabled(checked);
***************
*** 94,97 ****
--- 99,103 ----
  
  void RKRadio::slotActive(){
+ 	RK_TRACE (PLUGIN);
  bool isOk = group->isEnabled();
  group->setEnabled(! isOk) ;
***************
*** 100,103 ****
--- 106,110 ----
  
  void RKRadio::slotActive(bool isOk){
+ 	RK_TRACE (PLUGIN);
  group->setEnabled(isOk) ;
  label->setEnabled(isOk) ;
***************
*** 105,108 ****
--- 112,116 ----
  
  QRadioButton * RKRadio::findLabel (QString lab) {
+ 	RK_TRACE (PLUGIN);
    QRadioButton * sol = 0 ;
    OptionsMap::iterator findlab;
***************
*** 117,120 ****
--- 125,129 ----
  
  bool RKRadio::isOk(QString val) {
+ 	RK_TRACE (PLUGIN);
    QString sol ;
    OptionsMap::Iterator it;

Index: rkpluginspinbox.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkpluginspinbox.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** rkpluginspinbox.cpp	26 Mar 2005 10:32:17 -0000	1.5
--- rkpluginspinbox.cpp	29 Sep 2005 13:24:48 -0000	1.6
***************
*** 23,29 ****
--- 23,31 ----
  #include "../misc/rkspinbox.h"
  #include "../rkglobals.h"
+ #include "../debug.h"
  #include "rkplugin.h"
  
  RKPluginSpinBox::RKPluginSpinBox (const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget(element, parent, plugin) {
+ 		RK_TRACE (PLUGIN);
  	QVBoxLayout *vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
  	
***************
*** 48,54 ****
--- 50,58 ----
  
  RKPluginSpinBox::~RKPluginSpinBox () {
+ 	RK_TRACE (PLUGIN);
  }
  
  void RKPluginSpinBox::setEnabled(bool checked){
+ 	RK_TRACE (PLUGIN);
    spinbox->setEnabled(checked);
    label->setEnabled(checked);
***************
*** 56,67 ****
--- 60,74 ----
  
  QString RKPluginSpinBox::value (const QString &) {
+ 	RK_TRACE (PLUGIN);
  	return (spinbox->text ());
  }
  
  void RKPluginSpinBox::valueChanged (int) {
+ 	RK_TRACE (PLUGIN);
  	plugin ()->changed ();
  }
  
  void RKPluginSpinBox::slotActive(){
+ 	RK_TRACE (PLUGIN);
  bool isOk = spinbox->isEnabled();
  spinbox->setEnabled(! isOk) ;
***************
*** 70,78 ****
  
  void RKPluginSpinBox::slotActive(bool isOk){
  spinbox->setEnabled( isOk) ;
  label->setEnabled(isOk);
  }
  void RKPluginSpinBox::adjust(int longueur, int largeur){
! qDebug("coucou, c'est moi");
  spinbox->resize(longueur, largeur);
  }
--- 77,86 ----
  
  void RKPluginSpinBox::slotActive(bool isOk){
+ 	RK_TRACE (PLUGIN);
  spinbox->setEnabled( isOk) ;
  label->setEnabled(isOk);
  }
  void RKPluginSpinBox::adjust(int longueur, int largeur){
! 	RK_TRACE (PLUGIN);
  spinbox->resize(longueur, largeur);
  }

Index: rkinput.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkinput.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rkinput.cpp	15 Apr 2005 07:35:52 -0000	1.3
--- rkinput.cpp	29 Sep 2005 13:24:48 -0000	1.4
***************
*** 1,4 ****
--- 1,5 ----
  
  #include "rkinput.h"
+ 
  #include <qdom.h>
  #include <qlayout.h>
***************
*** 7,17 ****
  #include <qvbox.h>
  #include <qgrid.h>
- #include <rkplugin.h>
- #include "../rkglobals.h"
  
  
  RKInput::RKInput(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
  
- 	qDebug("creating note");
  	vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
  	label = new QLabel (element.attribute ("label", "Enter your text"), this);
--- 8,19 ----
  #include <qvbox.h>
  #include <qgrid.h>
  
+ #include "rkplugin.h"
+ #include "../rkglobals.h"
+ #include "../debug.h"
  
  RKInput::RKInput(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
+ 	RK_TRACE (PLUGIN);
  
  	vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
  	label = new QLabel (element.attribute ("label", "Enter your text"), this);
***************
*** 42,48 ****
--- 44,52 ----
  RKInput::~RKInput()
  {
+ 	RK_TRACE (PLUGIN);
  }
  
  void RKInput::setEnabled(bool checked){
+ 	RK_TRACE (PLUGIN);
  label->setEnabled(checked);
  textedit->setEnabled(checked);
***************
*** 51,54 ****
--- 55,59 ----
  
  void RKInput::slotActive(bool isOk){
+ 	RK_TRACE (PLUGIN);
  textedit->setEnabled(isOk) ;
  label->setEnabled(isOk) ;
***************
*** 57,60 ****
--- 62,66 ----
    
  void RKInput::slotActive(){
+ 	RK_TRACE (PLUGIN);
  bool isOk = textedit->isEnabled();
  textedit->setEnabled(! isOk) ;
***************
*** 63,66 ****
--- 69,73 ----
  
  QString RKInput::value (const QString &) {
+ 	RK_TRACE (PLUGIN);
  	return textedit->text();
  }
***************
*** 68,71 ****
--- 75,79 ----
  
  void RKInput::textChanged(){
+ 	RK_TRACE (PLUGIN);
  	emit(changed());
  }
***************
*** 73,77 ****
  
  #include "rkinput.moc"
- 
- 
- 
--- 81,82 ----

Index: rkvarslot.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkvarslot.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** rkvarslot.cpp	20 Apr 2005 12:14:57 -0000	1.11
--- rkvarslot.cpp	29 Sep 2005 13:24:48 -0000	1.12
***************
*** 32,35 ****
--- 32,36 ----
  #include "rkplugin.h"
  #include "../rkglobals.h"
+ #include "../debug.h"
  #include "../core/rkvariable.h"
  #include "../core/rcontainerobject.h"
***************
*** 37,42 ****
  
  RKVarSlot::RKVarSlot(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
! 	qDebug ("creating varselector");
! 	
  	// layout
  	QGridLayout *g_layout = new QGridLayout (this, 3, 3, RKGlobals::spacingHint ());
--- 38,43 ----
  
  RKVarSlot::RKVarSlot(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
! 	RK_TRACE (PLUGIN);
! 
  	// layout
  	QGridLayout *g_layout = new QGridLayout (this, 3, 3, RKGlobals::spacingHint ());
***************
*** 94,100 ****
--- 95,103 ----
  
  RKVarSlot::~RKVarSlot(){
+ 	RK_TRACE (PLUGIN);
  }
  
  void RKVarSlot::initialize () {
+ 	RK_TRACE (PLUGIN);
  	source = plugin ()->getVarSelector (source_id);
  	if (!source) return;
***************
*** 104,107 ****
--- 107,112 ----
  // TODO make the same with cont_map 
  void RKVarSlot::objectListChanged () {
+ 	RK_TRACE (PLUGIN);
+ 
  	if (!source) return;
  	if (!multi) {
***************
*** 140,143 ****
--- 145,150 ----
  
  void RKVarSlot::listSelectionChanged() {
+ 	RK_TRACE (PLUGIN);
+ 
  	selection = false;
  
***************
*** 160,163 ****
--- 167,172 ----
  
  void RKVarSlot::selectPressed () {
+ 	RK_TRACE (PLUGIN);
+ 
  	if (!multi) {
  		if (!num_vars) {
***************
*** 260,263 ****
--- 269,274 ----
  
  QValueList<RKVariable*> RKVarSlot::getVariables () {
+ 	RK_TRACE (PLUGIN);
+ 
  	QValueList<RKVariable*> ret;
  	for (ItemMap::iterator it = item_map.begin (); it != item_map.end (); ++it) {
***************
*** 268,271 ****
--- 279,284 ----
  
  void RKVarSlot::updateState () {
+ 	RK_TRACE (PLUGIN);
+ 
  	if (!isSatisfied ()) {
  		if (multi) {
***************
*** 284,287 ****
--- 297,302 ----
  
  bool RKVarSlot::isSatisfied () {
+ 	RK_TRACE (PLUGIN);
+ 
  	if (!required) return ((!num_vars) || (num_vars >= min_vars));
  	return (num_vars >= min_vars);
***************
*** 289,293 ****
  
  QString RKVarSlot::value (const QString &modifier) {
! QString ret;
  	if (!multi) {
  		if (num_vars) {
--- 304,310 ----
  
  QString RKVarSlot::value (const QString &modifier) {
! 	RK_TRACE (PLUGIN);
! 
! 	QString ret;
  	if (!multi) {
  		if (num_vars) {
***************
*** 327,335 ****
  		}
  	}
! //		qDebug ( "%s", ret.latin1() ) ;
! return ret;
  }
  
  QString RKVarSlot::complaints () {
  	if (isSatisfied ()) return "";
  	return i18n (" - You have to select a variable for the \"" + label->text () + "\"-field\n");
--- 344,355 ----
  		}
  	}
! 
! 	//		qDebug ( "%s", ret.latin1() ) ;
! 	return ret;
  }
  
  QString RKVarSlot::complaints () {
+ 	RK_TRACE (PLUGIN);
+ 
  	if (isSatisfied ()) return "";
  	return i18n (" - You have to select a variable for the \"" + label->text () + "\"-field\n");
***************
*** 337,340 ****
--- 357,361 ----
  
  void RKVarSlot::setEnabled(bool checked){
+ 	RK_TRACE (PLUGIN);
    line_edit->setEnabled(checked);   
    select->setEnabled(checked);
***************
*** 342,345 ****
--- 363,367 ----
  
  void RKVarSlot::slotActive(){
+ 	RK_TRACE (PLUGIN);
    bool isOk = line_edit->isEnabled();
    line_edit->setEnabled(! isOk) ;
***************
*** 348,351 ****
--- 370,374 ----
  
  void RKVarSlot::slotActive(bool isOk){
+ 	RK_TRACE (PLUGIN);
    line_edit->setEnabled(isOk) ;
    select->setEnabled(isOk) ;
***************
*** 353,356 ****
--- 376,380 ----
  
  bool RKVarSlot::belongToClasses(const QString &nom ) {
+ 	RK_TRACE (PLUGIN);
  	if (classes == "all") return true;
  	if (classes.find (nom, 0) != -1) return true; 

Index: rkplugin.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkplugin.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** rkplugin.cpp	11 Sep 2005 22:06:31 -0000	1.16
--- rkplugin.cpp	29 Sep 2005 13:24:48 -0000	1.17
***************
*** 294,298 ****
      Dependancies::Iterator it;
    for (it = dependant.begin(); it != dependant.end(); ++it) {
!   qDebug ("id : %s", it.key().latin1 ()) ;
    if  (it.data() != "#free#"){
      WidgetsMap::iterator master ;
--- 294,298 ----
      Dependancies::Iterator it;
    for (it = dependant.begin(); it != dependant.end(); ++it) {
!   RK_DO (qDebug ("id : %s", it.key().latin1 ()), PLUGIN, DL_DEBUG);
    if  (it.data() != "#free#"){
      WidgetsMap::iterator master ;
***************
*** 307,313 ****
                  slave.data()->setEnabled(false );
                  };
!                qDebug ("Connecting %s to %s",slave.key().latin1(),master.key().latin1()) ;
                 connect( (RKCheckBox *) master.data(), SIGNAL(clicked()) ,(RKCheckBox *)   slave.data(), SLOT(slotActive()));
!                qDebug ("You are very right to choose me OK") ;
                 };
            };
--- 307,313 ----
                  slave.data()->setEnabled(false );
                  };
!                RK_DO (qDebug ("Connecting %s to %s",slave.key().latin1(),master.key().latin1()), PLUGIN, DL_DEBUG);
                 connect( (RKCheckBox *) master.data(), SIGNAL(clicked()) ,(RKCheckBox *)   slave.data(), SLOT(slotActive()));
!                RK_DO (qDebug ("You are very right to choose me OK"), PLUGIN, DL_DEBUG);
                 };
            };
***************
*** 399,403 ****
    Dependancies::Iterator it;
    for (it = dependant.begin(); it != dependant.end(); ++it) {
!   qDebug ("id : %s", it.key().latin1 ()) ;
    if  (it.data() != "#free#"){
      WidgetsMap::iterator master ;
--- 399,403 ----
    Dependancies::Iterator it;
    for (it = dependant.begin(); it != dependant.end(); ++it) {
!   RK_DO (qDebug ("id : %s", it.key().latin1 ()), PLUGIN, DL_DEBUG);
    if  (it.data() != "#free#"){
      WidgetsMap::iterator master ;
***************
*** 413,417 ****
                  };
                 connect( (RKCheckBox *) master.data(), SIGNAL(clicked()) ,  slave.data(), SLOT(slotActive()));
!                qDebug ("You are very right to choose me OK") ;
                 };
            };
--- 413,417 ----
                  };
                 connect( (RKCheckBox *) master.data(), SIGNAL(clicked()) ,  slave.data(), SLOT(slotActive()));
!                RK_DO (qDebug ("You are very right to choose me OK"), PLUGIN, DL_DEBUG);
                 };
            };

Index: rknote.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rknote.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** rknote.cpp	26 Mar 2005 10:33:30 -0000	1.1
--- rknote.cpp	29 Sep 2005 13:24:48 -0000	1.2
***************
*** 16,24 ****
  
  #include "../rkglobals.h"
! 
  
  RKNote::RKNote(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
  
- 	qDebug("creating note");
  	QVBoxLayout *vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
  	label = new QLabel (element.attribute ("label", "Select one:"), this);
--- 16,24 ----
  
  #include "../rkglobals.h"
! #include "../debug.h"
  
  RKNote::RKNote(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
+ 	RK_TRACE (PLUGIN);
  
  	QVBoxLayout *vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
  	label = new QLabel (element.attribute ("label", "Select one:"), this);
***************
*** 32,41 ****
--- 32,44 ----
  RKNote::~RKNote()
  {
+ 	RK_TRACE (PLUGIN);
  }
  
  void RKNote::setEnabled(bool checked){
+ 	RK_TRACE (PLUGIN);
    label->setEnabled(checked);
    }
  void RKNote::slotActive(bool isOk){
+ 	RK_TRACE (PLUGIN);
  label->setEnabled(isOk) ;
  }
***************
*** 43,52 ****
    
  void RKNote::slotActive(){
  bool isOk = label->isEnabled();
  label->setEnabled(! isOk) ;
  }
  
- 
- 
- 
  #include "rknote.moc"
--- 46,53 ----
    
  void RKNote::slotActive(){
+ 	RK_TRACE (PLUGIN);
  bool isOk = label->isEnabled();
  label->setEnabled(! isOk) ;
  }
  
  #include "rknote.moc"

Index: rkpluginbrowser.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkpluginbrowser.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rkpluginbrowser.cpp	26 Apr 2005 19:04:36 -0000	1.3
--- rkpluginbrowser.cpp	29 Sep 2005 13:24:48 -0000	1.4
***************
*** 1,4 ****
--- 1,5 ----
  
  #include "rkpluginbrowser.h"
+ 
  #include <qdom.h>
  #include <qlayout.h>
***************
*** 7,30 ****
  #include <qvbox.h>
  #include <qgrid.h>
! #include <rkplugin.h>
  #include <qpushbutton.h>
- #include <kfiledialog.h>
  
  #include <klocale.h>
- #include "../rkglobals.h"
- #include <qstring.h>
  #include <kurl.h>
  
! // /////////////////////
! 
! 
! 
! 
! 
  
  
  RKPluginBrowser::RKPluginBrowser(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
  
- 	qDebug("creating note");
  	vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
  	label = new QLabel (element.attribute ("label", "Enter your text"), this);
--- 8,27 ----
  #include <qvbox.h>
  #include <qgrid.h>
! #include <qstring.h>
  #include <qpushbutton.h>
  
+ #include <kfiledialog.h>
  #include <klocale.h>
  #include <kurl.h>
  
! #include "rkplugin.h"
! #include "../rkglobals.h"
! #include "../debug.h"
  
+ // /////////////////////
  
  RKPluginBrowser::RKPluginBrowser(const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
+ 	RK_TRACE (PLUGIN);
  
  	vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
  	label = new QLabel (element.attribute ("label", "Enter your text"), this);
***************
*** 59,65 ****
--- 56,64 ----
  RKPluginBrowser::~RKPluginBrowser()
  {
+ 	RK_TRACE (PLUGIN);
  }
  
  void RKPluginBrowser::setEnabled(bool checked){
+ 	RK_TRACE (PLUGIN);
  label->setEnabled(checked);
  textedit->setEnabled(checked);
***************
*** 69,72 ****
--- 68,72 ----
  
  void RKPluginBrowser::slotActive(bool isOk){
+ 	RK_TRACE (PLUGIN);
  textedit->setEnabled(isOk) ;
  button->setEnabled(isOk) ;
***************
*** 76,79 ****
--- 76,80 ----
    
  void RKPluginBrowser::slotActive(){
+ 	RK_TRACE (PLUGIN);
  bool isOk = textedit->isEnabled();
  textedit->setEnabled(! isOk) ;
***************
*** 83,86 ****
--- 84,88 ----
  
  QString RKPluginBrowser::value (const QString &) {
+ 	RK_TRACE (PLUGIN);
  	return textedit->text();
  }
***************
*** 88,95 ****
--- 90,99 ----
  
  void RKPluginBrowser::textChanged(){
+ 	RK_TRACE (PLUGIN);
  	emit(changed());
  }
  
  void RKPluginBrowser::slotPopingup(){
+ 	RK_TRACE (PLUGIN);
  	if (type == "file") {
  		QString filename= KFileDialog:: getOpenFileName("",filter,0,"") ; 

Index: rkcheckbox.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkcheckbox.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** rkcheckbox.cpp	26 Mar 2005 10:32:17 -0000	1.4
--- rkcheckbox.cpp	29 Sep 2005 13:24:48 -0000	1.5
***************
*** 23,29 ****
  #include "rkplugin.h"
  #include "../rkglobals.h"
  
  RKCheckBox::RKCheckBox (const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
! 	qDebug ("creating checkbox");
  
    QVBoxLayout *vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
--- 23,30 ----
  #include "rkplugin.h"
  #include "../rkglobals.h"
+ #include "../debug.h"
  
  RKCheckBox::RKCheckBox (const QDomElement &element, QWidget *parent, RKPlugin *plugin) : RKPluginWidget (element, parent, plugin) {
! 	RK_TRACE (PLUGIN);
  
    QVBoxLayout *vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
***************
*** 45,52 ****
--- 46,55 ----
  
  RKCheckBox::~RKCheckBox () {
+ 	RK_TRACE (PLUGIN);
  }
  
  
  void RKCheckBox::setEnabled(bool checked){
+ 	RK_TRACE (PLUGIN);
    checkbox->setEnabled(checked);
    }
***************
*** 54,57 ****
--- 57,61 ----
  
  QString RKCheckBox::value (const QString &) {
+ 	RK_TRACE (PLUGIN);
  	if (checkbox->isChecked ()) {
  		return value_if_checked;
***************
*** 63,70 ****
--- 67,76 ----
  
  void RKCheckBox::changedState (int) {
+ 	RK_TRACE (PLUGIN);
  	emit (changed ());
  }
  
  void RKCheckBox::slotActive(bool isOk){
+ 	RK_TRACE (PLUGIN);
  checkbox->setEnabled(isOk) ;
  }
***************
*** 72,75 ****
--- 78,82 ----
  
  void RKCheckBox::slotActive(){
+ 	RK_TRACE (PLUGIN);
  bool isOk = checkbox->isEnabled();
  checkbox->setEnabled(! isOk) ;





More information about the rkward-tracker mailing list