#include "AbiPaint.h"
Defines | |
#define | ABI_PLUGIN_NAME AbiPaint |
#define | NUM_MENUITEMS G_N_ELEMENTS(amo) |
Functions | |
static | DECLARE_ABI_PLUGIN_METHOD (editImage) |
ABI_GRAYABLE_MENUITEM_PROTOTYPE (editImage) | |
Defun_EV_GetMenuItemComputedLabel_Fn (getEditImageMenuName) | |
static | DECLARE_ABI_PLUGIN_METHOD (specify) |
ABI_TOGGLEABLE_MENUITEM_PROTOTYPE (useBmp) | |
XAP_ModuleInfo * | getModuleInfo (void) |
bool | doRegistration (void) |
void | doUnregistration (void) |
static void | getDefaultApp (std::string &imageApp, bool &bLeaveImageAsPNG) |
Variables | |
XAP_PrefsScheme * | prefsScheme = NULL |
const gchar * | szAbiPluginSchemeName = ABI_PLUGIN_SCHEME_NAME |
const gchar * | ABIPAINT_PREF_KEY_bLeaveImageAsPNG = "bLeaveImageAsPNG" |
const char * | ABIPAINT_PREF_KEY_szProgramName = "szImageEditor" |
static AbiMenuOptions | amo [] |
static XAP_ModuleInfo | AbiPaintModuleInfo |
#define ABI_PLUGIN_NAME AbiPaint |
#define NUM_MENUITEMS G_N_ELEMENTS(amo) |
Referenced by doRegistration(), and doUnregistration().
ABI_GRAYABLE_MENUITEM_PROTOTYPE | ( | editImage | ) |
ABI_TOGGLEABLE_MENUITEM_PROTOTYPE | ( | useBmp | ) |
static DECLARE_ABI_PLUGIN_METHOD | ( | specify | ) | [static] |
static DECLARE_ABI_PLUGIN_METHOD | ( | editImage | ) | [static] |
References XAP_Dialog_MessageBox::a_OK, ABIPAINT_PREF_KEY_bLeaveImageAsPNG, ABIPAINT_PREF_KEY_szProgramName, XAP_Dialog_MessageBox::b_O, FV_View::cmdInsertGraphic(), FV_View::cmdUnselectSelection(), convertBMP2PNG(), convertPNG2BMP(), createChildProcess(), d, endProcess(), FV_View::extSelHorizontal(), XAP_App::getApp(), XAP_Frame::getCurrentView(), getDefaultApp(), XAP_App::getLastFocussedFrame(), XAP_PrefsScheme::getValue(), XAP_PrefsScheme::getValueBool(), isProcessStillAlive(), IE_ImpGraphic::loadGraphic(), lockGUI, XAP_Frame::nullUpdate(), FV_View::saveSelectedImage(), FV_View::setPoint(), XAP_Frame::showMessageBox(), size, unlockGUI, UT_ASSERT, UT_SHOULD_NOT_HAPPEN, UT_UNUSED, UT_usleep, and v.
Defun_EV_GetMenuItemComputedLabel_Fn | ( | getEditImageMenuName | ) |
References ABIPAINT_PREF_KEY_szProgramName, XAP_PrefsScheme::getValue(), UT_basename(), and UT_UNUSED.
bool doRegistration | ( | void | ) |
References ABIPAINT_PREF_KEY_bLeaveImageAsPNG, ABIPAINT_PREF_KEY_szProgramName, XAP_Prefs::addPluginScheme(), addToMenus(), getDefaultApp(), XAP_Prefs::getPluginScheme(), NUM_MENUITEMS, prefs, XAP_PrefsScheme::setValue(), XAP_PrefsScheme::setValueBool(), szAbiPluginSchemeName, and UT_return_val_if_fail.
Referenced by abi_plugin_register().
void doUnregistration | ( | void | ) |
References NUM_MENUITEMS, and removeFromMenus().
Referenced by abi_plugin_unregister().
static void getDefaultApp | ( | std::string & | imageApp, | |
bool & | bLeaveImageAsPNG | |||
) | [static] |
References MAX_PATH, UT_DEBUGMSG, and UT_isRegularFile().
Referenced by DECLARE_ABI_PLUGIN_METHOD(), and doRegistration().
XAP_ModuleInfo* getModuleInfo | ( | void | ) |
Referenced by abi_plugin_register().
const gchar* ABIPAINT_PREF_KEY_bLeaveImageAsPNG = "bLeaveImageAsPNG" |
Referenced by DECLARE_ABI_PLUGIN_METHOD(), and doRegistration().
const char* ABIPAINT_PREF_KEY_szProgramName = "szImageEditor" |
Referenced by DECLARE_ABI_PLUGIN_METHOD(), Defun_EV_GetMenuItemComputedLabel_Fn(), and doRegistration().
XAP_ModuleInfo AbiPaintModuleInfo [static] |
{ "AbiPaint", "Allows editing an embedded image via external image editing program.", ABI_PLUGIN_mkstr(ABI_PLUGIN_VERSION) " for AbiWord " ABI_BUILD_VERSION , "Abi the Ant", "Select Image 1st, then select the action from AbiPaint menu. ;-)", }
AbiMenuOptions amo[] [static] |
{ { ABI_PLUGIN_METHOD_STR(submenu_start), NULL, "AbiPaint", "Allows in place editing of image via external program.", EV_MLF_BeginSubMenu, true, false, false, NULL, NULL, true, false, 0 }, { ABI_PLUGIN_METHOD_STR(editImage), ABI_PLUGIN_METHOD(editImage), "(AbiPaint) &Edit Image", "Opens the selected image for modification (in specified image editing program).", EV_MLF_Normal, false, true, false, ABI_GRAYABLE_MENUITEM(editImage), getEditImageMenuName, true, true, 0 }, { ABI_PLUGIN_METHOD_STR(separator1), NULL, NULL, NULL, EV_MLF_Separator, false, false, false, NULL, NULL, true, false, 0 }, { ABI_PLUGIN_METHOD_STR(specify), ABI_PLUGIN_METHOD(specify), "&Specify Image Editor", "Allows you to specify what image editing program to use, results stored in registry.", EV_MLF_Normal, false, true, false, NULL, NULL, true, false, 0 }, { ABI_PLUGIN_METHOD_STR(submenu_end), NULL, "AbiPaint Submenu End", NULL, EV_MLF_EndSubMenu, true, false, false, NULL, NULL, true, false, 0 }, }
XAP_PrefsScheme* prefsScheme = NULL |
const gchar* szAbiPluginSchemeName = ABI_PLUGIN_SCHEME_NAME |
Referenced by doRegistration().