25 #ifndef YPartitionSplitter_h
26 #define YPartitionSplitter_h
96 const std::string & usedLabel,
97 const std::string & freeLabel,
98 const std::string & newPartLabel,
99 const std::string & freeFieldLabel,
100 const std::string & newPartFieldLabel );
113 virtual const char *
widgetClass()
const {
return "YPartitionSplitter"; }
120 virtual int value() = 0;
127 virtual void setValue(
int newValue ) = 0;
132 int usedSize()
const;
133 int totalFreeSize()
const;
134 int minFreeSize()
const;
135 int maxFreeSize()
const {
return totalFreeSize() - minNewPartSize(); }
136 int freeSize() {
return totalFreeSize() - newPartSize(); }
137 int newPartSize() {
return value(); }
138 int minNewPartSize()
const;
139 int maxNewPartSize()
const {
return totalFreeSize() - minFreeSize(); }
141 std::string usedLabel()
const;
142 std::string freeLabel()
const;
143 std::string newPartLabel()
const;
144 std::string freeFieldLabel()
const;
145 std::string newPartFieldLabel()
const;
157 virtual bool setProperty(
const std::string & propertyName,
190 #endif // YPartitionSplitter_h