diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kpovmodeler/pmlayoutsettings.h | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmlayoutsettings.h')
-rw-r--r-- | kpovmodeler/pmlayoutsettings.h | 174 |
1 files changed, 174 insertions, 0 deletions
diff --git a/kpovmodeler/pmlayoutsettings.h b/kpovmodeler/pmlayoutsettings.h new file mode 100644 index 00000000..4bca52e3 --- /dev/null +++ b/kpovmodeler/pmlayoutsettings.h @@ -0,0 +1,174 @@ +/* +************************************************************************** + description + -------------------- + copyright : (C) 2003 by Andreas Zehender + email : [email protected] +************************************************************************** + +************************************************************************** +* * +* 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. * +* * +**************************************************************************/ + +#ifndef PMLAYOUTSETTINGS_H +#define PMLAYOUTSETTINGS_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "pmsettingsdialog.h" +#include "pmviewlayoutmanager.h" + +#include <qvaluelist.h> + +class PMIntEdit; +class PMViewOptionsWidget; +class QComboBox; +class QListBox; +class QPushButton; +class QLabel; + +/** + * View layout configuration dialog page + */ +class PMLayoutSettings : public PMSettingsDialogPage +{ + Q_OBJECT +public: + /** + * Default constructor + */ + PMLayoutSettings( QWidget* parent, const char* name = 0 ); + /** */ + virtual void displaySettings( ); + /** */ + virtual bool validateData( ); + /** */ + virtual void applySettings( ); + /** */ + virtual void displayDefaults( ); + +protected slots: + /** + * Called when the browse add layout button is clicked + */ + void slotAddLayout( ); + /** + * Called when the remove layout button is clicked + */ + void slotRemoveLayout( ); + /** + * Called when the selected layout changes + */ + void slotLayoutSelected( int i ); + /** + * Called when the layout name changes + */ + void slotLayoutNameChanged( const QString& text ); + /** + * Called when the selected view entry changes + */ + void slotViewEntrySelected( QListViewItem* text ); + /** + * Called when the view type field changes value + */ + void slotViewTypeChanged( int index ); + /** + * Called when the gl view type field changes value + */ + //void slotGLViewTypeChanged( int index ); + /** + * Called when the dock position field changes value + */ + void slotDockPositionChanged( int index ); + /** + * Called when the view height field changes value + */ + void slotViewHeightChanged( const QString& text ); + /** + * Called when the column width field changes value + */ + void slotColumnWidthChanged( const QString& text ); + /** + * Called when the floating height changes value + */ + void slotFloatingHeightChanged( const QString& text ); + /** + * Called when the floating width changes value + */ + void slotFloatingWidthChanged( const QString& text ); + /** + * Called when the floating position x changes value + */ + void slotFloatingPosXChanged( const QString& text ); + /** + * Called when the floating position y changes value + */ + void slotFloatingPosYChanged( const QString& text ); + /** + * Called when the add view entry button is clicked + */ + void slotAddViewEntryClicked( ); + /** + * Called when the remove view entry button is clicked + */ + void slotRemoveViewEntryClicked( ); + /** + * Called when the move up view entry button is clicked + */ + void slotMoveUpViewEntryClicked( ); + /** + * Called when the move down view entry button is clicked + */ + void slotMoveDownViewEntryClicked( ); + /** + * Called when the view type description has changed + */ + void slotViewTypeDescriptionChanged( ); + +private: + void displayLayoutList( ); + void displayCustomOptions( ); + + QComboBox* m_pDefaultLayout; + QListBox* m_pViewLayouts; + QPushButton* m_pAddLayout; + QPushButton* m_pRemoveLayout; + QLineEdit* m_pViewLayoutName; + QListView* m_pViewEntries; + QPushButton* m_pAddEntry; + QPushButton* m_pRemoveEntry; + QPushButton* m_pMoveUpEntry; + QPushButton* m_pMoveDownEntry; + QComboBox* m_pViewTypeEdit; + QComboBox* m_pDockPositionEdit; + PMIntEdit* m_pColumnWidthEdit; + QLabel* m_pColumnWidthLabel; + PMIntEdit* m_pViewHeightEdit; + QLabel* m_pViewHeightLabel; + + PMIntEdit* m_pFloatingHeight; + PMIntEdit* m_pFloatingWidth; + QLabel* m_pFloatingHeightLabel; + QLabel* m_pFloatingWidthLabel; + PMIntEdit* m_pFloatingPosX; + PMIntEdit* m_pFloatingPosY; + QLabel* m_pFloatingPosXLabel; + QLabel* m_pFloatingPosYLabel; + + PMViewOptionsWidget* m_pCustomOptionsWidget; + QWidget* m_pCustomOptionsHolder; + + QValueList<PMViewLayout> m_viewLayouts; + QValueListIterator<PMViewLayout> m_currentViewLayout; + QValueListIterator<PMViewLayout> m_defaultViewLayout; + QValueListIterator<PMViewLayoutEntry> m_currentViewEntry; +}; + +#endif |