Source: kparted/deviceview.h
|
|
|
|
// -*- c++ -*-
#ifndef DEVICEVIEW_H
#define DEVICEVIEW_H
#include <qwidget.h>
#include <parted/parted.h>
class QCheckBox;
class QIconView;
class QLabel;
class DiskView;
/**
* Provides a view of a disk. This widget displays information about the disk itself and
* the partitions it contains, it also provides access to the actions a user can perform.
*
* @author Richard Moore, rich@kde.org
* @version $Id$
*/
class DeviceView : public QWidget
{
Q_OBJECT
public:
DeviceView( QWidget *parent=0, const char *name=0 );
~DeviceView();
public slots:
void setDevice( PedDevice *device );
void setPartition( PedPartition *part );
protected:
void resizeEvent( QResizeEvent *e );
void updateFlag( QCheckBox *check, PedPartition *part, PedPartitionFlag flag );
private:
QLabel *titleLabel;
DiskView *disk;
QCheckBox *bootablePart;
QCheckBox *rootPart;
QCheckBox *swapPart;
QCheckBox *hiddenPart;
QCheckBox *raidPart;
QCheckBox *lvmPart;
QCheckBox *lbaPart;
QLabel *cmdLabel;
QIconView *cmds;
};
#endif // DEVICEVIEW_H
Generated by: rich@pegasus on Mon Jul 16 00:25:18 2001, using kdoc 2.0a45. |