/* * Xournal++ * * Part of the customizable toolbars * * @author Xournal++ Team * https://github.com/xournalpp/xournalpp * * @license GNU GPLv2 or later */ #pragma once #include "ToolbarItem.h" typedef vector ToolbarItemVector; class ToolbarEntry { public: ToolbarEntry(); ToolbarEntry(const ToolbarEntry& e); ~ToolbarEntry(); void operator=(const ToolbarEntry& e); public: void clearList(); string getName(); void setName(string name); /** * Adds a new item and return the ID of the item */ int addItem(string item); bool removeItemById(int id); /** * Insert a new item and return the ID of the item */ int insertItem(string item, int position); const ToolbarItemVector& getItems() const; private: string name; ToolbarItemVector entries; };