combo-enums.h revision 981b809bc6ed10a21e89444d9447e5475801874f
/**
* \brief Simplified management of enumerations in the UI as combobox.
*
* Authors:
* Nicholas Bishop <nicholasbishop@gmail.com>
* Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
*
* Copyright (C) 2007 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifndef INKSCAPE_UI_WIDGET_COMBO_ENUMS_H
#define INKSCAPE_UI_WIDGET_COMBO_ENUMS_H
#include <gtkmm/combobox.h>
#include <gtkmm/liststore.h>
#include "attr-widget.h"
#include "ui/widget/labelled.h"
{
: AttrWidget(a), _converter(c)
{
// Initialize list
for(int i = 0; i < _converter.end; ++i) {
}
set_active(0);
}
{
return get_active_data()->key;
}
{
if(val)
else
set_active(0);
}
{
if(i)
return 0;
}
{
}
void set_active_by_id(E id) {
{
set_active(i);
break;
}
}
};
};
{
Columns()
{
}
};
};
{
const Util::EnumDataConverter<E>& c,
bool mnemonic = true)
{ }
ComboBoxEnum<E>* getCombobox() {
}
};
}
}
}
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :