Logo Search packages:      
Sourcecode: partitionmanager version File versions  Download package

PartResizerWidget Class Reference

#include <partresizerwidget.h>

List of all members.


Detailed Description

Widget that allows the user to resize a Partition.

Author:
vl@fidra.de

Definition at line 38 of file partresizerwidget.h.


Public Slots

bool updateLength (qint64 newLength)
bool updateSectors (qint64 newSectorsBefore, qint64 newSectorsAfter)
bool updateSectorsAfter (qint64 newSectorsAfter, bool enableLengthCheck=true)
bool updateSectorsBefore (qint64 newSectorsBefore, bool enableLengthCheck=true)

Signals

void lengthChanged (qint64)
void sectorsAfterChanged (qint64)
void sectorsBeforeChanged (qint64)

Public Member Functions

void init (Device &d, Partition &p, qint64 sbefore, qint64 safter)
qint64 maxFirstSector () const
qint64 maximumSectors () const
qint64 minimumSectors () const
qint64 minLastSector () const
bool moveAllowed () const
 PartResizerWidget (QWidget *parent)
bool readOnly () const
qint64 sectorsAfter () const
qint64 sectorsBefore () const
void setMaxFirstSector (qint64 s)
void setMaximumSectors (qint64 s)
void setMinimumSectors (qint64 s)
void setMinLastSector (qint64 s)
void setMoveAllowed (bool b)
void setReadOnly (bool b)
qint64 totalSectors () const

Static Public Member Functions

static qint32 handleHeight ()
static qint32 handleWidth ()

Protected Member Functions

bool checkSnap (const Partition &child, qint64 delta) const
const Devicedevice () const
Devicedevice ()
const QWidget * draggedWidget () const
QWidget * draggedWidget ()
QLabel & leftHandle ()
void mouseMoveEvent (QMouseEvent *event)
void mousePressEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
void paintEvent (QPaintEvent *event)
const Partitionpartition () const
Partitionpartition ()
const PartWidgetpartWidget () const
PartWidgetpartWidget ()
int partWidgetStart () const
int partWidgetWidth () const
void resizeEvent (QResizeEvent *event)
void resizeLogicals ()
QLabel & rightHandle ()
qint64 sectorsPerPixel () const
void set (qint64 newCap, qint64 newFreeBefore, qint64 newFreeAfter)
void setDevice (Device &d)
void setPartition (Partition &p)
void setSectorsAfter (qint64 s)
void setSectorsBefore (qint64 s)
void setTotalSectors (qint64 s)
void updatePositions ()

Private Attributes

Devicem_Device
QWidget * m_DraggedWidget
int m_Hotspot
QLabel m_LeftHandle
qint64 m_MaxFirstSector
qint64 m_MaximumSectors
qint64 m_MinimumSectors
qint64 m_MinLastSector
bool m_MoveAllowed
Partitionm_Partition
PartWidgetm_PartWidget
bool m_ReadOnly
QLabel m_RightHandle
qint64 m_SectorsAfter
qint64 m_SectorsBefore
qint64 m_TotalSectors

Static Private Attributes

static const qint32 m_HandleHeight = 59
static const qint32 m_HandleWidth = 16

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index