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
28class Q3GridLayout;
29class QLabel;
30class QCheckBox;
31class QSlider;
32class QSpinBox;
33class Q3VGroupBox;
34class Q3Frame;
35class QPushButton;
36class QComboBox;
37class Configuration;
38
39//=====================================
42//=====================================
43
44//======================
46{
47Q_OBJECT
48//----------------------
49public:
50 LayoutSettingsWidget( Configuration* config, QWidget *parent=0, const char* name=0);
51 static void setDefaults(Configuration* config);
52 void loadSettings();
53 void saveSettings();
54//----------------------
55private slots:
56 void defaultSizeSliderMoved(int val);
57 void defaultSizeSpinboxChanged(int val);
58 void toggleDefaultSizeEnabled(bool b);
59private:
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
Configuration object manages all user-specific application settings.
static void setDefaults(Configuration *config)
Q3GridLayout * manualPlacementGrid
Configuration * config
Backend config object pointer.
LayoutSettingsWidget(Configuration *config, QWidget *parent=0, const char *name=0)
void defaultSizeSpinboxChanged(int val)
QCheckBox * restoreWindowPlacementSize
Q3VGroupBox * windowPlacementSize
long b