*/
-#ifndef BRANCHES_H
-#define BRANCHES_H
+#ifndef BRANCHLIST_H
+#define BRANCHLIST_H
#include "ColorCode.h"
namespace lyx {
-
class Branch {
public:
///
Branch();
///
- docstring const & getBranch() const;
+ docstring const & branch() const;
///
void setBranch(docstring const &);
///
- bool getSelected() const;
+ bool isSelected() const;
/** Select/deselect the branch.
* \return true if the selection status changes.
*/
bool setSelected(bool);
+ /** If true, the branch name will be appended
+ * to the output file name.
+ */
+ bool hasFilenameSuffix() const;
+ /// Select/deselect filename suffix property.
+ void setFilenameSuffix(bool);
///
- RGBColor const & getColor() const;
+ RGBColor const & color() const;
///
void setColor(RGBColor const &);
/**
///
bool selected_;
///
+ bool filenameSuffix_;
+ ///
RGBColor color_;
};
* \returns true if a branch is removed.
*/
bool remove(docstring const &);
+ /** rename an branch in list
+ * \returns true if renaming succeeded.
+ * if \p merge is true, the branch will be removed
+ * if a branch with the newname already exists.
+ */
+ bool rename(docstring const &, docstring const &, bool const merge = false);
+ /// get the complete filename suffix
+ docstring getFilenameSuffix() const;
private:
///
docstring separator_;
};
-
-
-
} // namespace lyx
-#endif
+#endif // BRANCHLIST_H