libyui-qt  2.46.13
YQPartitionSplitter Class Reference
Inheritance diagram for YQPartitionSplitter:
Collaboration diagram for YQPartitionSplitter:

Public Slots

void setFreeSizeSlot (int newFreeSize)
 Slot for setting the free size.
 
void setNewPartSizeSlot (int newNewSize)
 Slot for setting the new size.
 

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)
 Constructor.
 
 ~YQPartitionSplitter ()
 Destructor.
 
virtual int value ()
 Return the value (the size of the new partition). More...
 
virtual void setValue (int newValue)
 Set the value (the size of the new partition). More...
 
virtual void setEnabled (bool enabled)
 Set enabled/disabled state. More...
 
virtual int preferredWidth ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 
virtual bool setKeyboardFocus ()
 Accept the keyboard focus.
 

Protected Types

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

Protected Attributes

YLayoutBox * _vbox
 
YQBarGraph_barGraph
 
YLayoutBox * _hbox
 
YQSlider_freeSizeSlider
 
YQIntField_newPartField
 

Detailed Description

Definition at line 38 of file YQPartitionSplitter.h.

Member Function Documentation

int YQPartitionSplitter::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 138 of file YQPartitionSplitter.cc.

int YQPartitionSplitter::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 132 of file YQPartitionSplitter.cc.

void YQPartitionSplitter::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 123 of file YQPartitionSplitter.cc.

Here is the call graph for this function:

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 144 of file YQPartitionSplitter.cc.

void YQPartitionSplitter::setValue ( int  newValue)
virtual

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

Implemented from YPartitionSplitter.

Definition at line 159 of file YQPartitionSplitter.cc.

int YQPartitionSplitter::value ( )
virtual

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

Implemented from YPartitionSplitter.

Definition at line 151 of file YQPartitionSplitter.cc.

Here is the call graph for this function:


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