Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[a881f6]: contrib / brl / bbas / vidl2 / examples / vidl2_player_menus.h Maximize Restore History

Download this file

vidl2_player_menus.h    45 lines (38 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// This is brl/bbas/vidl2/examples/vidl2_player_menus.h
#ifndef vidl2_player_menus_h_
#define vidl2_player_menus_h_
//--------------------------------------------------------------------------------
//:
// \file
// \author Matt Leotta
// \brief The setup for vidl2_player_menus for the vidl2 video player
//
// This is essentially a namespace for static methods;
// there is no public constructor. Refer to "10.7 Building an Application"
// in the VXL Book.
//
//--------------------------------------------------------------------------------
class vgui_menu;
//: Menu callbacks are represented as static methods
// The key method is ::get_menu, which does the work of
// assembling the menu bar for the main executable
class vidl2_player_menus
{
public:
static void quit_callback();
static void open_istream_callback();
static void open_ostream_callback();
static void close_istream_callback();
static void close_ostream_callback();
static void pipe_streams_callback();
static void play_video_callback();
static void pause_video_callback();
static void next_frame_callback();
static void prev_frame_callback();
static void go_to_frame_callback();
static void stop_video_callback();
static vgui_menu get_menu();
private:
vidl2_player_menus() {}
};
#endif // vidl2_player_menus_h_