File indexing completed on 2024-12-22 04:17:29

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2008 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef DEFAULTLABELPROPERTIESTAB_H
0014 #define DEFAULTLABELPROPERTIESTAB_H
0015 
0016 #include "dialogtab.h"
0017 #include "ui_defaultlabelpropertiestab.h"
0018 
0019 #include "kst_export.h"
0020 
0021 namespace Kst {
0022 
0023 class DefaultLabelPropertiesTab : public DialogTab, Ui_DefaultLabelPropertiesTab {
0024   Q_OBJECT
0025   public:
0026     explicit DefaultLabelPropertiesTab(QWidget *parent = 0);
0027     virtual ~DefaultLabelPropertiesTab();
0028 
0029     double referenceViewWidth() const;
0030     void setReferenceViewWidth(const double width);
0031 
0032     double referenceViewHeight() const;
0033     void setReferenceViewHeight(const double height);
0034 
0035     int minimumFontSize() const;
0036     void setMinimumFontSize(const int points);
0037 
0038     void checkSizeDefaults();
0039 
0040   public Q_SLOTS:
0041     void referenceViewSizeComboChanged(int i);
0042 };
0043 
0044 extern const double A4Width; //  A4 with a 1.5 cm margin;
0045 extern const double A4Height; // A4 with a 1.5 cm margin;
0046 
0047 }
0048 
0049 #endif
0050 
0051 // vim: ts=2 sw=2 et