forked from humdingerb/quicklaunch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIgnoreListView.h
46 lines (35 loc) · 923 Bytes
/
IgnoreListView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Copyright 2010-2017. All rights reserved.
* Distributed under the terms of the MIT license.
*
* Author:
* Humdinger, [email protected]
*/
#ifndef SETUP_LISTVIEW_H
#define SETUP_LISTVIEW_H
#include <ListView.h>
#include <PopUpMenu.h>
#include <String.h>
#include <stdio.h>
class IgnoreListView : public BListView {
public:
IgnoreListView();
~IgnoreListView();
virtual void Draw(BRect rect);
virtual void FrameResized(float w, float h);
virtual void KeyDown(const char* bytes, int32 numBytes);
virtual void MessageReceived(BMessage* message);
void MouseDown(BPoint position);
virtual void SelectionChanged();
private:
void _ShowPopUpMenu(BPoint screen);
bool fShowingPopUpMenu;
};
class ContextPopUp : public BPopUpMenu {
public:
ContextPopUp(const char* name, BMessenger target);
virtual ~ContextPopUp();
private:
BMessenger fTarget;
};
#endif // SETUP_LISTVIEW_H