File: classGFC_1_1Gtk_1_1Dialog.html

package info (click to toggle)
gfcui 2.3.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 43,420 kB
  • ctags: 18,023
  • sloc: cpp: 53,967; sh: 31,555; makefile: 1,322; perl: 108
file content (826 lines) | stat: -rw-r--r-- 45,303 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>GTK+ Foundation Classes</title>
  <link href="gfc.css" rel="stylesheet" type="text/css">
  <meta content="The GFC Development Team" name="author">
  <meta content="Core Library Reference Manual" name="description">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(243, 244, 248);"
 alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1227px; height: 117px;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td
 style="text-align: center; background-color: rgb(255, 255, 255); width: 220px; vertical-align: top;"><img
 alt="GFC Logo" src="../images/gfc.png"
 style="width: 207px; height: 92px;"></td>
      <td
 style="text-align: center; background-color: rgb(87, 107, 152); vertical-align: middle;"><img
 alt="GFC Title Logo" src="../images/gfc-title.png"
 style="width: 418px; height: 76px;"><br>
      </td>
    </tr>
    <tr>
      <td
 style="text-align: center; background-color: rgb(65, 77, 104); vertical-align: middle;"><big><span
 style="color: rgb(255, 255, 153); font-weight: bold;">Reference Manual</span></big><br>
      </td>
      <td
 style="text-align: center; background-color: rgb(148, 164, 200); vertical-align: middle;"><small
 style="font-family: helvetica,arial,sans-serif;"><a
 href="../html/index.html">Main Page</a>&nbsp; |&nbsp; <a
 href="../html/namespaces.html">Namespace List</a>&nbsp; |&nbsp; <a
 href="classes.html">Alphabetical List</a>&nbsp; |&nbsp; <a
 href="../html/annotated.html">Class List</a>&nbsp; |&nbsp; <a
 href="../html/files.html">File List</a></small><br>
      </td>
    </tr>
  </tbody>
</table>
<small> </small>
</body>
</html>
<!-- Generated by Doxygen 1.3.8 -->
<h1>GFC::Gtk::Dialog Class Reference</h1>A GtkDialog C++ wrapper class.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="dialog_8hh-source.html">gfc/gtk/dialog.hh</a>&gt;</code>
<p>
<p>Inheritance diagram for GFC::Gtk::Dialog:
<p><center><img src="classGFC_1_1Gtk_1_1Dialog.png" usemap="#GFC::Gtk::Dialog_map" border="0" alt=""></center>
<map name="GFC::Gtk::Dialog_map">
<area href="classGFC_1_1Gtk_1_1Window.html" alt="GFC::Gtk::Window" shape="rect" coords="340,392,557,416">
<area href="classGFC_1_1Gtk_1_1Bin.html" alt="GFC::Gtk::Bin" shape="rect" coords="340,336,557,360">
<area href="classGFC_1_1Gtk_1_1Container.html" alt="GFC::Gtk::Container" shape="rect" coords="340,280,557,304">
<area href="classGFC_1_1Gtk_1_1Widget.html" alt="GFC::Gtk::Widget" shape="rect" coords="340,224,557,248">
<area href="classGFC_1_1Gtk_1_1Object.html" alt="GFC::Gtk::Object" shape="rect" coords="227,168,444,192">
<area href="classGFC_1_1Atk_1_1Implementor.html" alt="GFC::Atk::Implementor" shape="rect" coords="454,168,671,192">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html" alt="GFC::G::Object" shape="rect" coords="227,112,444,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInterface.html" alt="GFC::G::TypeInterface" shape="rect" coords="454,112,671,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="227,56,444,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="454,56,671,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="227,0,444,24">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="454,0,671,24">
<area href="classGFC_1_1Gtk_1_1ColorSelectionDialog.html" alt="GFC::Gtk::ColorSelectionDialog" shape="rect" coords="0,504,217,528">
<area href="classGFC_1_1Gtk_1_1FileChooserDialog.html" alt="GFC::Gtk::FileChooserDialog" shape="rect" coords="227,504,444,528">
<area href="classGFC_1_1Gtk_1_1FontSelectionDialog.html" alt="GFC::Gtk::FontSelectionDialog" shape="rect" coords="454,504,671,528">
<area href="classGFC_1_1Gtk_1_1MessageDialog.html" alt="GFC::Gtk::MessageDialog" shape="rect" coords="681,504,898,528">
<area href="classGFC_1_1Gtk_1_1FileChooserOpenDialog.html" alt="GFC::Gtk::FileChooserOpenDialog" shape="rect" coords="113,560,330,584">
<area href="classGFC_1_1Gtk_1_1FileChooserSaveAsDialog.html" alt="GFC::Gtk::FileChooserSaveAsDialog" shape="rect" coords="340,560,557,584">
</map>
<a href="classGFC_1_1Gtk_1_1Dialog-members.html">List of all members.</a><h2>Signal Prototypes</h2>
<ul>
<li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ResponseSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z475_4">response_signal</a>
<dl class="el"><dd class="mdescRight">Response signal (see <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z479_0">sig_response()</a>).  <a href="#z475_4"></a><br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">CloseSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z475_5">close_signal</a>
<dl class="el"><dd class="mdescRight">Close signal (see <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z479_1">sig_close()</a>).  <a href="#z475_5"></a><br></dl></ul>
<h2>Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z476_0">Dialog</a> ()
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a>.  <a href="#z476_0"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z476_2">Dialog</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;title, <a class="el" href="classGFC_1_1Gtk_1_1Window.html">Window</a> *parent=0, <a class="el" href="namespaceGFC_1_1Gtk.html#a23">DialogFlagsField</a> flags=DIALOG_DESTROY_WITH_PARENT)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a> with the specified title, parent and creation flags.  <a href="#z476_2"></a><br></dl><li><a class="anchor" name="z476_3" doxytag="GFC::Gtk::Dialog::~Dialog" ></a>
virtual <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z476_3">~Dialog</a> ()
<dl class="el"><dd class="mdescRight">Destructor. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<ul>
<li><a class="anchor" name="z477_0" doxytag="GFC::Gtk::Dialog::gtk_dialog" ></a>
GtkDialog * <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z477_0">gtk_dialog</a> () const
<dl class="el"><dd class="mdescRight">Get a pointer to the GtkDialog structure. <br></dl><li><a class="anchor" name="z477_1" doxytag="GFC::Gtk::Dialog::operator GtkDialog *" ></a>
<a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z477_1">operator GtkDialog *</a> () const
<dl class="el"><dd class="mdescRight">Conversion operator; safely converts a <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a> to a GtkDialog pointer. <br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1VBox.html">VBox</a> * <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z477_2">client_area</a> () const
<dl class="el"><dd class="mdescRight">Returns the <a class="el" href="classGFC_1_1Gtk_1_1VBox.html">VBox</a> which is the client area of the dialog box.  <a href="#z477_2"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1HButtonBox.html">HButtonBox</a> * <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z477_3">action_area</a> () const
<dl class="el"><dd class="mdescRight">Returns the <a class="el" href="classGFC_1_1Gtk_1_1HButtonBox.html">HButtonBox</a> which is the action area packed below the dividing <a class="el" href="classGFC_1_1Gtk_1_1HSeparator.html">HSeparator</a> in the dialog.  <a href="#z477_3"></a><br></dl><li><a class="anchor" name="z477_4" doxytag="GFC::Gtk::Dialog::get_has_separator" ></a>
bool <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z477_4">get_has_separator</a> () const
<dl class="el"><dd class="mdescRight">Returns true if the dialog has a separator. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_0">add_action_widget</a> (<a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a> &amp;child, int response_id)
<dl class="el"><dd class="mdescRight">Adds an activatable widget to the action area of a <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a>, connecting a signal handler that will emit the "response" signal on the dialog when the widget is activated.  <a href="#z478_0"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> * <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_2">add_button</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;button_text, int response_id)
<dl class="el"><dd class="mdescRight">Adds a button with the given text and sets things up so that clicking the button will emit a "response" signal with the given response_id.  <a href="#z478_2"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> * <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_3">add_button</a> (const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;stock_id, int response_id)
<dl class="el"><dd class="mdescRight">Adds a stock button and sets things up so that clicking the button will emit a "response" signal with the given response_id.  <a href="#z478_3"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> * <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_4">add_button</a> (<a class="el" href="namespaceGFC_1_1Gtk.html#a315">StockButtonType</a> button_type)
<dl class="el"><dd class="mdescRight">Adds the stock button <em>button_type</em> and sets things up so that clicking the button will emit a "response" signal with the associated response_id.  <a href="#z478_4"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_5">set_response_sensitive</a> (int response_id, bool setting)
<dl class="el"><dd class="mdescRight">Calls Gtk::Widget::set_sensitive(setting) for each widget in the dialog's action area with the given response_id.  <a href="#z478_5"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_6">set_default_response</a> (int response_id)
<dl class="el"><dd class="mdescRight">Sets the last widget in the dialog's action area with the given response_id as the default widget for the dialog.  <a href="#z478_6"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_7">response</a> (int response_id)
<dl class="el"><dd class="mdescRight">Emits the "response" signal with the given response ID.  <a href="#z478_7"></a><br></dl><li>int <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run</a> ()
<dl class="el"><dd class="mdescRight">Blocks in a recursive main loop until the dialog either emits the response signal, or is destroyed.  <a href="#z478_8"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_9">set_has_separator</a> (bool setting)
<dl class="el"><dd class="mdescRight">Sets whether the dialog has a separator above the buttons; <em>true</em> by default.  <a href="#z478_9"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Signal Proxies</div></td></tr>
<ul>
<li><a class="anchor" name="z479_0" doxytag="GFC::Gtk::Dialog::sig_response" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">ResponseSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z479_0">sig_response</a> ()
<dl class="el"><dd class="mdescRight">Connect to the response_signal; emmitted when an action widget is activated, the dialog receives a delete event, or the application programmer calls <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_7">response()</a>. <br></dl><li><a class="anchor" name="z479_1" doxytag="GFC::Gtk::Dialog::sig_close" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">CloseSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z479_1">sig_close</a> ()
<dl class="el"><dd class="mdescRight">Connect to the close_signel; emitted when the user closes the dialog box by pressing the escape key (GDK_Escape). <br></dl></ul>
<h2>Protected Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z473_0">Dialog</a> (GtkDialog *dialog, bool <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html#z143_1">owns_reference</a>=false)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a> from an existing GtkDialog.  <a href="#z473_0"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z474_0">construct</a> (const char *title, <a class="el" href="classGFC_1_1Gtk_1_1Window.html">Gtk::Window</a> *parent, <a class="el" href="namespaceGFC_1_1Gtk.html#a23">Gtk::DialogFlagsField</a> flags)
<dl class="el"><dd class="mdescRight">Construction method that sets the title, parent and dialog flags.  <a href="#z474_0"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GtkDialog C++ wrapper class. 
<p>
<a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a> boxes are a convenient way to prompt the user for a small amount of input, eg. to display a message, ask a question, or anything else that does not require extensive effort on the user's part. GTK+ treats a dialog as a window split vertically. The top section is the client area (a <a class="el" href="classGFC_1_1Gtk_1_1VBox.html">VBox</a>), and is where widgets such as a <a class="el" href="classGFC_1_1Gtk_1_1Label.html">Label</a> or an <a class="el" href="classGFC_1_1Gtk_1_1Entry.html">Entry</a> should be packed. The bottom area is known as the action area. This is generally used for packing buttons into the dialog which may perform functions such as cancel, ok, or apply. The two areas are separated by a <a class="el" href="classGFC_1_1Gtk_1_1HSeparator.html">HSeparator</a>. They can be accessed with <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z477_2">client_area()</a> and <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z477_3">action_area()</a>, as can be seen from the example below.<p>
A 'modal' dialog (that is, one which freezes the rest of the application from user input), can be created by calling <a class="el" href="classGFC_1_1Gtk_1_1Window.html#z1073_29">Gtk::Window::set_modal()</a> on the dialog. When constructing a dialog you can also pass the DIALOG_MODAL flag to make a dialog modal. If you add buttons to the dialog, clicking the button will emit a signal called "response" with a response ID that you specified. GTK+ will never assign a meaning to positive response IDs; these are entirely user-defined. But for convenience, you can use the response IDs in the ResponseType enumeration (these all have values less than zero). If a dialog receives a delete event, the "response" signal will be emitted with a response ID of RESPONSE_NONE.<p>
If you want to block waiting for a dialog to return before returning control flow to your code, you can call <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">Gtk::Dialog::run()</a>. This method enters a recursive main loop and waits for the user to respond to the dialog, returning the response ID corresponding to the button the user clicked. For the simple dialog in the following example, in reality, you'd probably use <a class="el" href="classGFC_1_1Gtk_1_1MessageDialog.html">MessageDialog</a> to save yourself some effort. But you'd need to create the dialog contents manually if you had more than a simple message in the dialog.<p>
<b>Example:</b> A function to open a simple dialog box displaying the message provided. <div class="fragment"><pre>    <span class="keywordtype">void</span> MyWindow::quick_message(<span class="keyword">const</span> String&amp; message)
    {
        <span class="keyword">using</span> <span class="keyword">namespace </span>Gtk;
   
        <span class="comment">// Creating the dialog on the stack is OK because it's only temporary. When finished, we dispose of it.</span>
        Dialog dialog(<span class="stringliteral">"Message"</span>, <span class="keyword">this</span>, DIALOG_DESTROY_WITH_PARENT, StockId::OK, RESPONSE_NONE, 0);
   
        <span class="comment">// Add a label to the dialog to display the message.</span>
        Label *label = <span class="keyword">new</span> Label(message);
        dialog.client_area()-&gt;add(*label);
        label-&gt;show();
   
        <span class="comment">// Run the dialog. You must call dispose(), not unref(), because the dialog is in a modal loop.</span>
        <span class="keywordflow">if</span> (dialog.run())
                dialog.dispose();
    }
</pre></div>
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="z473_0" doxytag="GFC::Gtk::Dialog::Dialog" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Dialog::Dialog           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">GtkDialog *&nbsp;</td>
          <td class="mdname" nowrap> <em>dialog</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>owns_reference</em> = <code>false</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [explicit, protected]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a> from an existing GtkDialog. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>dialog</em>&nbsp;</td><td>A pointer to a GtkDialog. </td></tr>
    <tr><td></td><td valign=top><em>owns_reference</em>&nbsp;</td><td>Set false if the initial reference count is floating, set true if it's not.</td></tr>
  </table>
</dl>
<br>
The <em>dialog</em> can be a newly created GtkDialog or an existing GtkDialog. (see <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html#z68_0">G::Object::Object</a>).     </td>
  </tr>
</table>
<a class="anchor" name="z476_0" doxytag="GFC::Gtk::Dialog::Dialog" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Dialog::Dialog           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a>. 
<p>
<br>
Widgets should not be packed into this window directly, but into the client area and action area, as described above. You can add one or more buttons with <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_2">add_button()</a> or add_buttons().     </td>
  </tr>
</table>
<a class="anchor" name="z476_2" doxytag="GFC::Gtk::Dialog::Dialog" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Dialog::Dialog           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>title</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gtk_1_1Window.html">Window</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a23">DialogFlagsField</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>flags</em> = <code>DIALOG_DESTROY_WITH_PARENT</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a> with the specified title, parent and creation flags. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>title</em>&nbsp;</td><td>The title of the dialog. </td></tr>
    <tr><td></td><td valign=top><em>parent</em>&nbsp;</td><td>Transient parent of the dialog, or null. </td></tr>
    <tr><td></td><td valign=top><em>flags</em>&nbsp;</td><td>One or more <a class="el" href="namespaceGFC_1_1Gtk.html#a313">Gdk::DialogFlags</a> OR'd together.</td></tr>
  </table>
</dl>
<br>
Widgets should not be packed into this window directly, but into the client area and action area, as described above. You can add one or more buttons with <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_2">add_button()</a> or add_buttons(). The flags argument can be used to make the dialog modal (DIALOG_MODAL) and/or to have it destroyed along with its transient parent (DIALOG_DESTROY_WITH_PARENT).     </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z477_3" doxytag="GFC::Gtk::Dialog::action_area" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gtk_1_1HButtonBox.html">HButtonBox</a>* GFC::Gtk::Dialog::action_area           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the <a class="el" href="classGFC_1_1Gtk_1_1HButtonBox.html">HButtonBox</a> which is the action area packed below the dividing <a class="el" href="classGFC_1_1Gtk_1_1HSeparator.html">HSeparator</a> in the dialog. 
<p>
It is treated exactly the same as any other <a class="el" href="classGFC_1_1Gtk_1_1HButtonBox.html">HButtonBox</a>. You add your action widgets, usually buttons, to this area.     </td>
  </tr>
</table>
<a class="anchor" name="z478_0" doxytag="GFC::Gtk::Dialog::add_action_widget" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Dialog::add_action_widget           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>child</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>response_id</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adds an activatable widget to the action area of a <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a>, connecting a signal handler that will emit the "response" signal on the dialog when the widget is activated. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>child</em>&nbsp;</td><td>An activatable widget. </td></tr>
    <tr><td></td><td valign=top><em>response_id</em>&nbsp;</td><td>The response ID for child.</td></tr>
  </table>
</dl>
<br>
The widget is appended to the end of the dialog's action area. If you want to add a non-activatable widget, simply pack it into the action_area of the <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Dialog</a>.     </td>
  </tr>
</table>
<a class="anchor" name="z478_4" doxytag="GFC::Gtk::Dialog::add_button" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>* GFC::Gtk::Dialog::add_button           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gtk.html#a315">StockButtonType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>button_type</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adds the stock button <em>button_type</em> and sets things up so that clicking the button will emit a "response" signal with the associated response_id. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>button_type</em>&nbsp;</td><td>The <a class="el" href="namespaceGFC_1_1Gtk.html#a315">Gtk::StockButtonType</a>.</td></tr>
  </table>
</dl>
<br>
The <em>button_type</em> specifies the stock button to add and the repsonse id to return when the stock button is clicked. This is a convenience method that is eqivalent to calling <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_3">add_button(const StockId&amp;, int)</a>.     </td>
  </tr>
</table>
<a class="anchor" name="z478_3" doxytag="GFC::Gtk::Dialog::add_button" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>* GFC::Gtk::Dialog::add_button           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>stock_id</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>response_id</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adds a stock button and sets things up so that clicking the button will emit a "response" signal with the given response_id. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>stock_id</em>&nbsp;</td><td>The ID of the stock item. </td></tr>
    <tr><td></td><td valign=top><em>response_id</em>&nbsp;</td><td>The response ID for the button. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The button widget that was added.</dd></dl>
<br>
The button is appended to the end of the dialog's action area. The button widget is returned, but usually you don't need it.     </td>
  </tr>
</table>
<a class="anchor" name="z478_2" doxytag="GFC::Gtk::Dialog::add_button" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>* GFC::Gtk::Dialog::add_button           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>button_text</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>response_id</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adds a button with the given text and sets things up so that clicking the button will emit a "response" signal with the given response_id. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>button_text</em>&nbsp;</td><td>The text of the button. </td></tr>
    <tr><td></td><td valign=top><em>response_id</em>&nbsp;</td><td>The response ID for the button. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The button widget that was added.</dd></dl>
<br>
The button is appended to the end of the dialog's action area. The button widget is returned, but usually you don't need it.     </td>
  </tr>
</table>
<a class="anchor" name="z477_2" doxytag="GFC::Gtk::Dialog::client_area" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gtk_1_1VBox.html">VBox</a>* GFC::Gtk::Dialog::client_area           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the <a class="el" href="classGFC_1_1Gtk_1_1VBox.html">VBox</a> which is the client area of the dialog box. 
<p>
You pack your widgets into this box.     </td>
  </tr>
</table>
<a class="anchor" name="z474_0" doxytag="GFC::Gtk::Dialog::construct" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Dialog::construct           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>title</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gtk_1_1Window.html">Gtk::Window</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>parent</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a23">Gtk::DialogFlagsField</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>flags</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [protected]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construction method that sets the title, parent and dialog flags. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>title</em>&nbsp;</td><td>The dialiog box title. </td></tr>
    <tr><td></td><td valign=top><em>parent</em>&nbsp;</td><td>A pointer to the parent for the dialog box, or null for no parent. </td></tr>
    <tr><td></td><td valign=top><em>flags</em>&nbsp;</td><td>The <a class="el" href="namespaceGFC_1_1Gtk.html#a313">Gdk::DialogFlags</a> to set.</td></tr>
  </table>
</dl>
<br>
This is a convenience method that can be called from dialog box constructors to set the dialog box title, parent and flags in one call. It is used internally by <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html">Gtk::Dialog</a>. It parent is set, the dialog is set transient for the parent.     </td>
  </tr>
</table>
<a class="anchor" name="z478_7" doxytag="GFC::Gtk::Dialog::response" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Dialog::response           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>response_id</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Emits the "response" signal with the given response ID. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>response_id</em>&nbsp;</td><td>A response ID.</td></tr>
  </table>
</dl>
<br>
Used to indicate that the user has responded to the dialog in some way; typically either you, or <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a> will be monitoring the "response" signal and take appropriate action.     </td>
  </tr>
</table>
<a class="anchor" name="z478_8" doxytag="GFC::Gtk::Dialog::run" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int GFC::Gtk::Dialog::run           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Blocks in a recursive main loop until the dialog either emits the response signal, or is destroyed. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>Response ID</dd></dl>
<br>
If the dialog is destroyed during the call to <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a>, <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a> returns RESPONSE_NONE. Otherwise, it returns the response ID from the "response" signal emission. Before entering the recursive main loop, <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a> calls <a class="el" href="classGFC_1_1Gtk_1_1Widget.html#z1053_3">Gtk::Widget::show()</a> on the dialog for you. Note that you still need to show any children of the dialog yourself.<p>
During <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a>, the default behavior of "delete_event" is disabled; if the dialog receives a "delete_event", it will not be destroyed as windows usually are, and <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a> will return RESPONSE_DELETE_EVENT. Also, during <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a> the dialog will be modal. You can force <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a> to return at any time by calling <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_7">response()</a> to emit the "response" signal. Destroying the dialog during <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a> is a very bad idea, because your post-run code won't know whether the dialog was destroyed or not. After <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z478_8">run()</a> returns, you are responsible for hiding or destroying the dialog if you wish to do so.<p>
<b>Example:</b> Typical usage of this method might be <div class="fragment"><pre>             <span class="keywordtype">int</span> result = dialog-&gt;run();
             <span class="keywordflow">switch</span> (result)
             {
             <span class="keywordflow">case</span> <a class="code" href="namespaceGFC_1_1Gtk.html#a314a29">RESPONSE_ACCEPT</a>:
                do_application_specific_something();
                <span class="keywordflow">break</span>;
             <span class="keywordflow">default</span>:
                do_nothing_since_dialog_was_cancelled();
                <span class="keywordflow">break</span>;
             }
             dialog-&gt;dispose();
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="z478_6" doxytag="GFC::Gtk::Dialog::set_default_response" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Dialog::set_default_response           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>response_id</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the last widget in the dialog's action area with the given response_id as the default widget for the dialog. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>response_id</em>&nbsp;</td><td>A response ID.</td></tr>
  </table>
</dl>
<br>
Pressing "Enter" normally activates the default widget.     </td>
  </tr>
</table>
<a class="anchor" name="z478_9" doxytag="GFC::Gtk::Dialog::set_has_separator" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Dialog::set_has_separator           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>setting</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether the dialog has a separator above the buttons; <em>true</em> by default. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>setting</em>&nbsp;</td><td><em>true</em> to have a separator. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z478_5" doxytag="GFC::Gtk::Dialog::set_response_sensitive" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Dialog::set_response_sensitive           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname" nowrap> <em>response_id</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>setting</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Calls Gtk::Widget::set_sensitive(setting) for each widget in the dialog's action area with the given response_id. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>response_id</em>&nbsp;</td><td>A response ID. </td></tr>
    <tr><td></td><td valign=top><em>setting</em>&nbsp;</td><td><em>true</em> for sensitive.</td></tr>
  </table>
</dl>
<br>
A convenient way to sensitize/desensitize dialog buttons.     </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="z475_5" doxytag="GFC::Gtk::Dialog::close_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">CloseSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z475_5">GFC::Gtk::Dialog::close_signal</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Close signal (see <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z479_1">sig_close()</a>). 
<p>
Calls a slot with the signature: <div class="fragment"><pre>             <span class="keywordtype">void</span> function();
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="z475_4" doxytag="GFC::Gtk::Dialog::response_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ResponseSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z475_4">GFC::Gtk::Dialog::response_signal</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Response signal (see <a class="el" href="classGFC_1_1Gtk_1_1Dialog.html#z479_0">sig_response()</a>). 
<p>
Calls a slot with the signature: <div class="fragment"><pre>             <span class="keywordtype">void</span> function(<span class="keywordtype">int</span> response_id);
             <span class="comment">// response_id: The response ID of the action widget.</span>
</pre></div>    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="dialog_8hh-source.html">dialog.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:39 2004 for GFC-UI by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>