kspread

kspread_dlg_styles.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Laurent Montel <montel@kde.org>
00003              (C) 2003 Norbert Andres <nandres@web.de>  
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __kspread_dlg_styles__
00022 #define __kspread_dlg_styles__
00023 
00024 #include <kdialogbase.h>
00025 #include <qwidget.h>
00026 
00027 class KComboBox;
00028 class KListView;
00029 
00030 class QListViewItem;
00031 
00032 namespace KSpread
00033 {
00034 class StyleManager;
00035 class View;
00036 
00037 class StyleWidget : public QWidget
00038 {
00039   Q_OBJECT
00040 
00041  public:
00042   StyleWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00043   ~StyleWidget();
00044 
00045   KListView * m_styleList;
00046   KComboBox * m_displayBox;
00047 signals:
00048     void modifyStyle();
00049 };
00050 
00051 class StyleDlg : public KDialogBase
00052 {
00053   Q_OBJECT
00054  public:
00055   StyleDlg( View * parent, StyleManager * manager,
00056                    const char * name = "StyleDlg" );
00057   ~StyleDlg();
00058 
00059  protected slots:
00060   void slotOk();
00061   void slotUser1();
00062   void slotUser2();
00063   void slotUser3();
00064   void slotDisplayMode( int mode );
00065   void slotSelectionChanged( QListViewItem * );
00066 
00067  private:
00068   View         * m_view;
00069   StyleManager * m_styleManager;
00070   StyleWidget         * m_dlg;
00071 
00072   void fillComboBox();
00073 };
00074 
00075 } // namespace KSpread
00076 
00077 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys