~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/dragscroll/dragscrollevent.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************
 
2
 * Name:      DragScrollEvent
 
3
 *
 
4
 * Purpose:   This class implements the events sent by/for a
 
5
 *            DragScroll request to the
 
6
 *            DragScroll plugin to request services such as
 
7
 *            start/end scroll monitoring of an open window.
 
8
 *            wxCommandEvent m_id contains a window id.
 
9
 *
 
10
 * Author:    Pecan
 
11
 * Created:   2008/4/01
 
12
 * Copyright: Pecan
 
13
 * License:   GPL
 
14
 **************************************************************/
 
15
#ifndef DRAGSCROLL_EVENT_H
 
16
#define DRAGSCROLL_EVENT_H
 
17
 
 
18
#include <wx/event.h>
 
19
class cbPlugin;
 
20
 
 
21
        enum {
 
22
            idDragScrollAddWindow = 1,
 
23
            idDragScrollRemoveWindow,
 
24
            idDragScrollRescan,
 
25
            idDragScrollReadConfig,
 
26
            idDragScrollInvokeConfig
 
27
    };
 
28
// ----------------------------------------------------------------------------
 
29
class DragScrollEvent : public wxCommandEvent
 
30
// ----------------------------------------------------------------------------
 
31
{
 
32
public:
 
33
        /** Constructor. */
 
34
        DragScrollEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
 
35
 
 
36
        /** Copy constructor. */
 
37
        DragScrollEvent( const DragScrollEvent& event);
 
38
 
 
39
        /** Destructor. */
 
40
        ~DragScrollEvent();
 
41
 
 
42
        virtual wxEvent* Clone() const { return new DragScrollEvent(*this);}
 
43
 
 
44
        DECLARE_DYNAMIC_CLASS(DragScrollEvent);
 
45
 
 
46
        wxString  GetEventTypeLabel() const {return m_EventTypeLabel;}
 
47
 
 
48
    bool      PostDragScrollEvent(const cbPlugin* targetWin);
 
49
    bool      ProcessDragScrollEvent(const cbPlugin* targetWin);
 
50
 
 
51
private:
 
52
        //-int        m_WindowID;
 
53
        //-wxWindow*  m_pWindow;
 
54
        wxString   m_EventTypeLabel;
 
55
};
 
56
 
 
57
typedef void (wxEvtHandler::*DragScrollEventFunction)(DragScrollEvent&);
 
58
 
 
59
 
 
60
extern const wxEventType wxEVT_DRAGSCROLL_EVENT;
 
61
#define EVT_DRAGSCROLL_EVENT(id, fn) \
 
62
        DECLARE_EVENT_TABLE_ENTRY(wxEVT_DRAGSCROLL_EVENT, id, -1, \
 
63
        (wxObjectEventFunction)(wxEventFunction) (DragScrollEventFunction) & fn,(wxObject *) NULL ),
 
64
 
 
65
#endif // DRAGSCROLL_EVENT_H
 
66
 
 
67