#include "container.h"
#include "label.h"
#include "listdata.h"
-#include "vslider.h"
+#include "mspgltk_api.h"
+#include "slider.h"
namespace Msp {
namespace GLtk {
/**
Thrown if a list's item type is incompatible with its data.
*/
-class incompatible_data: public std::logic_error
+class MSPGLTK_API incompatible_data: public std::logic_error
{
public:
incompatible_data(const std::type_info &);
Shows a list of items, allowing the user to select one. A slider is included
to allow scrolling through a long list.
*/
-class List: virtual public Widget, private Container
+class MSPGLTK_API List: virtual public Widget, private Container
{
public:
enum ViewMode
};
public:
- class Item: public Container
+ class Item: virtual public Widget, protected Container
{
+ protected:
+ Item();
+
public:
virtual const char *get_class() const { return "listitem"; }
class SimpleItem: public Item
{
- private:
+ protected:
+ SimpleItem() { }
+
virtual void on_style_change();
};
class MultiColumnItem: public Item
{
protected:
+ MultiColumnItem() { }
+
virtual void check_widths(std::vector<unsigned> &) const;
virtual void set_widths(const std::vector<unsigned> &);
- private:
virtual void on_style_change();
};
static void adjust_index(int &, int, int);
};
-void operator>>(const LexicalConverter &, List::ViewMode &);
+MSPGLTK_API void operator>>(const LexicalConverter &, List::ViewMode &);
} // namespace GLtk
} // namespace Msp