diff options
author | nobody <nobody@localhost> | 2002-05-16 00:19:25 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2002-05-16 00:19:25 +0800 |
commit | 1a32d27f6e1042f69e74ee41e8a64031936b2636 (patch) | |
tree | 9a14849dd3a40bd1667b88d689e2aa7d58d08bce /shell/Evolution-ShellComponentDnd.idl | |
parent | 74f4231f4eb650f0243ff39ab5a085b1df4f7697 (diff) | |
download | gsoc2013-evolution-GEDIT_1_121_1.tar.gz gsoc2013-evolution-GEDIT_1_121_1.tar.zst gsoc2013-evolution-GEDIT_1_121_1.zip |
This commit was manufactured by cvs2svn to create tagGEDIT_1_121_1
'GEDIT_1_121_1'.
svn path=/tags/GEDIT_1_121_1/; revision=16829
Diffstat (limited to 'shell/Evolution-ShellComponentDnd.idl')
-rw-r--r-- | shell/Evolution-ShellComponentDnd.idl | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/shell/Evolution-ShellComponentDnd.idl b/shell/Evolution-ShellComponentDnd.idl deleted file mode 100644 index c0c4c5a469..0000000000 --- a/shell/Evolution-ShellComponentDnd.idl +++ /dev/null @@ -1,98 +0,0 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * Interface for the Evolution components that want to support Drag and Drop - * operations on their folders. - * - * Authors: - * Ettore Perazzoli <ettore@ximian.com> - * - * Copyright (C) 2001 Ximian, Inc. - */ - -#include <Bonobo.h> - -module GNOME { -module Evolution { -module ShellComponentDnd { - typedef short Action; - const Action ACTION_DEFAULT = 0; - const Action ACTION_COPY = 1 << 1; - const Action ACTION_MOVE = 1 << 2; - const Action ACTION_LINK = 1 << 3; - const Action ACTION_ASK = 1 << 4; - const Action ACTION_ANY = ACTION_COPY | ACTION_MOVE | ACTION_LINK | ACTION_ASK; - - typedef Action ActionSet; // For readability. - - struct Data { - short format; - short target; - sequence <octet> bytes; - }; - - exception NoData {}; - - interface SourceFolder : Bonobo::Unknown { - struct Context { - string physicalUri; - string folderType; - ActionSet possibleActions; - Action suggestedAction; - }; - - /* The user started a drag from this object. If the component - receives this while still in the middle of an existing drag - operation, it should stop the existing drag operation and - start a new one. */ - void beginDrag (in string physical_uri, - in string folder_type, - out ActionSet possible_actions, - out Action suggested_action); - - /* User released the mouse button and dropped the object - somewhere, so we now want to get the data for the current - context. */ - void getData (in Context source_context, - in Action action, - in string dnd_type, - out Data data) - raises (NoData); - - /* The target has finished processing the data, so we can - delete it. */ - void deleteData (in Context source_context); - - /* The drag is over. This should also clean up the data if - there was a `getData()' but no `deleteData()' after it. */ - void endDrag (in Context source_context); - }; - - interface DestinationFolder : Bonobo::Unknown { - struct Context { - string dndType; - ActionSet possibleActions; - Action suggestedAction; - }; - - /* The user is moving a dragged object over our folder. This - will return %FALSE if the specified object cannot be - dropped; otherwise, it will return %TRUE and then set the - @default_action and @non_default_action we want to be - performed when the drop happens. */ - boolean handleMotion (in string physical_uri, - in string folder_type, - in Context destination_context, - out Action suggested_action); - - /* Data is dropped. We are given the data for the dropped - object, and we are supposed to perform the operation - requested. */ - boolean handleDrop (in string physical_uri, - in string folder_type, - in Context destination_context, - in Action action, - in Data data); - }; -}; -}; -}; |