]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dialog.h
Implement mouse wheel scrolling in List
[libs/gltk.git] / source / dialog.h
index 89065dcf050861542f52548bdeb28af77dd2a22e..1925c61ee740460cb9897791fdaf6bef8559ed34 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_DIALOG_H_
 #define MSP_GLTK_DIALOG_H_
 
@@ -21,12 +14,21 @@ Dialog's action buttons are clicked, it will emit a signal and delete itself.
 */
 class Dialog: public Panel
 {
+public:
+       class Loader: public DataFile::DerivedObjectLoader<Dialog, Panel::Loader>
+       {
+       public:
+               Loader(Dialog &, WidgetMap &);
+       private:
+               void action_button(const std::string &, int);
+       };
+
+       sigc::signal<void, int> signal_response;
+
 private:
        bool stale;
 
 public:
-       sigc::signal<void, int> signal_response;
-
        Dialog();
 
        /** Adds an action button to the dialog.  Pressing the button will invoke