/* $Id$ */ /* * Cantus Tag Editor * Copyright © 2002-2004 by Samuel Abels * Copyright © 2007 by Tim Huetz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see **/ #ifdef HAVE_CONFIG_H # include #endif #ifndef HAVE_GUICONTROLLER_H #define HAVE_GUICONTROLLER_H #include #include #include #include #include #include class GUIController : public SigC::Object { protected: // Prevent copys. GUIController(GUIController &c) { g_assert_not_reached(); } // Prevent assignments. GUIController& operator=(GUIController &c) { g_assert_not_reached(); } public: GUIController(); ~GUIController(); void init(void); private: void on_preferences_preference_changed(std::string key, gint type, void *data); void on_menu_file_save_clicked(void); void on_menu_edit_preferences_clicked(void); void on_preferences_changed(void *key); void on_plugin_responsibility_changed(void *data); void on_file_rename_finished(void *data); void on_filebrowser_selection_changed(GList *selection); void on_pluginarea_widget_removed(CantusPlugin *plugin); void on_pluginarea1_visibility_changed(gboolean visible); void on_pluginarea2_visibility_changed(gboolean visible); bool on_progressbar_update_poll(void); bool on_filelist_forcerefresh_poll(void); bool on_filelist_refresh_poll(void); PreferencesWindow *preferences; bool lock_on_preferences_changed; bool have_renamed; // Whether a file has been renamed in the last period. }; #endif