Back to index

scribus-ng  1.3.4.dfsg+svn20071115
spalette.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008                           spalette.h  -  description
00009                              -------------------
00010     begin                : Wed Apr 25 2001
00011     copyright            : (C) 2001 by Franz Schmid
00012     email                : Franz.Schmid@altmuehlnet.de
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #ifndef SPALETTE_H
00025 #define SPALETTE_H
00026 
00027 #include <qcombobox.h>
00028 #include <qlayout.h>
00029 #include "scribusapi.h"
00030 class ScribusDoc;
00031 
00036 class SCRIBUS_API ParaStyleComboBox : public QComboBox
00037 {
00038        Q_OBJECT
00039 
00040 public: 
00041        ParaStyleComboBox(QWidget* parent);
00042        ~ParaStyleComboBox() {};
00043        
00044        ScribusDoc *currentDoc;
00045        
00046 public slots:
00047        void setDoc(ScribusDoc *newCurrentDoc);
00048        void setFormat(QString name);
00049        void updateFormatList();
00050        void selFormat(int e);
00051        
00052 signals:
00053        void newStyle(const QString&);
00054        void editStyle();
00055 };
00056 
00057 class SCRIBUS_API CharStyleComboBox : public QComboBox
00058 {
00059        Q_OBJECT
00060 
00061 public: 
00062        CharStyleComboBox(QWidget* parent);
00063        ~CharStyleComboBox() {};
00064        
00065        ScribusDoc *currentDoc;
00066        
00067 public slots:
00068        void setDoc(ScribusDoc *newCurrentDoc);
00069        void setFormat(QString name);
00070        void updateFormatList();
00071        void selFormat(int e);
00072        
00073 signals:
00074        void newStyle(const QString&);
00075        void editCharStyle();
00076 };
00077 
00078 #endif