Ardour
9.0-pre0-582-g084a23a80d
video_server_dialog.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
#pragma once
19
20
#include <string>
21
22
#include <
gtkmm/adjustment.h
>
23
#include <
gtkmm/button.h
>
24
#include <
gtkmm/checkbutton.h
>
25
#include <
gtkmm/comboboxtext.h
>
26
#include <
gtkmm/entry.h
>
27
#include <
gtkmm/label.h
>
28
#include <
gtkmm/spinbutton.h
>
29
30
#include "
ardour/types.h
"
31
#include "
ardour/template_utils.h
"
32
#include "
ardour_dialog.h
"
33
37
class
VideoServerDialog
:
public
ArdourDialog
38
{
39
public
:
40
VideoServerDialog
(
ARDOUR::Session
*);
41
~VideoServerDialog
();
42
43
std::string
get_exec_path
() {
return
path_entry
.
get_text
(); }
44
std::string
get_docroot
();
45
std::string
get_listenaddr
() {
return
listenaddr_combo
.
get_active_text
();}
46
int
get_listenport
() {
return
listenport_spinner
.
get_value_as_int
();}
47
int
get_cachesize
() {
return
cachesize_spinner
.
get_value_as_int
();}
48
bool
show_again
() {
return
showagain_checkbox
.
get_active
();}
49
50
private
:
51
void
on_show
();
52
void
open_path_dialog
();
53
void
open_docroot_dialog
();
54
55
Gtk::Label
path_label
;
56
Gtk::Entry
path_entry
;
57
Gtk::Button
path_browse_button
;
58
59
Gtk::Label
docroot_label
;
60
Gtk::Entry
docroot_entry
;
61
Gtk::Button
docroot_browse_button
;
62
63
Gtk::ComboBoxText
listenaddr_combo
;
64
Gtk::Adjustment
listenport_adjustment
;
65
Gtk::SpinButton
listenport_spinner
;
66
Gtk::Adjustment
cachesize_adjustment
;
67
Gtk::SpinButton
cachesize_spinner
;
68
Gtk::CheckButton
showagain_checkbox
;
69
};
70
adjustment.h
types.h
ardour_dialog.h
checkbutton.h
ARDOUR::Session
Definition:
session.h:211
ArdourDialog
Definition:
ardour_dialog.h:40
Gtk::Adjustment
Definition:
adjustment.h:63
Gtk::Button
Definition:
tk/ytkmm/ytkmm/gtkmm/button.h:60
Gtk::CheckButton
Definition:
checkbutton.h:56
Gtk::ComboBoxText
Definition:
comboboxtext.h:55
Gtk::ComboBoxText::get_active_text
Glib::ustring get_active_text() const
Gtk::Entry
Definition:
entry.h:101
Gtk::Entry::get_text
Glib::ustring get_text() const
Gtk::Label
Definition:
label.h:55
Gtk::SpinButton
Definition:
spinbutton.h:127
Gtk::SpinButton::get_value_as_int
int get_value_as_int() const
Gtk::ToggleButton::get_active
bool get_active() const
VideoServerDialog
dialog box to collect video-server settings
Definition:
video_server_dialog.h:38
VideoServerDialog::listenport_adjustment
Gtk::Adjustment listenport_adjustment
Definition:
video_server_dialog.h:64
VideoServerDialog::path_label
Gtk::Label path_label
Definition:
video_server_dialog.h:55
VideoServerDialog::show_again
bool show_again()
Definition:
video_server_dialog.h:48
VideoServerDialog::open_path_dialog
void open_path_dialog()
VideoServerDialog::showagain_checkbox
Gtk::CheckButton showagain_checkbox
Definition:
video_server_dialog.h:68
VideoServerDialog::~VideoServerDialog
~VideoServerDialog()
VideoServerDialog::cachesize_spinner
Gtk::SpinButton cachesize_spinner
Definition:
video_server_dialog.h:67
VideoServerDialog::listenport_spinner
Gtk::SpinButton listenport_spinner
Definition:
video_server_dialog.h:65
VideoServerDialog::open_docroot_dialog
void open_docroot_dialog()
VideoServerDialog::docroot_entry
Gtk::Entry docroot_entry
Definition:
video_server_dialog.h:60
VideoServerDialog::VideoServerDialog
VideoServerDialog(ARDOUR::Session *)
VideoServerDialog::docroot_browse_button
Gtk::Button docroot_browse_button
Definition:
video_server_dialog.h:61
VideoServerDialog::get_listenaddr
std::string get_listenaddr()
Definition:
video_server_dialog.h:45
VideoServerDialog::get_listenport
int get_listenport()
Definition:
video_server_dialog.h:46
VideoServerDialog::cachesize_adjustment
Gtk::Adjustment cachesize_adjustment
Definition:
video_server_dialog.h:66
VideoServerDialog::on_show
void on_show()
This is a default handler for the signal signal_show().
VideoServerDialog::listenaddr_combo
Gtk::ComboBoxText listenaddr_combo
Definition:
video_server_dialog.h:63
VideoServerDialog::get_exec_path
std::string get_exec_path()
Definition:
video_server_dialog.h:43
VideoServerDialog::docroot_label
Gtk::Label docroot_label
Definition:
video_server_dialog.h:59
VideoServerDialog::path_entry
Gtk::Entry path_entry
Definition:
video_server_dialog.h:56
VideoServerDialog::get_docroot
std::string get_docroot()
VideoServerDialog::path_browse_button
Gtk::Button path_browse_button
Definition:
video_server_dialog.h:57
VideoServerDialog::get_cachesize
int get_cachesize()
Definition:
video_server_dialog.h:47
comboboxtext.h
entry.h
label.h
spinbutton.h
template_utils.h
button.h
gtk2_ardour
video_server_dialog.h
Generated on Wed Dec 25 2024 05:44:57 for Ardour by
1.9.1