Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YPartitionSplitter Class Reference

Implementation of the Slider widget. More...

#include <YPartitionSplitter.h>

Inheritance diagram for YPartitionSplitter:

YWidget List of all members.

Public Member Functions

 YPartitionSplitter (const YWidgetOpt &opt, int usedSize, int totalFreeSize, int newPartSize, int minNewPartSize, int minFreeSize, const YCPString &usedLabel, const YCPString &freeLabel, const YCPString &newPartLabel, const YCPString &freeFieldLabel, const YCPString &newPartFieldLabel)
virtual char * widgetClass ()
YCPValue changeWidget (const YCPSymbol &property, const YCPValue &newValue)
YCPValue queryWidget (const YCPSymbol &property)
virtual void setValue (int newValue)
int usedSize ()
int totalFreeSize ()
int newPartSize ()
int minNewPartSize ()
int maxNewPartSize ()
int minFreeSize ()
int maxFreeSize ()
int remainingFreeSize ()
const YCPString usedLabel ()
const YCPString freeLabel ()
const YCPString newPartLabel ()
const YCPString freeFieldLabel ()
const YCPString newPartFieldLabel ()
const char * shortcutProperty ()

Private Member Functions

virtual void saveUserInput (YMacroRecorder *macroRecorder)

Private Attributes

int _usedSize
int _totalFreeSize
int _newPartSize
int _minNewPartSize
int _minFreeSize
const YCPString_usedLabel
const YCPString_freeLabel
const YCPString_newPartLabel
const YCPString_freeFieldLabel
const YCPString_newPartFieldLabel

Detailed Description

Implementation of the Slider widget.


Constructor & Destructor Documentation

YPartitionSplitter::YPartitionSplitter const YWidgetOpt opt,
int  usedSize,
int  totalFreeSize,
int  newPartSize,
int  minNewPartSize,
int  minFreeSize,
const YCPString usedLabel,
const YCPString freeLabel,
const YCPString newPartLabel,
const YCPString freeFieldLabel,
const YCPString newPartFieldLabel
 

Constructor


Member Function Documentation

YCPValue YPartitionSplitter::changeWidget const YCPSymbol property,
const YCPValue newValue
[virtual]
 

Implements the ChangeWidget() UI command.

integer Value the numerical value

Reimplemented from YWidget.

const YCPString YPartitionSplitter::freeFieldLabel  )  [inline]
 

const YCPString YPartitionSplitter::freeLabel  )  [inline]
 

int YPartitionSplitter::maxFreeSize  )  [inline]
 

int YPartitionSplitter::maxNewPartSize  )  [inline]
 

int YPartitionSplitter::minFreeSize  )  [inline]
 

int YPartitionSplitter::minNewPartSize  )  [inline]
 

const YCPString YPartitionSplitter::newPartFieldLabel  )  [inline]
 

const YCPString YPartitionSplitter::newPartLabel  )  [inline]
 

int YPartitionSplitter::newPartSize  )  [inline]
 

YCPValue YPartitionSplitter::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the QueryWidget() UI command.

Reimplemented from YWidget.

int YPartitionSplitter::remainingFreeSize  )  [inline]
 

void YPartitionSplitter::saveUserInput YMacroRecorder macroRecorder  )  [private, virtual]
 

Save the widget's user input to a macro recorder. Intentionally declared as "private" so all macro recording internals are handled by the abstract libyui level, not by a specific UI.

Reimplemented from YWidget.

void YPartitionSplitter::setValue int  newValue  )  [virtual]
 

Change the slider value.

Overload this, but call YPartitionSplitter::setValue() at the end of your own method.

const char* YPartitionSplitter::shortcutProperty  )  [inline, virtual]
 

The name of the widget property that holds the keyboard shortcut. Inherited from YWidget.

This widget is a special case: It has several subwidgets that might get a keyboard shortcut ( yet none of them can be set later with UI::ChangeWidget() ). It ( currently ) cannot be treated properly in the shortcut checker / shortcut conflict resolver. This function is overwritten here merely for the sake of completeness.

Reimplemented from YWidget.

int YPartitionSplitter::totalFreeSize  )  [inline]
 

const YCPString YPartitionSplitter::usedLabel  )  [inline]
 

int YPartitionSplitter::usedSize  )  [inline]
 

virtual char* YPartitionSplitter::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.


Member Data Documentation

const YCPString& YPartitionSplitter::_freeFieldLabel [private]
 

const YCPString& YPartitionSplitter::_freeLabel [private]
 

int YPartitionSplitter::_minFreeSize [private]
 

int YPartitionSplitter::_minNewPartSize [private]
 

const YCPString& YPartitionSplitter::_newPartFieldLabel [private]
 

const YCPString& YPartitionSplitter::_newPartLabel [private]
 

int YPartitionSplitter::_newPartSize [private]
 

int YPartitionSplitter::_totalFreeSize [private]
 

const YCPString& YPartitionSplitter::_usedLabel [private]
 

int YPartitionSplitter::_usedSize [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6