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"; }
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,
158 const YPropertyValue & val );
166 virtual YPropertyValue
getProperty(
const std::string & propertyName );
const char * userInputProperty()
Definition YPartitionSplitter.h:181
virtual const YPropertySet & propertySet()
Definition YPartitionSplitter.cc:162
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition YPartitionSplitter.cc:180
virtual const char * widgetClass() const
Definition YPartitionSplitter.h:113
virtual ~YPartitionSplitter()
Definition YPartitionSplitter.cc:101
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)
Definition YPartitionSplitter.cc:71
virtual void setValue(int newValue)=0
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition YPartitionSplitter.cc:195
Definition YPartitionSplitter.cc:36