[go: up one dir, main page]

File: confshowimg.h

package info (click to toggle)
showimg 0.9.4.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,436 kB
  • ctags: 3,644
  • sloc: cpp: 32,420; sh: 11,559; perl: 2,779; makefile: 220
file content (363 lines) | stat: -rw-r--r-- 9,524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
/***************************************************************************
                          confshowimg.h -  description
                             -------------------
    begin                : Sat Dec 1 2001
    copyright            : (C) 2001 by Richard Groult
    email                : rgroult@jalix.org 
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful, but   *
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      *
 *   General Public License for more details.                              *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the Free Software           *
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307   *
 *   USA.                                                                  *
 *                                                                         *
 *   For license exceptions see LICENSE.EXC file, attached with the source *
 *   code.                                                                 *
 *                                                                         *
 ***************************************************************************/

#ifndef __CONFSHOWIMG_H__
#define __CONFSHOWIMG_H__

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

// Local 
#include "imageviewer.h"

// KDE 
#include <kdialogbase.h>

#ifdef HAVE_KIPI
#include <libkipi/pluginloader.h>
#endif

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QCheckBox;
class QComboBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QRadioButton;
class QSlider;
class QFrame;
class QButtonGroup;
class QSpacerItem;

class KColorButton;
class KListView;
class KLineEdit;

class ConfShowImg : public KDialogBase
{
Q_OBJECT

public:
	ConfShowImg(QWidget *parent);
	virtual ~ConfShowImg();

	void initFiling(int openType, const QString& openDir, bool showSP, bool startFS);
	void initMiscellaneous(bool smooth, bool loadfim, bool sHDir, bool sHFile, bool sDir, bool sAll, bool sprelodim);
	void initColor(const QColor bgcolor, int gray);
	void initSlideshow(int type, int time);
	void initFullscreen(bool showToolbar, bool showStatusbar);
	void initProperties(bool sMeta, bool sHexa);
	void initThumbnails(bool storeth, bool showf, bool useexif, bool wwt, bool showMT, bool showS, bool showD, bool showDim);
	void initImagePosition(ImageViewer::ImagePosition pos);
	void initPaths(const QString& cdrom, const QString& gimp, const QString& convert, const QString& jpegtran);

	QColor getColor();
	int getGrayscale();

	int getOpenDirType();
	QString getOpenDir();
	bool checkshowSP();
	bool checkstartFS();

	bool getSmooth();
	bool getShowHiddenDir();
	bool getShowHiddenFile();
	bool getLoadFirstImage();
	bool getShowDir();
	bool getShowAll();
	bool getPreloadIm();

	bool getStoreth();
	bool getShowFrame();
	bool getUseEXIF();
	bool getWordWrapIconText();
	bool getShowMimeType();
	bool getShowSize();
	bool getShowDate();
	bool getShowDimension();

	int getSlideshowTime();
	int getSlideshowType();

	void setLayout(int l);
	int getLayout();

	bool getShowToolbar();
	bool getShowStatusbar();

	bool getShowMeta();
	bool getShowHexa();

	void applyPlugins();

	QString getcdromPath();
	QString getgimpPath();
	QString getconvertPath();
	QString getjpegtranPath();
	
	ImageViewer::ImagePosition getImagePosition();
	
protected slots:
	void slotChangeTime(int);
	void setGrayscale(int);
	void chooseDir();

	void chooseDir_cdrom();
	void chooseDir_gimp();
	void chooseDir_convert();
	void chooseDir_jpegtran();
	
protected:
	void addPage1();
	void addPage2();
	void addPage3();
	void addPage4();
	void addPage5();
	void addPage6();
	void addPage7();
	void addPage8();
	void addPage9();
	void addPage10();
	void addPage11();

	QFrame *page1, *page2, *page3, *page4, *page5, *page6, *page7, *page8 , *page9, *page10, *page11;

	QPixmap *image0	;
	QLineEdit* timeLine;
	QComboBox* ComboBox1;
	QGroupBox* GroupBox18;

    QGroupBox* groupBoxTab;
    QCheckBox* showMeta;
    QCheckBox* showHexa;
    QHBoxLayout* page7Layout;
    QVBoxLayout* layoutTab;
    QGridLayout* groupBoxTabLayout;
    QVBoxLayout* layoutCheckBoxTab;




	QLabel* TextLabel4;

///Colors
    QButtonGroup* colorButtonGroup2;
    QRadioButton* ColorRadioButton5;
    QPushButton* PushButton1;
    QRadioButton* RadioButton4;
    KColorButton* color;
    QGroupBox* colorGroupBox6;
    QCheckBox* grayCheck;
    QSlider* graySlider;
    QLabel* PixmapLabel1;
    
    QVBoxLayout* ColorsLayout;
    QSpacerItem* colorspacer2;
    QGridLayout* colorButtonGroup2Layout;
    QSpacerItem* colorspacer1;
    QGridLayout* colorGroupBox6Layout;
    QSpacerItem* spacer3;




//Slideshow
    QButtonGroup* ButtonGroup3;
    QRadioButton* forward;
    QRadioButton* backward;
    QRadioButton* random;
    QFrame* Line1;
    QCheckBox* wraparound;
    QGroupBox* GroupBox2;
    QSlider* timeSlide;
    QLabel* timeLabel;

    QVBoxLayout* SlideShowLayout;
    QSpacerItem* spacer16;
    QHBoxLayout* layout9;
    QVBoxLayout* ButtonGroup3Layout;
    QVBoxLayout* GroupBox2Layout;
    QHBoxLayout* layout1;


//Layout
    QButtonGroup* ButtonGroup2;
    QRadioButton* radioButton_4;
    QRadioButton* radioButton_1;
    QRadioButton* radioButton_3;
    QRadioButton* radioButton_2;
    QRadioButton* RadioButton5;
    QVBoxLayout* Form2Layout;
    QSpacerItem* spacer15;
    QHBoxLayout* layout10;
    QSpacerItem* spacer17;
    QGridLayout* ButtonGroup2Layout;
    QSpacerItem* spacer11;
    QSpacerItem* spacer12;
    QSpacerItem* spacer10;
    QSpacerItem* spacer13;
    QSpacerItem* spacer14;

///FullScreen
    QButtonGroup* fsButtonGroup;
    QCheckBox* sStatusbar;
    QCheckBox* sToolbar;

    QVBoxLayout* FullScreenFormLayout;
    QSpacerItem* spacer1;
    QVBoxLayout* fsButtonGroupLayout;




//page1
 protected:
    QButtonGroup* GroupBox13;
    QRadioButton* openHome;
    QRadioButton* openLast;
    QRadioButton* open_custom;
    QLineEdit* LineEdit2;
    QPushButton* chooseButton;
    QCheckBox* showSP;
    QCheckBox* startFS;

protected:
    QVBoxLayout* page1Layout;
    QVBoxLayout* GroupBox8Layout;
    QVBoxLayout* GroupBox13Layout;
    QHBoxLayout* layout1_2;



//page2
protected:
    QGroupBox* groupBox3;
    QCheckBox* smoothCheck;
    QGroupBox* groupBox4;
    QCheckBox* prelodimCheck;
    QCheckBox* loadfirstimCheck;
    QGroupBox* groupBox5;
    QCheckBox* sHiddenDirCheck;
    QCheckBox* sHiddenFileCheck;
    QCheckBox* sAllCheck;
    QCheckBox* sDirCheck;

protected:
    QGridLayout* Form1Layout;
    QVBoxLayout* page2Layout;
    QHBoxLayout* layout6;
    QGridLayout* groupBox3Layout;
    QVBoxLayout* groupBox4Layout;
    QGridLayout* groupBox5Layout;

//page8
protected:
    KListView* pluginList;
    QVBoxLayout* Form1Layoutp8;
#ifdef HAVE_KIPI
    KIPI::ConfigWidget *m_Kipiconfig;
#endif
//page9
    QVBoxLayout* layoutP9;
    QGroupBox* groupboxThumbnails;
    QCheckBox* showFrame;
    QCheckBox* storethCheck;
    QCheckBox* useEXIF;
    QCheckBox* wrapIconText;
    QGroupBox* groupBoxDetails;
    QCheckBox* showMimeType;
    QCheckBox* showSize;
    QCheckBox* showDate;
    QCheckBox* showDimension;

protected:
    QHBoxLayout* layoutThumb;
    QGridLayout* groupboxThumbnailsLayout;
    QHBoxLayout* layoutDetails;
    QGridLayout* groupBoxDetailsLayout;


    
//page10
public:
    QGroupBox* cdromgroupBox;
    QLabel* cdromLabel;
    KLineEdit* cdromPath;
    QPushButton* cdromPathBrowser;
    QGroupBox* externalProgramsGroupBox;
    QLabel* gimpLabel;
    KLineEdit* gimpPath;
    QPushButton* gimpPathBrowser;
    QFrame* externalProgramsLine;
    QLabel* convertLabel;
    KLineEdit* convertPath;
    QPushButton* convertPathBrowser;
    QLabel* jpegtranLabel;
    KLineEdit* jpegtranPath;
    QPushButton* jpegtranPathBrowser;

protected:
    QVBoxLayout* ExternalProgramsLayout;
    QVBoxLayout* cdromgroupBoxLayout;
    QHBoxLayout* cdromLayout;
    QGridLayout* externalProgramsGroupBoxLayout;
    QHBoxLayout* gimpLayout;
    QHBoxLayout* convertLayout;
    QHBoxLayout* jpegtranLayout;

//page11    
public:
    QButtonGroup* ImagePositionGroup;
    QRadioButton* centeredRadioButton;
    QRadioButton* otherRadioButton;
    QButtonGroup* chosePosButtonGroup;
    QRadioButton* rightBut;
    QRadioButton* bottomLeftBut;
    QRadioButton* topLeftBut;
    QRadioButton* topRightBut;
    QRadioButton* leftBut;
    QRadioButton* bottomRightBut;
    QLabel* imagePreviewPosLabel;
    QRadioButton* topBut;
    QRadioButton* bottomBut;

protected:
    QVBoxLayout* ImagePositionLayout;
    QVBoxLayout* ImagePositionGroupLayout;
    QHBoxLayout* choosePosLayout;
    QGridLayout* chosePosButtonGroupLayout;

};

#endif