Horizon
src
widgets
location_entry.hpp
1
#pragma once
2
#include <gtkmm.h>
3
4
namespace
horizon {
5
6
class
LocationEntry
:
public
Gtk::Box {
7
public
:
8
LocationEntry
(
const
std::string &rel =
""
);
9
void
set_filename(
const
std::string &s);
10
void
set_rel_filename(
const
std::string &s);
11
void
set_relative_to(
const
std::string &s);
12
std::string get_filename();
13
void
set_warning(
const
std::string &t);
14
15
typedef
sigc::signal<void> type_signal_changed;
16
type_signal_changed signal_changed()
17
{
18
return
s_signal_changed;
19
}
20
21
bool
check_ends_json(
bool
*v =
nullptr
);
22
void
set_append_json(
bool
s);
23
24
private
:
25
std::string relative_to;
26
std::string get_rel_filename(
const
std::string &s)
const
;
27
Gtk::Entry *entry =
nullptr
;
28
bool
autoappend_json =
false
;
29
void
handle_button();
30
31
type_signal_changed s_signal_changed;
32
};
33
}
// namespace horizon
horizon::LocationEntry
Definition:
location_entry.hpp:6
Generated by
1.9.1