Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

layoutSettingsWidget.h

Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003-2005 by Will Stokes
00003 //==============================================
00004 //  This program is free software; you can redistribute it
00005 //  and/or modify it under the terms of the GNU General
00006 //  Public License as published by the Free Software
00007 //  Foundation; either version 2 of the License, or
00008 //  (at your option) any later version.
00009 //==============================================
00010 
00011 #ifndef CONFIGURATION_LAYOUTSETTINGSWIDGET_H
00012 #define CONFIGURATION_LAYOUTSETTINGSWIDGET_H
00013 
00014 //window placement
00015 #define CENTER 0
00016 #define TOP_LEFT 1
00017 #define TOP_RIGHT 2
00018 #define BOTTOM_LEFT 3
00019 #define BOTTOM_RIGHT 4
00020 
00021 #include <qdialog.h>
00022 
00023 //forward declarations
00024 class QGridLayout;
00025 class QLabel;
00026 class QCheckBox;
00027 class QSlider;
00028 class QSpinBox;
00029 class QVGroupBox;
00030 class QFrame;
00031 class QPushButton;
00032 class QComboBox;
00033 class Configuration;
00034 
00035 //=====================================
00038 //=====================================
00039 
00040 //======================
00041 class LayoutSettingsWidget : public QWidget
00042 {
00043 Q_OBJECT
00044 //----------------------
00045 public:
00046   LayoutSettingsWidget( Configuration* config, QWidget *parent=0, const char* name=0);
00047   static void setDefaults(Configuration* config);
00048   void loadSettings();
00049   void saveSettings();
00050 //----------------------
00051 private slots:
00052   void defaultSizeSliderMoved(int val);
00053   void defaultSizeSpinboxChanged(int val);
00054   void toggleDefaultSizeEnabled(bool b);
00055 private:
00057   Configuration* config;
00058 
00059   QGridLayout* mainGrid;
00060   //-------
00061   //Main Category and separation line
00062   QLabel* categoryLabel;
00063   QFrame* horizontalLine;
00064   //-------
00065   //General Settings
00066   QVGroupBox* generalSettings;
00067   QCheckBox* photosBackgroundImage;
00068   QCheckBox* useAnimation;
00069   QCheckBox* showTooltips;
00070   //-------
00071   //Window Placement and Size Controls
00072   QFrame* sizeFrame;
00073   QGridLayout* manualPlacementGrid;
00074   QVGroupBox* windowPlacementSize;
00075   QCheckBox* restoreWindowPlacementSize;
00076 
00077   QLabel* defaultWindowSizeLabel;
00078   QSlider* defaultWindowSizeSlider;
00079   QSpinBox* defaultWindowSizeValue;
00080 
00081   QLabel* defaultWindowPlacementLabel;
00082   QComboBox* defaultWindowPlacement;
00083 //----------------------
00084 };
00085 //======================
00086 
00087 #endif //CONFIGURATION_LAYOUTSETTINGSWIDGET_H

Generated on Wed May 4 11:10:13 2005 for AlbumShaper by  doxygen 1.3.9.1