ladishd: clear project even if room project state is 'unloaded'. Fix for #117
[ladish.git] / gui / menu.h
blobeed7ced09fd2db2c9753b70214e91c67b993df10
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2010 Nedko Arnaudov <nedko@arnaudov.name>
7 **************************************************************************
8 * This file contains interface to menu related code
9 **************************************************************************
11 * LADI Session Handler is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * LADI Session Handler is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with LADI Session Handler. If not, see <http://www.gnu.org/licenses/>
23 * or write to the Free Software Foundation, Inc.,
24 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27 #ifndef MENU_H__37ACA2FE_C43D_4FA8_B7CF_6DD345F17CD1__INCLUDED
28 #define MENU_H__37ACA2FE_C43D_4FA8_B7CF_6DD345F17CD1__INCLUDED
30 #include "graph_view.h"
32 bool menu_init(void);
33 void menu_uninit(void);
35 void menu_studio_state_changed(unsigned int studio_state);
36 void menu_set_jack_latency_items_sensivity(bool sensitive);
37 bool menu_set_jack_latency(uint32_t buffer_size, bool force);
38 void menu_set_toolbar_visibility(bool visible);
39 void menu_view_activated(bool room);
40 void fill_view_popup_menu(GtkMenu * menu, graph_view_handle view);
42 void menu_request_daemon_exit(void);
43 void menu_request_jack_configure(void);
44 void menu_request_settings(void);
45 void menu_request_save_studio(void);
46 void menu_request_save_as_studio(void);
47 void menu_request_new_studio(void);
48 void menu_request_start_app(void);
49 void menu_request_start_studio(void);
50 void menu_request_stop_studio(void);
51 void menu_request_unload_studio(void);
52 void menu_request_rename_studio(void);
53 void menu_request_create_room(void);
54 void menu_request_destroy_room(void);
55 void menu_request_load_project(void);
56 void menu_request_unload_project(void);
57 void menu_request_save_project(void);
58 void menu_request_save_as_project(void);
59 void menu_request_jack_latency_change(uint32_t buffer_size);
61 void menu_request_toggle_toolbar(bool visible);
62 void menu_request_toggle_raw_jack(bool visible);
64 #endif /* #ifndef MENU_H__37ACA2FE_C43D_4FA8_B7CF_6DD345F17CD1__INCLUDED */