forked from humdingerb/quicklaunch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetupWindow.h
82 lines (68 loc) · 1.7 KB
/
SetupWindow.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* Copyright 2010-2018. All rights reserved.
* Distributed under the terms of the MIT license.
*
* Author:
* Humdinger, [email protected]
*/
#ifndef SETUP_WINDOW_H
#define SETUP_WINDOW_H
#include "IgnoreListView.h"
#include "QLSettings.h"
#include <Application.h>
#include <Button.h>
#include <CheckBox.h>
#include <Entry.h>
#include <FilePanel.h>
#include <FindDirectory.h>
#include <GroupLayout.h>
#include <GroupLayoutBuilder.h>
#include <ListView.h>
#include <ListItem.h>
#include <Message.h>
#include <Path.h>
#include <Screen.h>
#include <ScrollView.h>
#include <Window.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define DESKBAR_CHK 'chdb'
#define VERSION_CHK 'chve'
#define PATH_CHK 'chpa'
#define DELAY_CHK 'chde'
#define SEARCHSTART_CHK 'chst'
#define SAVESEARCH_CHK 'chss'
#define SINGLECLICK_CHK 'ch1c'
#define ONTOP_CHK 'chot'
#define IGNORE_CHK 'chig'
#define ADD_BUT 'addb'
#define REM_BUT 'remb'
#define FILEPANEL 'file'
#define POPCLOSE 'clpo'
class SetupWindow : public BWindow {
public:
SetupWindow(BRect frame);
virtual ~SetupWindow();
bool QuitRequested();
void MessageReceived(BMessage* message);
BCheckBox* fChkDeskbar;
BCheckBox* fChkVersion;
BCheckBox* fChkPath;
BCheckBox* fChkSearchStart;
BCheckBox* fChkDelay;
BCheckBox* fChkSaveSearch;
BCheckBox* fChkSingleClick;
BCheckBox* fChkOnTop;
BCheckBox* fChkIgnore;
BButton* fButRem;
private:
void _GetSelectedItems(BList& indices);
void _RemoveSelected(); // uses RemoveItemList()
virtual void _RemoveItemList(const BList& indices);
BScrollView* fIgnoreScroll;
BButton* fButAdd;
BFilePanel* fOpenPanel;
IgnoreListView* fIgnoreList;
};
#endif // SETUP_WINDOW_H