26 #define YUILogComponent "ui" 29 #include "YUISymbols.h" 30 #include "YPartitionSplitter.h" 39 const std::string & usedLabel,
40 const std::string & freeLabel,
41 const std::string & newPartLabel,
42 const std::string & freeFieldLabel,
43 const std::string & newPartFieldLabel )
44 : usedSize ( usedSize )
45 , totalFreeSize ( totalFreeSize )
46 , minNewPartSize ( minNewPartSize )
47 , minFreeSize ( minFreeSize )
48 , usedLabel ( usedLabel )
49 , freeLabel ( freeLabel )
50 , newPartLabel ( newPartLabel )
51 , freeFieldLabel ( freeFieldLabel )
52 , newPartFieldLabel ( newPartFieldLabel )
59 std::string usedLabel;
60 std::string freeLabel;
61 std::string newPartLabel;
62 std::string freeFieldLabel;
63 std::string newPartFieldLabel;
75 const std::string & usedLabel,
76 const std::string & freeLabel,
77 const std::string & newPartLabel,
78 const std::string & freeFieldLabel,
79 const std::string & newPartFieldLabel )
92 YUI_CHECK_NEW( priv );
105 int YPartitionSplitter::usedSize()
const 107 return priv->usedSize;
111 int YPartitionSplitter::totalFreeSize()
const 113 return priv->totalFreeSize;
117 int YPartitionSplitter::minNewPartSize()
const 119 return priv->minNewPartSize;
123 int YPartitionSplitter::minFreeSize()
const 125 return priv->minFreeSize;
129 std::string YPartitionSplitter::usedLabel()
const 131 return priv->usedLabel;
135 std::string YPartitionSplitter::freeLabel()
const 137 return priv->freeLabel;
141 std::string YPartitionSplitter::newPartLabel()
const 143 return priv->newPartLabel;
147 std::string YPartitionSplitter::freeFieldLabel()
const 149 return priv->freeFieldLabel;
153 std::string YPartitionSplitter::newPartFieldLabel()
const 155 return priv->newPartFieldLabel;
169 propSet.
add(
YProperty( YUIProperty_Value, YStringProperty ) );
182 if ( propertyName == YUIProperty_Value )
setValue( val.integerVal() );
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
Transport class for the value of simple properties.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
void add(const YProperty &prop)
Add a property to this property set.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
A set of properties to check names and types against.
YPartitionSplitter(YWidget *parent, int usedSize, int totalFreeSize, 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.
virtual const YPropertySet & propertySet()
Return this class's property set.
Class for widget properties.
virtual void setValue(int newValue)=0
Set the value (the size of the new partition).
virtual int value()=0
The value of this PartitionSplitter: The size of the new partition.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
YPropertyType type() const
Returns the type of this property value.
virtual ~YPartitionSplitter()
Destructor.