Ardour
9.0-pre0-582-g084a23a80d
soundcloud_export_selector.h
Go to the documentation of this file.
1
/*soundcloud_export_selector.h***********************************************
2
3
Adapted for Ardour by Ben Loftis, March 2012
4
5
*****************************************************************************/
6
#pragma once
7
8
#include <string>
9
#include <stdio.h>
10
#include <cstring>
11
#include <string>
12
#include <sstream>
13
#include <vector>
14
15
#include <
gtkmm/box.h
>
16
#include <
gtkmm/checkbutton.h
>
17
#include <
gtkmm/entry.h
>
18
#include <
gtkmm/label.h
>
19
#include <
gtkmm/progressbar.h
>
20
#include <
gtkmm/table.h
>
21
22
#include "
ardour/session_handle.h
"
23
24
class
SoundcloudExportSelector
:
public
Gtk::VBox
,
public
ARDOUR::SessionHandlePtr
25
{
26
public
:
27
SoundcloudExportSelector
();
28
int
do_progress_callback
(
double
ultotal,
double
ulnow,
const
std::string &filename);
29
std::string
username
() {
return
soundcloud_username_entry
.
get_text
(); }
30
std::string
password
() {
return
soundcloud_password_entry
.
get_text
(); }
31
bool
make_public
() {
return
soundcloud_public_checkbox
.
get_active
(); }
32
bool
open_page
() {
return
soundcloud_open_checkbox
.
get_active
(); }
33
bool
downloadable
() {
return
soundcloud_download_checkbox
.
get_active
(); }
34
void
cancel
() {
soundcloud_cancel
=
true
; }
35
36
private
:
37
Gtk::Table
sc_table
;
38
Gtk::Label
soundcloud_username_label
;
39
Gtk::Entry
soundcloud_username_entry
;
40
Gtk::Label
soundcloud_password_label
;
41
Gtk::Entry
soundcloud_password_entry
;
42
Gtk::CheckButton
soundcloud_public_checkbox
;
43
Gtk::CheckButton
soundcloud_open_checkbox
;
44
Gtk::CheckButton
soundcloud_download_checkbox
;
45
bool
soundcloud_cancel
;
46
Gtk::ProgressBar
progress_bar
;
47
48
};
49
checkbutton.h
ARDOUR::SessionHandlePtr
Definition:
session_handle.h:46
Gtk::CheckButton
Definition:
checkbutton.h:56
Gtk::Entry
Definition:
entry.h:101
Gtk::Entry::get_text
Glib::ustring get_text() const
Gtk::Label
Definition:
label.h:55
Gtk::ProgressBar
Definition:
progressbar.h:109
Gtk::Table
Definition:
tk/ytkmm/ytkmm/gtkmm/table.h:184
Gtk::ToggleButton::get_active
bool get_active() const
Gtk::VBox
Definition:
tk/ytkmm/ytkmm/gtkmm/box.h:505
SoundcloudExportSelector
Definition:
soundcloud_export_selector.h:25
SoundcloudExportSelector::soundcloud_public_checkbox
Gtk::CheckButton soundcloud_public_checkbox
Definition:
soundcloud_export_selector.h:42
SoundcloudExportSelector::open_page
bool open_page()
Definition:
soundcloud_export_selector.h:32
SoundcloudExportSelector::cancel
void cancel()
Definition:
soundcloud_export_selector.h:34
SoundcloudExportSelector::progress_bar
Gtk::ProgressBar progress_bar
Definition:
soundcloud_export_selector.h:46
SoundcloudExportSelector::sc_table
Gtk::Table sc_table
Definition:
soundcloud_export_selector.h:37
SoundcloudExportSelector::soundcloud_open_checkbox
Gtk::CheckButton soundcloud_open_checkbox
Definition:
soundcloud_export_selector.h:43
SoundcloudExportSelector::username
std::string username()
Definition:
soundcloud_export_selector.h:29
SoundcloudExportSelector::SoundcloudExportSelector
SoundcloudExportSelector()
SoundcloudExportSelector::soundcloud_username_entry
Gtk::Entry soundcloud_username_entry
Definition:
soundcloud_export_selector.h:39
SoundcloudExportSelector::soundcloud_password_label
Gtk::Label soundcloud_password_label
Definition:
soundcloud_export_selector.h:40
SoundcloudExportSelector::make_public
bool make_public()
Definition:
soundcloud_export_selector.h:31
SoundcloudExportSelector::soundcloud_username_label
Gtk::Label soundcloud_username_label
Definition:
soundcloud_export_selector.h:38
SoundcloudExportSelector::do_progress_callback
int do_progress_callback(double ultotal, double ulnow, const std::string &filename)
SoundcloudExportSelector::soundcloud_cancel
bool soundcloud_cancel
Definition:
soundcloud_export_selector.h:45
SoundcloudExportSelector::downloadable
bool downloadable()
Definition:
soundcloud_export_selector.h:33
SoundcloudExportSelector::soundcloud_download_checkbox
Gtk::CheckButton soundcloud_download_checkbox
Definition:
soundcloud_export_selector.h:44
SoundcloudExportSelector::soundcloud_password_entry
Gtk::Entry soundcloud_password_entry
Definition:
soundcloud_export_selector.h:41
SoundcloudExportSelector::password
std::string password()
Definition:
soundcloud_export_selector.h:30
entry.h
label.h
progressbar.h
session_handle.h
box.h
table.h
gtk2_ardour
soundcloud_export_selector.h
Generated on Wed Dec 25 2024 05:44:48 for Ardour by
1.9.1