[280] | 1 | /* rggladewindow.h |
---|
| 2 | * |
---|
| 3 | * Copyright (c) 2003 Michael Vogt <mvo@debian.org> |
---|
| 4 | * |
---|
| 5 | * Author: Michael Vogt <mvo@debian.org> |
---|
| 6 | * |
---|
| 7 | * This program is free software; you can redistribute it and/or |
---|
| 8 | * modify it under the terms of the GNU General Public License as |
---|
| 9 | * published by the Free Software Foundation; either version 2 of the |
---|
| 10 | * License, or (at your option) any later version. |
---|
| 11 | * |
---|
| 12 | * This program is distributed in the hope that it will be useful, |
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | * GNU General Public License for more details. |
---|
| 16 | * |
---|
| 17 | * You should have received a copy of the GNU General Public License |
---|
| 18 | * along with this program; if not, write to the Free Software |
---|
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
| 20 | * USA |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | #ifndef _RGGLADEWINDOW_H_ |
---|
| 25 | #define _RGGLADEWINDOW_H_ |
---|
| 26 | |
---|
| 27 | #include "config.h" |
---|
| 28 | |
---|
| 29 | #include <gtk/gtk.h> |
---|
| 30 | #include <glade/glade.h> |
---|
| 31 | #include <string> |
---|
| 32 | #include <iostream> |
---|
| 33 | |
---|
| 34 | #include "rgwindow.h" |
---|
| 35 | #include "rgmisc.h" |
---|
| 36 | |
---|
| 37 | using namespace std; |
---|
| 38 | |
---|
| 39 | class RGGladeWindow:public RGWindow { |
---|
| 40 | protected: |
---|
| 41 | GladeXML *_gladeXML; |
---|
| 42 | GdkCursor *_busyCursor; |
---|
| 43 | |
---|
| 44 | public: |
---|
| 45 | RGGladeWindow(RGWindow *parent, string name, string main_widget = ""); |
---|
| 46 | |
---|
| 47 | void skipTaskbar(bool value) { |
---|
| 48 | gtk_window_set_skip_taskbar_hint(GTK_WINDOW(_win), value); |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | // show busy cursor over main window |
---|
| 52 | void setBusyCursor(bool flag=true); |
---|
| 53 | |
---|
| 54 | // functions to set various widgets |
---|
| 55 | bool setLabel(const char *name, const char *value); |
---|
| 56 | bool setLabel(const char *name, const long value); |
---|
| 57 | bool setTextView(const char *widget_name, const char *value, |
---|
| 58 | bool useHeadline=false); |
---|
| 59 | bool setPixmap(const char *widget_name, GdkPixbuf *value); |
---|
| 60 | bool setTreeList(const char *widget_name, vector<string> values, |
---|
| 61 | bool useMarkup=false); |
---|
| 62 | |
---|
| 63 | GladeXML* getGladeXML() {return _gladeXML;}; |
---|
| 64 | }; |
---|
| 65 | |
---|
| 66 | #endif |
---|