AlbumShaper  1.0a3
layoutSettingsWidget.h
Go to the documentation of this file.
1 //==============================================
2 // copyright : (C) 2003-2005 by Will Stokes
3 //==============================================
4 // This program is free software; you can redistribute it
5 // and/or modify it under the terms of the GNU General
6 // Public License as published by the Free Software
7 // Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //==============================================
10 
11 #ifndef CONFIGURATION_LAYOUTSETTINGSWIDGET_H
12 #define CONFIGURATION_LAYOUTSETTINGSWIDGET_H
13 
14 //window placement
15 #define CENTER 0
16 #define TOP_LEFT 1
17 #define TOP_RIGHT 2
18 #define BOTTOM_LEFT 3
19 #define BOTTOM_RIGHT 4
20 
21 #include <qdialog.h>
22 //Added by qt3to4:
23 #include <Q3Frame>
24 #include <Q3GridLayout>
25 #include <QLabel>
26 
27 //forward declarations
28 class Q3GridLayout;
29 class QLabel;
30 class QCheckBox;
31 class QSlider;
32 class QSpinBox;
33 class Q3VGroupBox;
34 class Q3Frame;
35 class QPushButton;
36 class QComboBox;
37 class Configuration;
38 
39 //=====================================
42 //=====================================
43 
44 //======================
46 {
47 Q_OBJECT
48 //----------------------
49 public:
50  LayoutSettingsWidget( Configuration* config, QWidget *parent=0, const char* name=0);
51  static void setDefaults(Configuration* config);
52  void loadSettings();
53  void saveSettings();
54 //----------------------
55 private slots:
56  void defaultSizeSliderMoved(int val);
57  void defaultSizeSpinboxChanged(int val);
58  void toggleDefaultSizeEnabled(bool b);
59 private:
62 
63  Q3GridLayout* mainGrid;
64  //-------
65  //Main Category and separation line
68  //-------
69  //General Settings
70  Q3VGroupBox* generalSettings;
72  QCheckBox* useAnimation;
73  QCheckBox* showTooltips;
74  //-------
75  //Window Placement and Size Controls
77  Q3GridLayout* manualPlacementGrid;
78  Q3VGroupBox* windowPlacementSize;
80 
84 
87 //----------------------
88 };
89 //======================
90 
91 #endif //CONFIGURATION_LAYOUTSETTINGSWIDGET_H
void defaultSizeSpinboxChanged(int val)
QComboBox * defaultWindowPlacement
long b
Definition: jpegInternal.h:125
Q3GridLayout * manualPlacementGrid
LayoutSettingsWidget(Configuration *config, QWidget *parent=0, const char *name=0)
QCheckBox * restoreWindowPlacementSize
Q3VGroupBox * windowPlacementSize
Configuration object manages all user-specific application settings.
Definition: configuration.h:24
static void setDefaults(Configuration *config)
Configuration * config
Backend config object pointer.
void defaultSizeSliderMoved(int val)