libyui-qt
Loading...
Searching...
No Matches
YQPartitionSplitter Class Reference
Inheritance diagram for YQPartitionSplitter:
Collaboration diagram for YQPartitionSplitter:

Public Slots

void setFreeSizeSlot (int newFreeSize)
 
void setNewPartSizeSlot (int newNewSize)
 

Public Member Functions

 YQPartitionSplitter (YWidget *parent, int usedSize, int freeSize, int newPartSize, int minNewPartSize, int minFreeSize, const std::string &usedLabel, const std::string &freeLabel, const std::string &newPartLabel, const std::string &freeFieldLabel, const std::string &newPartFieldLabel)
 
 ~YQPartitionSplitter ()
 
virtual int value ()
 
virtual void setValue (int newValue)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Types

enum  { usedSegment = 0 , freeSegment = 1 , newPartSegment = 2 }
 

Protected Attributes

YLayoutBox * _vbox
 
YQBarGraph_barGraph
 
YLayoutBox * _hbox
 
YQSlider_freeSizeSlider
 
YQIntField_newPartField
 

Constructor & Destructor Documentation

◆ YQPartitionSplitter()

YQPartitionSplitter::YQPartitionSplitter ( YWidget * parent,
int usedSize,
int freeSize,
int newPartSize,
int minNewPartSize,
int minFreeSize,
const std::string & usedLabel,
const std::string & freeLabel,
const std::string & newPartLabel,
const std::string & freeFieldLabel,
const std::string & newPartFieldLabel )

Constructor.

◆ ~YQPartitionSplitter()

YQPartitionSplitter::~YQPartitionSplitter ( )

Destructor.

Member Function Documentation

◆ preferredHeight()

int YQPartitionSplitter::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQPartitionSplitter::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setEnabled()

void YQPartitionSplitter::setEnabled ( bool enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

◆ setFreeSizeSlot

void YQPartitionSplitter::setFreeSizeSlot ( int newFreeSize)
slot

Slot for setting the free size.

◆ setKeyboardFocus()

bool YQPartitionSplitter::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

◆ setNewPartSizeSlot

void YQPartitionSplitter::setNewPartSizeSlot ( int newNewSize)
slot

Slot for setting the new size.

◆ setSize()

void YQPartitionSplitter::setSize ( int newWidth,
int newHeight )
virtual

Set the new size of the widget.

Reimplemented from YWidget.

◆ setValue()

void YQPartitionSplitter::setValue ( int newValue)
virtual

Set the value (the size of the new partition).

Implemented from YPartitionSplitter.

◆ value()

int YQPartitionSplitter::value ( )
virtual

Return the value (the size of the new partition).

Implemented from YPartitionSplitter.


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