Fawkes API
Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * config_editor.h - Fawkes Config Editor 00004 * 00005 * Created: Tue Sep 23 13:17:41 2008 00006 * Copyright 2008 Daniel Beck 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Library General Public License for more details. 00019 * 00020 * Read the full text in the LICENSE.GPL file in the doc directory. 00021 */ 00022 00023 #ifndef __TOOLS_CONFIG_EDITOR_CONFIG_EDITOR_H_ 00024 #define __TOOLS_CONFIG_EDITOR_CONFIG_EDITOR_H_ 00025 00026 #include <gtkmm.h> 00027 00028 class ConfigTreeView; 00029 00030 namespace fawkes{ 00031 class ServiceSelectorCBE; 00032 class FawkesNetworkClient; 00033 } 00034 00035 class FawkesConfigEditor 00036 : public Gtk::Window 00037 { 00038 public: 00039 FawkesConfigEditor(Glib::RefPtr<Gtk::Builder> builder); 00040 ~FawkesConfigEditor(); 00041 00042 Gtk::Window& get_window() const; 00043 00044 private: 00045 void on_btn_exit_clicked(); 00046 void on_connected(); 00047 void on_disconnected(); 00048 00049 fawkes::ServiceSelectorCBE* m_service_selector; 00050 fawkes::FawkesNetworkClient* m_network_client; 00051 00052 Gtk::Window* m_wnd_main; 00053 Gtk::Button* m_btn_exit; 00054 ConfigTreeView* m_trv_config; 00055 }; 00056 00057 #endif /* __TOOLS_CONFIG_EDITOR_CONFIG_EDITOR_H_ */