/***************************************************************************
 *   Copyright (C) 2005 by Daniel Stöckel                                  *
 *   the_docter@gmx.net                                                    *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program 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 General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef CONFIGDIALOGIMPL_H
#define CONFIGDIALOGIMPL_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "configdialog.h"

#include <tqptrlist.h>

#include "kommandoview.h"

class KService;
class KServiceGroup;
class TDEShortcut;

/**
 * @short Application Main Window
 * @author Daniel Stöckel <the_docter@gmx.net>
 * @version 0.5.2
 */

class ConfigDialogImpl : public ConfigDialog
{
    TQ_OBJECT

    public:
        ConfigDialogImpl(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0);
        /*$PUBLIC_FUNCTIONS$*/
        void readConfig();

    public slots:
        virtual void slotDefaultsClicked();
        virtual void slotApplyClicked();

    signals:
        void changed(bool);

    protected:
        bool configChanged;
        bool grabbing;
        KommandoView* curListView;
        KommandoViewList mMenus;

        /*$PROTECTED_FUNCTIONS$*/

        virtual void initView();
        virtual void listViewFromClick();
        void createEntry(const TQString& kind);  //This is a helper function to add a new entry to the Listview
        void setChanged(bool state);
        bool event(TQEvent* evt);
    protected slots:
        /*$PROTECTED_SLOTS$*/
        virtual void slotChangeListView(const TQString&);
        virtual void slotButtonUpPressed();
        virtual void slotButtonDownPressed();
        virtual void slotCustomSizeCheckboxToggled(bool);
        virtual void slotSchemeComboboxChanged(const TQString&);
        virtual void slotMenuRadiusSpinboxChanged(int);
        virtual void slotShortcutChanged(const TDEShortcut& cut);
        virtual void slotCommandoTyped(const TQString& commando);
        virtual void slotMenuViewClicked(TQListViewItem* item);
        virtual void slotNewIcon();
        virtual void slotRemoveClicked();
        virtual void slotAddButtonClicked();
        virtual void slotAddMenuClicked();
        virtual void slotListBoxClicked(TQListBoxItem* item);
        virtual void slotColorButtonClicked(const TQColor& color);
        virtual void slotOpacitySliderChanged(int value);
        virtual void slotNavButtonSizeChanged(const TQString&);
        virtual void slotMenuButtonSizeChanged(const TQString&);
        virtual void slotAddService(KService* service);
        virtual void slotAddServiceGroup(KServiceGroup* group);
        virtual void slotRemoveListViewClicked();
        virtual void slotNewListViewClicked();
};

#endif



