+SketcherAliasItem::SketcherAliasItem(SketcherAliasing *popup, int v)
+ : BC_MenuItem(popup->alias_to_text(v))
+{
+ this->popup = popup;
+ this->v = v;
+}
+
+int SketcherAliasItem::handle_event()
+{
+ popup->set_text(get_text());
+ popup->plugin->config.aliasing = v;
+ popup->gui->send_configure_change();
+ return 1;
+}
+
+
+SketcherAliasing::SketcherAliasing(SketcherWindow *gui, Sketcher *plugin,
+ int x, int y)
+ : BC_PopupMenu(x, y, xS(80),
+ alias_to_text(plugin->config.aliasing), 1, 0, xS(3))
+{
+ this->gui = gui;
+ this->plugin = plugin;
+ set_tooltip(_("Anti-Aliasing"));
+}
+SketcherAliasing::~SketcherAliasing()
+{
+}
+
+void SketcherAliasing::create_objects()
+{
+ add_item(new SketcherAliasItem(this, -1));
+ add_item(new SketcherAliasItem(this, 0));
+ add_item(new SketcherAliasItem(this, 1));
+}
+
+const char *SketcherAliasing::alias_to_text(int alias)
+{
+ if( alias < 0 ) return _("Off");
+ if( alias > 0 ) return _("Double");
+ return _("On");
+}
+
+
+