gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
Dialog.H
Go to the documentation of this file.
1 /* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2  This file is part of GTK+ IOStream class set
3 
4  GTK+ IOStream is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  GTK+ IOStream is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You have received a copy of the GNU General Public License
15  along with GTK+ IOStream
16  */
17 #ifndef DIALOG_H_
18 #define DIALOG_H_
19 
20 #include "Container.H"
21 
25 class Dialog : public Container {
26 public:
34  Dialog() {
35  widget=gtk_dialog_new();
36  }
37 
40  virtual ~Dialog() {
41  }
42 
45  void run(void) {
46  gtk_dialog_run(GTK_DIALOG(widget));
47  }
48 
52  void title(char *text) {
53  string t(text);
54  title(t);
55  }
56 
60  void title(string &text) {
61  gtk_window_set_title(GTK_WINDOW(widget), text.c_str());
62  }
63 
64 };
65 
66 #endif // DIALOG_H_
Definition: Dialog.H:25
void run(void)
Definition: Dialog.H:45
virtual ~Dialog()
Definition: Dialog.H:40
void title(char *text)
Definition: Dialog.H:52
GtkWidget * widget
The container based widget.
Definition: Widget.H:33
void title(string &text)
Definition: Dialog.H:60
Dialog()
Definition: Dialog.H:34
gtkIOStream: /tmp/gtkiostream/include/Dialog.H Source File
GTK+ IOStream  Beta