Ardour
9.0-pre0-582-g084a23a80d
popup.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1998 Paul Davis <paul@linuxaudiosystems.com>
3
* Copyright (C) 2017 Robin Gareus <robin@gareus.org>
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
#ifndef _WIDGETS_POPUP_H_
21
#define _WIDGETS_POPUP_H_
22
23
#ifdef interface
24
#undef interface
25
#endif
26
27
#include <string>
28
29
#include <
gtkmm/label.h
>
30
#include <
gtkmm/window.h
>
31
32
#include <
pbd/touchable.h
>
33
34
#include "
widgets/visibility.h
"
35
36
namespace
ArdourWidgets
{
37
38
class
LIBWIDGETS_API
PopUp
:
public
Gtk::Window
,
public
Touchable
39
{
40
public
:
41
PopUp
(
Gtk::WindowPosition
pos,
unsigned
int
show_for_msecs = 0,
42
bool
delete_on_hide =
false
);
43
virtual
~PopUp
();
44
void
touch
();
45
void
remove
();
46
void
set_text
(std::string);
47
void
set_name
(std::string);
48
gint
button_click
(
GdkEventButton
*);
49
50
bool
on_delete_event
(
GdkEventAny
* );
51
52
protected
:
53
void
on_realize
();
54
55
private
:
56
Gtk::Label
label
;
57
std::string
my_text
;
58
gint
timeout
;
59
static
gint
remove_prompt_timeout
(
void
*);
60
bool
delete_on_hide
;
61
unsigned
int
popdown_time
;
62
};
63
64
}
/* namespace */
65
66
#endif
ArdourWidgets::PopUp
Definition:
popup.h:39
ArdourWidgets::PopUp::remove
void remove()
ArdourWidgets::PopUp::delete_on_hide
bool delete_on_hide
Definition:
popup.h:60
ArdourWidgets::PopUp::remove_prompt_timeout
static gint remove_prompt_timeout(void *)
ArdourWidgets::PopUp::on_realize
void on_realize()
This is a default handler for the signal signal_realize().
ArdourWidgets::PopUp::timeout
gint timeout
Definition:
popup.h:58
ArdourWidgets::PopUp::~PopUp
virtual ~PopUp()
ArdourWidgets::PopUp::my_text
std::string my_text
Definition:
popup.h:57
ArdourWidgets::PopUp::label
Gtk::Label label
Definition:
popup.h:56
ArdourWidgets::PopUp::set_name
void set_name(std::string)
ArdourWidgets::PopUp::popdown_time
unsigned int popdown_time
Definition:
popup.h:61
ArdourWidgets::PopUp::button_click
gint button_click(GdkEventButton *)
ArdourWidgets::PopUp::PopUp
PopUp(Gtk::WindowPosition pos, unsigned int show_for_msecs=0, bool delete_on_hide=false)
ArdourWidgets::PopUp::on_delete_event
bool on_delete_event(GdkEventAny *)
This is a default handler for the signal signal_delete_event().
ArdourWidgets::PopUp::set_text
void set_text(std::string)
ArdourWidgets::PopUp::touch
void touch()
Gtk::Label
Definition:
label.h:55
Gtk::Window
Definition:
ytkmm/ytkmm/gtkmm/window.h:159
Touchable
Definition:
touchable.h:24
Gtk::WindowPosition
WindowPosition
Definition:
libs/tk/ytkmm/ytkmm/gtkmm/enums.h:1338
label.h
ArdourWidgets
Definition:
ardour_ui.h:192
_GdkEventAny
Definition:
gdkevents.h:274
_GdkEventButton
Definition:
gdkevents.h:321
touchable.h
visibility.h
LIBWIDGETS_API
#define LIBWIDGETS_API
Definition:
widgets/widgets/visibility.h:39
window.h
libs
widgets
widgets
popup.h
Generated on Wed Dec 25 2024 05:44:45 for Ardour by
1.9.1