FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
obs-studio-ftl/UI/window-basic-filters.hpp at develop · mixer/obs-studio-ftl · GitHub
This repository was archived by the owner on Jul 21, 2020. It is now read-only.
mixer
/
obs-studio-ftl
Public archive
forked from
obsproject/obs-studio
Notifications
You must be signed in to change notification settings
Fork
12
Star
95
Code
Issues
6
Pull requests
0
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
obs-studio-ftl
/
UI
/
window-basic-filters.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
112 lines (83 loc) · 3.34 KB
Breadcrumbs
obs-studio-ftl
/
UI
/
window-basic-filters.hpp
Copy path
File metadata and controls
112 lines (83 loc) · 3.34 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
*****************************************************************************
Copyright (C) 2015 by Hugh Bailey <obs.jim@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************
*/
#
pragma
once
#
include
<
QDialog
>
#
include
<
QDialogButtonBox
>
#
include
<
memory
>
#
include
<
obs.hpp
>
#
include
"
properties-view.hpp
"
class
OBSBasic
;
class
QMenu
;
#
include
"
ui_OBSBasicFilters.h
"
class
OBSBasicFilters
:
public
QDialog
{
Q_OBJECT
private:
OBSBasic *main;
std::unique_ptr<Ui::OBSBasicFilters> ui;
OBSSource source;
OBSPropertiesView *view =
nullptr
;
OBSSignal addSignal;
OBSSignal removeSignal;
OBSSignal reorderSignal;
OBSSignal removeSourceSignal;
OBSSignal renameSourceSignal;
inline
OBSSource
GetFilter
(
int
row,
bool
async);
void
UpdateFilters
();
void
UpdatePropertiesView
(
int
row,
bool
async);
static
void
OBSSourceFilterAdded
(
void
*param,
calldata_t
*data);
static
void
OBSSourceFilterRemoved
(
void
*param,
calldata_t
*data);
static
void
OBSSourceReordered
(
void
*param,
calldata_t
*data);
static
void
SourceRemoved
(
void
*param,
calldata_t
*data);
static
void
SourceRenamed
(
void
*param,
calldata_t
*data);
static
void
DrawPreview
(
void
*data,
uint32_t
cx,
uint32_t
cy);
QMenu *
CreateAddFilterPopupMenu
(
bool
async);
void
AddNewFilter
(
const
char
*id);
void
ReorderFilter
(QListWidget *list,
obs_source_t
*filter,
size_t
idx);
void
CustomContextMenu
(
const
QPoint &pos,
bool
async);
void
EditItem
(QListWidgetItem *item,
bool
async);
void
FilterNameEdited
(QWidget *editor, QListWidget *list);
bool
isAsync;
private slots:
void
AddFilter
(OBSSource filter);
void
RemoveFilter
(OBSSource filter);
void
ReorderFilters
();
void
RenameAsyncFilter
();
void
RenameEffectFilter
();
void
ResetFilters
();
void
AddFilterFromAction
();
void
on_addAsyncFilter_clicked
();
void
on_removeAsyncFilter_clicked
();
void
on_moveAsyncFilterUp_clicked
();
void
on_moveAsyncFilterDown_clicked
();
void
on_asyncFilters_currentRowChanged
(
int
row);
void
on_asyncFilters_customContextMenuRequested
(
const
QPoint &pos);
void
on_asyncFilters_GotFocus
();
void
on_addEffectFilter_clicked
();
void
on_removeEffectFilter_clicked
();
void
on_moveEffectFilterUp_clicked
();
void
on_moveEffectFilterDown_clicked
();
void
on_effectFilters_currentRowChanged
(
int
row);
void
on_effectFilters_customContextMenuRequested
(
const
QPoint &pos);
void
on_effectFilters_GotFocus
();
void
AsyncFilterNameEdited
(QWidget *editor,
QAbstractItemDelegate::EndEditHint endHint);
void
EffectFilterNameEdited
(QWidget *editor,
QAbstractItemDelegate::EndEditHint endHint);
public:
OBSBasicFilters
(QWidget *parent, OBSSource source_);
~OBSBasicFilters
();
void
Init
();
protected:
virtual
void
closeEvent
(QCloseEvent *event)
override
;
};
Back
|
FazBrowse Home
|
New Git URL