1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
1 |
/*
|
1.1.18
by Scott Evans
Import upstream version 1.3.6 |
2 |
* Copyright (C) 2011 Michael Lamothe
|
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
3 |
*
|
4 |
* This file is part of Me TV
|
|
5 |
*
|
|
6 |
* This program is free software; you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License as published by
|
|
8 |
* the Free Software Foundation; either version 2 of the License, or
|
|
9 |
* (at your option) any later version.
|
|
10 |
*
|
|
11 |
* This program is distributed in the hope that it will be useful,
|
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 |
* GNU Library General Public License for more details.
|
|
15 |
*
|
|
16 |
* You should have received a copy of the GNU General Public License
|
|
17 |
* along with this program; if not, write to the Free Software
|
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
|
|
19 |
*/
|
|
20 |
||
21 |
#ifndef __CHANNELS_DIALOG_H__
|
|
22 |
#define __CHANNELS_DIALOG_H__
|
|
23 |
||
1.1.11
by Julian Andres Klode
Import upstream version 1.1.6 |
24 |
#include <gtkmm.h> |
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
25 |
|
26 |
class ChannelsDialog : public Gtk::Dialog |
|
27 |
{
|
|
28 |
private: |
|
1.1.13
by Michael Lamothe
Import upstream version 1.2.6 |
29 |
typedef enum |
30 |
{
|
|
31 |
CHANNEL_CONFLICT_ACTION_NONE, |
|
32 |
CHANNEL_CONFLICT_OVERWRITE, |
|
33 |
CHANNEL_CONFLICT_KEEP, |
|
34 |
CHANNEL_CONFLICT_RENAME, |
|
35 |
} ChannelConflictAction; |
|
36 |
||
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
37 |
class ModelColumns : public Gtk::TreeModelColumnRecord |
38 |
{
|
|
39 |
public: |
|
40 |
ModelColumns() |
|
41 |
{
|
|
42 |
add(column_name); |
|
1.1.12
by Michael Lamothe
Import upstream version 1.2.4 |
43 |
add(column_frequency); |
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
44 |
add(column_channel); |
45 |
}
|
|
46 |
||
47 |
Gtk::TreeModelColumn<Glib::ustring> column_name; |
|
1.1.12
by Michael Lamothe
Import upstream version 1.2.4 |
48 |
Gtk::TreeModelColumn<guint> column_frequency; |
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
49 |
Gtk::TreeModelColumn<Channel> column_channel; |
50 |
};
|
|
51 |
||
1.3.2
by Teis Dreijer (NOT the hoff)
Import upstream version 1.0.0 |
52 |
ModelColumns columns; |
53 |
Glib::RefPtr<Gtk::ListStore> list_store; |
|
54 |
const Glib::RefPtr<Gtk::Builder> builder; |
|
55 |
Gtk::TreeView* tree_view_displayed_channels; |
|
1.1.13
by Michael Lamothe
Import upstream version 1.2.6 |
56 |
ChannelConflictAction channel_conflict_action; |
1.3.2
by Teis Dreijer (NOT the hoff)
Import upstream version 1.0.0 |
57 |
|
58 |
void show_scan_dialog(); |
|
59 |
gboolean import_channel(const Channel& channel); |
|
1.1.13
by Michael Lamothe
Import upstream version 1.2.6 |
60 |
gboolean does_channel_exist(const Glib::ustring& channel_name); |
61 |
||
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
62 |
void on_show(); |
63 |
void on_button_scan_clicked(); |
|
1.1.12
by Michael Lamothe
Import upstream version 1.2.4 |
64 |
void on_button_edit_selected_channel_clicked(); |
1.3.2
by Teis Dreijer (NOT the hoff)
Import upstream version 1.0.0 |
65 |
void on_button_remove_selected_channels_clicked(); |
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
66 |
|
67 |
public: |
|
1.3.2
by Teis Dreijer (NOT the hoff)
Import upstream version 1.0.0 |
68 |
ChannelsDialog(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& builder); |
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
69 |
|
1.3.2
by Teis Dreijer (NOT the hoff)
Import upstream version 1.0.0 |
70 |
ChannelArray get_channels(); |
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
71 |
|
1.3.2
by Teis Dreijer (NOT the hoff)
Import upstream version 1.0.0 |
72 |
static ChannelsDialog& create(Glib::RefPtr<Gtk::Builder> builder); |
1.2.2
by Michael Lamothe
Import upstream version 0.7.14 |
73 |
};
|
74 |
||
75 |
#endif
|