// -*- C++ -*- /* * GChemPaint text plugin * plugin.cc * * Copyright (C) 2004 Jean Bréfort * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA */ #include "gchempaint-config.h" #include "plugin.h" #include "lib/application.h" #include "lib/text.h" #include "lib/fragment.h" #include "texttool.h" #include "fragmenttool.h" #include "gcp-stock-pixbufs.h" #include gcpTextPlugin plugin; gcpTextPlugin::gcpTextPlugin(): gcpPlugin() { } gcpTextPlugin::~gcpTextPlugin() { } static gcpIconDesc icon_descs[] = { {"gcp_Text", gcp_text_24}, {"gcp_Fragment", gcp_fragment_24}, {NULL, NULL}, }; static GtkRadioActionEntry entries[] = { { "Text", "gcp_Text", N_("Text"), NULL, N_("Add or modify a text"), 0 }, { "Fragment", "gcp_Fragment", N_("Erase"), NULL, N_("Add or modify a group of atoms"), 0 }, }; static const char *ui_description = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; void gcpTextPlugin::Populate (gcpApplication* App) { App->AddActions (entries, G_N_ELEMENTS (entries), ui_description, icon_descs); new gcpTextTool (App); new gcpFragmentTool (App); }