KDE Anwendungs Tutorials: Der KDE Anwendungs-Tutorial Leitfaden für die Integrierte Entwicklungsumgebung KDevelop
Zurück | Anhang A. KScribble-1.0 Beispiel Quellcode | Vor

# A.11. kpenbrushdlgdata.cpp

       1 /**********************************************************************
       2             --- KDevelop (KDlgEdit)  generated file ---
       3
       4             Last generated: Fri Jul 23 10:43:10 1999
       5
       6             DO NOT EDIT!!!  This file will be automatically
       7             regenerated by KDevelop.  All changes will be lost.
       8
       9 **********************************************************************/
      10 #include <kapp.h>
      11 #include "kpenbrushdlg.h"
      12
      13 void  KPenBrushDlg::initDialog(){
      14   this->resize(370,210);
      15   this->setMinimumSize(0,0);
      16   width_spbox= new QSpinBox(this,"width_spbox");
      17   width_spbox->setGeometry(150,50,100,25);
      18   width_spbox->setMinimumSize(0,0);
      19   width_spbox->setValue(1);
      20   width_spbox->setRange(1,99);
      21
      22   width_label= new QLabel(this,"width_label");
      23   width_label->setGeometry(20,50,120,25);
      24   width_label->setMinimumSize(0,0);
      25   width_label->setText(i18n("Pen Width:"));
      26
      27   default_btn= new QPushButton(this,"default");
      28   default_btn->setGeometry(30,160,100,30);
      29   default_btn->setMinimumSize(0,0);
      30   default_btn->setText(i18n("Default"));
      31   default_btn->setAutoDefault(true);
      32
      33   ok_btn= new QPushButton(this,"ok");
      34   ok_btn->setGeometry(140,160,100,30);
      35   ok_btn->setMinimumSize(0,0);
      36   ok_btn->setText(i18n("OK"));
      37   ok_btn->setAutoDefault(true);
      38
      39   cancel_btn= new QPushButton(this,"cancel");
      40   cancel_btn->setGeometry(250,160,100,30);
      41   cancel_btn->setMinimumSize(0,0);
      42   cancel_btn->setText(i18n("Cancel"));
      43   cancel_btn->setAutoDefault(true);
      44
      45 }

Zurück | Anfang | Vor
kpenbrushdlg.cpp | Hoch | resource.h