forked from ebu/MXFTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremoteStreamFileChooser.cpp
70 lines (64 loc) · 1.17 KB
/
remoteStreamFileChooser.cpp
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
/*!
* \project_name EBU Player
* \file remoteStreamFileChooser.cpp
* \brief remote stream window function
* \authors Marco Dos Santos Oliveira
* \version 0.1
* \date 11 march 2013
*
* This software is published in LGPLv3.0
*
*/
#include "remoteStreamFileChooser.hpp"
remoteStreamFileChooser::remoteStreamFileChooser
(
Gtk::Window& windowParent,
std::string windowTitle,
std::string messageDialog,
bool modal
)
:
Gtk::Dialog(windowTitle, modal),
remoteStreamBox(get_content_area()),
remoteStreamLabel(messageDialog)
{
remoteStreamBox->pack_start(remoteStreamLabel);
remoteStreamBox->pack_start(pathToRemoteStreamEntry);
// transient for this
set_transient_for(windowParent);
// append filechooser buttons and linked events
add_button
(
Gtk::Stock::CANCEL,
Gtk::RESPONSE_CANCEL
);
add_button
(
Gtk::Stock::OK,
Gtk::RESPONSE_OK
);
//
show_all();
// run the filechooser and grab the result
response = run();
}
remoteStreamFileChooser::~remoteStreamFileChooser
(
void
)
{
}
std::string remoteStreamFileChooser::getURL
(
void
)
{
return pathToRemoteStreamEntry.get_text();
}
int remoteStreamFileChooser::getResponse
(
void
)
{
return response;
}