#ifndef oxygendemodialog_h
#define oxygendemodialog_h

/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
*
* based on the Null Theme Engine for Gtk+.
* Copyright (c) 2008 Robert Staudinger <robert.staudinger@gmail.com>
*
* This  library is free  software; you can  redistribute it and/or
* modify it  under  the terms  of the  GNU Lesser  General  Public
* License  as published  by the Free  Software  Foundation; either
* version 2 of the License, or( at your option ) any later version.
*
* This library is distributed  in the hope that it will be useful,
* but  WITHOUT ANY WARRANTY; without even  the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License  along  with  this library;  if not,  write to  the Free
* Software Foundation, Inc., 51  Franklin St, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/

#include "oxygensignalhandler.h"
#include "oxygensliderdemowidget.h"

#include <gtk/gtk.h>
#include <map>

namespace Oxygen
{

    // forward declaration
    class DemoWidget;

    // main demo dialog
    class DemoDialog: public SignalHandler
    {

        public:

        //! constructor
        DemoDialog( void );

        //! destructor
        virtual ~DemoDialog( void );

         //! main widget
        virtual GtkWidget* mainWidget( void )
        { return _mainWidget; }

        protected:

        //! add page
        void addPage( DemoWidget* );

        //!@name callbacks
        //@{

        static void selectionChanged( GtkIconView*, gpointer );
        static void toggleEnableState( GtkToggleButton*, gpointer );
        static void toggleWidgetDirection( GtkToggleButton*, gpointer );
        static gboolean keyPress( GtkWidget*, GdkEventKey*, gpointer );
        //@}

        private:

        //! main widget
        GtkWidget* _mainWidget;

        //! tab widget
        GtkWidget* _notebook;

        //! model
        GtkListStore* _model;

        //! map page index and page widget
        typedef std::map<int, DemoWidget*> PageMap;
        PageMap _pages;
        SliderDemoWidget* _sliderDemoWidget;

        //! enable state button
        GtkWidget* _stateButton;

    };

}

#endif
