~bilalakhtar/unity/software-center-integration-for-o

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/DNDCollectionWindow.h

  • Committer: Bilal Akhtar
  • Date: 2012-01-15 14:03:49 UTC
  • mfrom: (1346.2.488 unity)
  • Revision ID: bilalakhtar@ubuntu.com-20120115140349-mht4dke0occbsyra
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <list>
24
24
 
25
 
#include <core/screen.h>
26
25
#include <Nux/Nux.h>
27
26
#include <Nux/BaseWindow.h>
28
27
#include <sigc++/sigc++.h>
29
28
 
30
29
namespace unity {
 
30
 
 
31
/**
 
32
 * DNDCollectionWindow makes it possible to collect drag and drop (dnd) data as
 
33
 * soon as dnd starts and not when the mouse pointer enter the x window. 
 
34
 **/
31
35
  
32
36
class DNDCollectionWindow : public nux::BaseWindow
33
37
{
38
42
  DNDCollectionWindow();
39
43
  ~DNDCollectionWindow();
40
44
  
 
45
  void Collect();
 
46
  
41
47
private:
42
48
  void ProcessDndMove(int x, int y, std::list<char*> mimes);
 
49
  void OnWindowMoved(guint32 xid);
43
50
 
44
51
// Members
45
52
public:
 
53
  nux::Property<Display*> display;
 
54
 
46
55
  sigc::signal<void, const std::list<char*>&> collected;
47
56
  
48
57
private:
49
58
  std::list<char*> mimes_;
50
 
  
51
59
};
52
60
  
53
61
} // namespace unity