Source Code (Use browser search to find items of interest.)

Class Index

ksysctrl'GeneralPropertiesTab (./kdeadmin/ksysctrl/ksysctrl/propgentab.h:29)

class GeneralPropertiesTab : public QWidget
{
  Q_OBJECT
  
  public:
  
    GeneralPropertiesTab(Device *, QWidget *parent = 0L, const char *name = 0L);
    ~GeneralPropertiesTab() {}
};


ksysctrl'GeneralPropertiesTab::GeneralPropertiesTab() (./kdeadmin/ksysctrl/ksysctrl/propgentab.cpp:31)

GeneralPropertiesTab::GeneralPropertiesTab(Device *device, QWidget *parent, 
					   const char *name) : QWidget(parent, name)
{
  QString  devname    = device->deviceName();
  QString  classname  = device->deviceClassName();
  
  if (!classname.isEmpty()) devname += " ("+classname+")";
  
  DeviceTitle     *devtitle  = new DeviceTitle(device->bigPixmapFile(), devname, this, "devtitle");
  GeneralInfoBox  *genbox    = new GeneralInfoBox(device,                        this, "genbox");
  StateInfoBox    *statebox  = new StateInfoBox(device,                          this, "statebox"); 
  
  QVBoxLayout     *toplayout = new QVBoxLayout(this, 16, 4, "toplayout");
  
  toplayout->addWidget(devtitle);
  toplayout->addSpacing(16);
  toplayout->addWidget(genbox);
  toplayout->addSpacing(16);
  toplayout->addWidget(statebox, 3);
  toplayout->addStretch(1);  
  
  toplayout->activate();    
}

ksysctrl'GeneralPropertiesTab::~GeneralPropertiesTab() (./kdeadmin/ksysctrl/ksysctrl/propgentab.h:36)

    ~GeneralPropertiesTab() {}
};