Scribus
Open source desktop publishing at your fingertips
commonstrings.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8  begin : Aug 2005
9  copyright : (C) 2005 by Craig Bradney
10  email : cbradney@zip.com.au
11 ***************************************************************************/
12 
13 /***************************************************************************
14 * *
15 * ScMW program is free software; you can redistribute it and/or modify *
16 * it under the terms of the GNU General Public License as published by *
17 * the Free Software Foundation; either version 2 of the License, or *
18 * (at your option) any later version. *
19 * *
20 ***************************************************************************/
21 
22 #ifndef COMMONSTRINGS_H
23 #define COMMONSTRINGS_H
24 
25 #include <QObject>
26 #include <QString>
27 
28 class QEvent;
29 
30 #include "scribusapi.h"
31 
48 class SCRIBUS_API CommonStrings : public QObject
49 {
50  Q_OBJECT
51 public:
52  CommonStrings();
53 
54  virtual void changeEvent(QEvent *e);
55 
61  static const QString& translatePageSetString(const QString &untrString);
67  static const QString& translatePageSetLocString(const QString &untrString);
73  static const QString& untranslatePageSetString(const QString &trString);
79  static const QString& untranslatePageSetLocString(const QString &trString);
85  static const QString& translatePenStyleName(Qt::PenStyle ps);
86  static void languageChange();
87  static QString _Apply;
88  static QString tr_Apply;
89  static QString _Cancel;
90  static QString tr_Cancel;
91  static QString None;
92  static QString tr_None;
93  static QString tr_NoneColor;
94  static QString _OK;
95  static QString tr_OK;
96  static QString _Save;
97  static QString tr_Save;
98  static QString Warning;
99  static QString trWarning;
101  static QString trYes;
103  static QString trNo;
105  static QString trYesKey;
107  static QString trNoKey;
108 
109  //Item Types
110  static QString itemType_TextFrame;
111  static QString itemType_ImageFrame;
112  static QString itemType_Line;
113  static QString itemType_Polygon;
114  static QString itemType_Polyline;
115  static QString itemType_PathText;
116  static QString itemType_LatexFrame;
117  static QString itemType_OSGFrame;
118  static QString itemType_Symbol;
119  static QString itemType_Group;
120  static QString itemType_RegularPolygon;
121  static QString itemType_Arc;
122  static QString itemType_Spiral;
123  static QString itemType_Table;
124  static QString itemType_Multiple;
125 
126  static QString itemSubType_PDF_PushButton;
127  static QString itemSubType_PDF_RadioButton;
128  static QString itemSubType_PDF_TextField;
129  static QString itemSubType_PDF_CheckBox;
130  static QString itemSubType_PDF_ComboBox;
131  static QString itemSubType_PDF_ListBox;
132  static QString itemSubType_PDF_TextAnnotation;
133  static QString itemSubType_PDF_LinkAnnotation;
134  static QString itemName_PushButton;
135  static QString itemName_RadioButton;
136  static QString itemName_TextField;
137  static QString itemName_CheckBox;
138  static QString itemName_ComboBox;
139  static QString itemName_ListBox;
140  static QString itemName_TextAnnotation;
141  static QString itemName_LinkAnnotation;
142 
143  //Page Size
144  static QString customPageSize;
145  static QString trCustomPageSize;
146 
147  //Page Sets
148  static QString pageSet1;
149  static QString pageSet2;
150  static QString pageSet3;
151  static QString pageSet4;
152  static QString trPageSet1;
153  static QString trPageSet2;
154  static QString trPageSet3;
155  static QString trPageSet4;
156  static QString pageLocLeft;
157  static QString pageLocMiddle;
158  static QString pageLocMiddleLeft;
159  static QString pageLocMiddleRight;
160  static QString pageLocRight;
161  static QString trPageLocLeft;
162  static QString trPageLocMiddle;
163  static QString trPageLocMiddleLeft;
164  static QString trPageLocMiddleRight;
165  static QString trPageLocRight;
166 
167  //Master Page Default Names
168  static QString masterPageNormal;
169  static QString trMasterPageNormal;
170  static QString masterPageNormalLeft;
171  static QString trMasterPageNormalLeft;
172  static QString masterPageNormalMiddle;
173  static QString trMasterPageNormalMiddle;
174  static QString masterPageNormalRight;
175  static QString trMasterPageNormalRight;
176 
177  //Pen Styles
178  static QString trPenStyle_SolidLine;
179  static QString trPenStyle_DashedLine;
180  static QString trPenStyle_DottedLine;
181  static QString trPenStyle_DashDotLine;
182  static QString trPenStyle_DashDotDotLine;
183 
184  //Default Styles
185  static QString DefaultParagraphStyle;
186  static QString DefaultCharacterStyle;
187  static QString DefaultLineStyle;
188  static QString DefaultTableStyle;
189  static QString DefaultCellStyle;
190  static QString trDefaultParagraphStyle;
191  static QString trDefaultCharacterStyle;
192  static QString trDefaultLineStyle;
193  static QString trDefaultTableStyle;
194  static QString trDefaultCellStyle;
195 
196  //Days and Months
197  static QString monday;
198  static QString tuesday;
199  static QString wednesday;
200  static QString thursday;
201  static QString friday;
202  static QString saturday;
203  static QString sunday;
204 
205  static QString january;
206  static QString february;
207  static QString march;
208  static QString april;
209  static QString may;
210  static QString june;
211  static QString july;
212  static QString august;
213  static QString september;
214  static QString october;
215  static QString november;
216  static QString december;
217 
218  //Color Related
219  static QString trRGB;
220  static QString trCMYK;
221  static QString trGrayscale;
222  static QString trDuotone;
223  static QString trMonochrome;
224  static QString trUnknownCS;
225 
226  //Color Blindness
227  static QString trVisionNormal;
228  static QString trVisionProtanopia;
229  static QString trVisionDeuteranopia;
230  static QString trVisionTritanopia;
231  static QString trVisionFullColorBlind;
232 
233  //Tab Fill Custom
234  static QString trCustomTabFill;
235 
236  //Paragraph Style Optical Margins
237  static QString trOpticalMarginsNone;
238  static QString trOpticalMarginsLeftProtruding;
239  static QString trOpticalMarginsRightProtruding;
240  static QString trOpticalMarginsLeftHangPunct;
241  static QString trOpticalMarginsRightHangPunct;
242  static QString trOpticalMarginsDefault;
243 
244  //Paragraph Style Word Tracking
245  static QString trMinWordTracking;
246  static QString trMaxWordTracking;
247 
248  //Paragraph Style Glyph Extension
249  static QString trMinGlyphExtension;
250  static QString trMaxGlyphExtension;
251 
252  //PostScript or other PDL strings
253  static QString PostScript;
254  static QString trPostScript;
255  static QString PDF_1_3;
256  static QString PDF_1_4;
257  static QString PDF_1_5;
258  static QString PDF_X1a;
259  static QString PDF_X3;
260  static QString PDF_X4;
261 
262  static QString PostScript1;
263  static QString trPostScript1;
264  static QString PostScript2;
265  static QString trPostScript2;
266  static QString PostScript3;
267  static QString trPostScript3;
268  static QString WindowsGDI;
269  static QString trWindowsGDI;
270 
271  //Units strings
272  static QString trStrPT;
273  static QString trStrMM;
274  static QString trStrIN;
275  static QString trStrP;
276  static QString trStrCM;
277  static QString trStrC;
278  static QString trStrPX;
279  static QString strPT;
280  static QString strMM;
281  static QString strIN;
282  static QString strP;
283  static QString strCM;
284  static QString strC;
285  static QString strPX;
286 
287  //Keyboard Modifiers
288  static QString controlModifier;
289  static QString altModifier;
290  static QString shiftModifier;
291  static QString metaModifier;
292 
293 };
294 
295 #endif
static QString trYes
Translated "Yes".
Definition: commonstrings.h:101
static QString trYesKey
Translated "Yes" with key accelerator "&Yes".
Definition: commonstrings.h:105
static QString trNoKey
Translated "No" with key accelerator "&No".
Definition: commonstrings.h:107
static QString trNo
Translated "No".
Definition: commonstrings.h:103
A simple common strings class to reduce the string count and ease the translation process a little...
Definition: commonstrings.h:48