00001 /* $Id:login.h jjs $ */ 00002 /* 00003 Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl> 00004 Part of the Moros Project http://moros.sourceforge.net/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License. 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY. 00010 00011 See the COPYING file for more details. 00012 */ 00013 #ifndef LOGIN_H 00014 #define LOGIN_H 00015 00016 #include <gtkmm.h> 00017 #include <libglademm.h> 00018 00020 00021 class login : public Gtk::Dialog 00022 { 00023 public: 00024 login(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> refGlade); 00025 virtual ~login(); 00026 void message(std::string); 00027 00028 protected: 00029 Glib::RefPtr<Gnome::Glade::Xml> m_refGlade; 00030 virtual void clicked_cancel(); 00031 virtual void clicked_login_do(); 00032 Gtk::Button* login_cancel; 00033 Gtk::Button* login_do; 00034 Gtk::ComboBoxEntry* login_users; 00035 Gtk::Entry* login_password; 00036 Gtk::Label* result; 00037 00038 Glib::RefPtr<Gtk::ListStore> store; 00039 struct ModelColumns : public Gtk::TreeModel::ColumnRecord { 00040 Gtk::TreeModelColumn<Glib::ustring> id; 00041 ModelColumns() { add(id); } 00042 }; 00043 const ModelColumns cols; 00044 }; 00045 00046 #endif //LOGIN_H