~ubuntu-branches/debian/jessie/cheese/jessie

« back to all changes in this revision

Viewing changes to src/cheese-ui.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2010-05-04 17:37:18 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100504173718-k2rx3nryi4vd0xyx
Tags: 2.30.1-1
* New upstream release.
  - HAL dependency has been dropped. Use (g)udev for v4l capability probing
    on Linux. Closes: #573774
  - Split code into separate libraries.
* debian/control.in
  - Drop Build-Depends on libhal-dev.
  - Drop Build-Depends on libebook1.2-dev.
  - Bump Build-Depends on libgtk2.0-dev to (>= 2.19.1).
  - Bump Build-Depends on libgstreamer*-dev to (>= 0.10.23).
  - Add Build-Depends on libcanberra-gtk-dev.
  - Add Build-Depends on libxtst-dev.
  - Add Build-Depends on libgudev-1.0-dev on Linux.
  - Bump Standards-Version to 3.8.4. No further changes.
* Switch to source format 3.0 (quilt)
  - Add debian/source/format.
* debian/rules
  - Drop lpia specific configure flags, lpia is dead.
* Update package layout (based on work by Ubuntu)
  - Move data files into new cheese-common package.
  - Keep binary along with its desktop and dbus service file in the cheese
    package.
  - Add libcheese-gtk18 and libcheese-gtk-dev package for the new
    libcheese-gtk library. Use a symbols file for improved shlibs
    dependencies.
  - Add Conflicts/Replaces to cheese-common to ensure proper upgrades from
    previous versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2010 Filippo Argiolas <filippo.argiolas@gmail.com>
 
3
 * Copyright © 2007,2008 daniel g. siegel <dgsiegel@gnome.org>
 
4
 * Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
 
5
 *
 
6
 * Licensed under the GNU General Public License Version 2
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2 of the License, or
 
11
 * (at your option) any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#ifndef __CHEESE_UI_H__
 
23
#define __CHEESE_UI_H__
 
24
 
 
25
#include <glib.h>
 
26
#include <gtk/gtk.h>
 
27
#include "cheese-commands.h"
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
const GtkActionEntry action_entries_main[] = {
 
32
  {"Cheese",       NULL,            N_("_Cheese")                       },
 
33
 
 
34
  {"Edit",         NULL,            N_("_Edit")                         },
 
35
  {"Help",         NULL,            N_("_Help")                         },
 
36
 
 
37
  {"Quit",         GTK_STOCK_QUIT,  NULL, NULL, NULL, G_CALLBACK (cheese_cmd_quit)},
 
38
  {"HelpContents", GTK_STOCK_HELP,  N_("_Contents"), "F1", N_("Help on this Application"),
 
39
   G_CALLBACK (cheese_cmd_help_contents)},
 
40
  {"About",        GTK_STOCK_ABOUT, NULL, NULL, NULL, G_CALLBACK (cheese_cmd_about)},
 
41
};
 
42
 
 
43
const GtkActionEntry action_entries_prefs[] = {
 
44
  {"Preferences",  GTK_STOCK_PREFERENCES, N_("Preferences"), NULL, NULL, G_CALLBACK (cheese_window_preferences_cb)},
 
45
};
 
46
 
 
47
const GtkRadioActionEntry action_entries_toggle[] = {
 
48
  {"Photo", NULL, N_("_Photo"), NULL, NULL, 0},
 
49
  {"Video", NULL, N_("_Video"), NULL, NULL, 1},
 
50
  {"Burst", NULL, N_("_Burst"), NULL, NULL, 2},
 
51
};
 
52
 
 
53
const GtkToggleActionEntry action_entries_countdown[] = {
 
54
  {"Countdown", NULL, N_("Countdown"), NULL, NULL, G_CALLBACK (cheese_window_toggle_countdown), FALSE},
 
55
};
 
56
const GtkToggleActionEntry action_entries_effects[] = {
 
57
  {"Effects", NULL, N_("_Effects"), NULL, NULL, G_CALLBACK (cheese_window_effect_button_pressed_cb), FALSE},
 
58
};
 
59
 
 
60
const GtkToggleActionEntry action_entries_fullscreen[] = {
 
61
  {"Fullscreen", GTK_STOCK_FULLSCREEN, NULL, "F11", NULL, G_CALLBACK (cheese_window_toggle_fullscreen), FALSE},
 
62
};
 
63
const GtkToggleActionEntry action_entries_wide_mode[] = {
 
64
  {"WideMode", NULL, N_("_Wide mode"), NULL, NULL, G_CALLBACK (cheese_window_toggle_wide_mode), FALSE},
 
65
};
 
66
 
 
67
const GtkActionEntry action_entries_photo[] = {
 
68
  {"TakePhoto", NULL, N_("_Take a Photo"), "space", NULL, G_CALLBACK (cheese_window_action_button_clicked_cb)},
 
69
};
 
70
const GtkToggleActionEntry action_entries_video[] = {
 
71
  {"TakeVideo", NULL, N_("_Recording"), "space", NULL, G_CALLBACK (cheese_window_action_button_clicked_cb), FALSE},
 
72
};
 
73
const GtkActionEntry action_entries_burst[] = {
 
74
  {"TakeBurst", NULL, N_("_Take multiple Photos"), "space", NULL, G_CALLBACK (cheese_window_action_button_clicked_cb)},
 
75
};
 
76
 
 
77
const GtkActionEntry action_entries_file[] = {
 
78
  {"Open",        GTK_STOCK_OPEN,    N_("_Open"),          "<control>O",    NULL,
 
79
   G_CALLBACK (cheese_cmd_file_open)},
 
80
  {"SaveAs",      GTK_STOCK_SAVE_AS, N_("Save _As…"),      "<control>S",    NULL,
 
81
   G_CALLBACK (cheese_cmd_file_save_as)},
 
82
  {"MoveToTrash", "user-trash",      N_("Move to _Trash"), "Delete",        NULL,
 
83
   G_CALLBACK (cheese_cmd_file_move_to_trash)},
 
84
  {"Delete",      NULL,              N_("Delete"),         "<shift>Delete", NULL,
 
85
   G_CALLBACK (cheese_cmd_file_delete)},
 
86
};
 
87
 
 
88
static const GtkActionEntry action_entries_trash[] = {
 
89
  {"RemoveAll",    NULL,             N_("Move All to Trash"), NULL, NULL,
 
90
   G_CALLBACK (cheese_cmd_file_move_all_to_trash)},
 
91
};
 
92
 
 
93
G_END_DECLS
 
94
 
 
95
#endif /* __CHEESE_UI_H__ */