Back to index

scribus-ng  1.3.4.dfsg+svn20071115
tabexternaltoolswidget.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 *   Copyright (C) 2005 by Craig Bradney                                   *
00009 *   cbradney@zip.com.au                                                   *
00010 *                                                                         *
00011 *   This program is free software; you can redistribute it and/or modify  *
00012 *   it under the terms of the GNU General Public License as published by  *
00013 *   the Free Software Foundation; either version 2 of the License, or     *
00014 *   (at your option) any later version.                                   *
00015 *                                                                         *
00016 *   This program is distributed in the hope that it will be useful,       *
00017 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00019 *   GNU General Public License for more details.                          *
00020 *                                                                         *
00021 *   You should have received a copy of the GNU General Public License     *
00022 *   along with this program; if not, write to the                         *
00023 *   Free Software Foundation, Inc.,                                       *
00024 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00025 ***************************************************************************/
00026 
00027 #ifndef TABEXTERNALTOOLSWIDGET_H
00028 #define TABEXTERNALTOOLSWIDGET_H
00029 
00030 #include <qcheckbox.h>
00031 #include <qfiledialog.h>
00032 #include <qfileinfo.h>
00033 #include <qlineedit.h>
00034 #include <qpushbutton.h>
00035 #include <qspinbox.h>
00036 
00037 #include "scpaths.h"
00038 #include "tabexternaltoolswidgetbase.h"
00039 #include "prefsstructs.h"
00040 #include "scribusapi.h"
00041 
00042 class SCRIBUS_API TabExternalToolsWidget : public TabExternalToolsWidgetBase
00043 {
00044        Q_OBJECT
00045 
00046        public:
00047               TabExternalToolsWidget(struct ApplicationPrefs *prefsData, QWidget* parent=0, const char*name=0);
00048               ~TabExternalToolsWidget();
00049               void restoreDefaults(struct ApplicationPrefs *prefsData);
00050               
00051               const QString newPSTool() const;
00052               const QString newImageTool() const;
00053               const QString newExtBrowserTool() const;
00054               bool newAntialiasText() const { return psAntialiasTextCheckBox->isChecked();}
00055               bool newAntialiasGraphics() const { return psAntialiasGraphicsCheckBox->isChecked();}
00056               int newPSToolResolution() const { return psResolutionSpinBox->value();}
00057               
00058        public slots:
00059               void changePostScriptTool();
00060               void changeImageTool();
00061               void changeExtBrowserTool();
00062               void rescanForTools();
00063 };
00064 
00065 #endif