Das K Desktop Environment

A.10. kpenbrushdlg.cpp

   1 /***************************************************************************
   2                           kpenbrushdlg.cpp  -  description
   3                              -------------------
   4     begin                : Fri Jul 23 1999
   5     copyright            : (C) 1999 by Ralf Nolden
   6     email                : Ralf.Nolden@post.rwth-aachen.de
   7  ***************************************************************************/
   8 
   9 /***************************************************************************
  10  *                                                                         *
  11  *   This program is free software; you can redistribute it and/or modify  *
  12  *   it under the terms of the GNU General Public License as published by  *
  13  *   the Free Software Foundation; either version 2 of the License, or     *
  14  *   (at your option) any later version.                                   *
  15  *                                                                         *
  16  ***************************************************************************/
  17 
  18 #include "kpenbrushdlg.h"
  19 #include <qwhatsthis.h>
  20 #include <kapp.h>
  21 
  22 KPenBrushDlg::KPenBrushDlg(int curr, QWidget *parent, const char *name)
  23   : QDialog(parent,name,true,WStyle_ContextHelp)
  24 {
  25   initDialog();
  26   QWhatsThis::add(width_spbox,i18n("Select brush width"));
  27 
  28   width_spbox->setValue(curr);
  29   connect(default_btn, SIGNAL(clicked()), this, SLOT(slotDefault()));
  30   connect(ok_btn, SIGNAL(clicked()), this, SLOT(accept()));
  31   connect(cancel_btn, SIGNAL(clicked()), this, SLOT(reject()));
  32 }
  33 
  34 KPenBrushDlg::~KPenBrushDlg(){
  35 }
  36 
  37 void KPenBrushDlg::slotDefault(){
  38   width_spbox->setValue(3);
  39 }