#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "xap_Module.h"
#include "xap_App.h"
#include "xap_Frame.h"
#include "fv_View.h"
#include "ap_Menu_Id.h"
#include "ev_Menu_Actions.h"
#include "ev_Menu.h"
#include "ev_Menu_Layouts.h"
#include "ev_Menu_Labels.h"
#include "ev_EditMethod.h"
#include "xap_Menu_Layouts.h"
#include "fg_Graphic.h"
#include "ie_imp.h"
#include "ie_impGraphic.h"
#include "ie_exp.h"
#include "ie_types.h"
#include "ut_sleep.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
#include "ut_files.h"
Defines | |
#define | ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
Functions | |
static bool | AbiGimp_invoke (AV_View *v, EV_EditMethodCallData *d) |
static void | AbiGimp_addToMenus () |
static void | AbiGimp_RemoveFromMenus () |
ABI_BUILTIN_FAR_CALL int | abi_plugin_register (XAP_ModuleInfo *mi) |
ABI_BUILTIN_FAR_CALL int | abi_plugin_unregister (XAP_ModuleInfo *mi) |
ABI_BUILTIN_FAR_CALL int | abi_plugin_supports_version (UT_uint32, UT_uint32, UT_uint32) |
Variables | |
static const char * | AbiGimp_MenuLabel = "&Edit Image via GIMP" |
static const char * | AbiGimp_MenuTooltip = "Opens the selected image in the GIMP for editing." |
#define ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
ABI_BUILTIN_FAR_CALL int abi_plugin_register | ( | XAP_ModuleInfo * | mi | ) |
ABI_BUILTIN_FAR_CALL int abi_plugin_unregister | ( | XAP_ModuleInfo * | mi | ) |
static void AbiGimp_addToMenus | ( | ) | [static] |
References AbiGimp_invoke(), EV_Menu_ActionSet::addAction(), EV_EditMethodContainer::addEditMethod(), XAP_Menu_Factory::addNewLabel(), XAP_Menu_Factory::addNewMenuAfter(), EV_MLF_Normal, XAP_App::getApp(), XAP_App::getEditMethodContainer(), XAP_App::getFrame(), XAP_App::getFrameCount(), XAP_App::getMenuActionSet(), XAP_App::getMenuFactory(), and XAP_Frame::rebuildMenus().
Referenced by abi_plugin_register().
bool AbiGimp_invoke | ( | AV_View * | v, | |
EV_EditMethodCallData * | d | |||
) | [static] |
References XAP_Dialog_MessageBox::a_OK, XAP_Dialog_MessageBox::b_O, UT_String::c_str(), FV_View::cmdInsertGraphic(), FV_View::cmdUnselectSelection(), CreateChildProcess(), ev_EditMethod_invoke(), FV_View::extSelHorizontal(), EV_EditMethodContainer::findEditMethodByName(), XAP_App::getApp(), XAP_Frame::getCurrentView(), XAP_App::getEditMethodContainer(), XAP_App::getLastFocussedFrame(), IE_ImpGraphic::loadGraphic(), lockGUI, XAP_Frame::nullUpdate(), FV_View::saveSelectedImage(), FV_View::setPoint(), XAP_Frame::showMessageBox(), size, unlockGUI, UT_ASSERT_HARMLESS, UT_SHOULD_NOT_HAPPEN, and UT_usleep.
Referenced by AbiGimp_addToMenus().
static void AbiGimp_RemoveFromMenus | ( | ) | [static] |
References DELETEP, ev_EditMethod_lookup(), XAP_App::getApp(), XAP_App::getEditMethodContainer(), XAP_App::getFrame(), XAP_App::getFrameCount(), XAP_App::getMenuFactory(), XAP_Frame::rebuildMenus(), EV_EditMethodContainer::removeEditMethod(), and XAP_Menu_Factory::removeMenuItem().
Referenced by abi_plugin_unregister().
const char* AbiGimp_MenuLabel = "&Edit Image via GIMP" [static] |
const char* AbiGimp_MenuTooltip = "Opens the selected image in the GIMP for editing." [static] |