diff widgets/ExpandWidget.h @ 7:a5175615d153

add easaier tab widgets, style and pass the layer characteristics in the main window (remove from panestack)
author lbajardsilogic
date Fri, 11 May 2007 14:11:19 +0000
parents
children bc5b79e7b1d8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/widgets/ExpandWidget.h	Fri May 11 14:11:19 2007 +0000
@@ -0,0 +1,64 @@
+
+/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
+
+/*   
+	Sound Access
+		EASAIER client application.
+		Silogic 2007. Benoit Rigolleau.
+
+	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.  See the file
+	COPYING included with this distribution for more information.
+*/
+
+#ifndef _EXPAND_WIDGET_H
+#define _EXPAND_WIDGET_H
+
+#include <QApplication>
+#include <QPushButton>
+#include <QHBoxLayout>
+#include <QVBoxLayout>
+#include <QLayout>
+#include <QSplitter>
+#include <QWidget>
+
+class QPushButton;
+class QSplitter;
+
+class ExpandWidget : public QSplitter{
+	Q_OBJECT	
+
+	public:
+		enum Location {
+			Location_Top=0,
+			Location_Right=1,
+			Location_Bottom=2,
+			Location_Left=3 
+		};
+
+		ExpandWidget(QWidget *parent=0);
+        void setPanes(QWidget *newCenterPane, QWidget *newOtherPane);
+		void setWidgetLocation(ExpandWidget::Location newWidgetLocation);
+
+	//signals:
+      
+	private slots:
+		void changePaneSate();
+    
+	private:
+		void refreshButtonIcone();
+
+		QPushButton *m_button;
+		QWidget *m_centerPane;
+		QWidget *m_otherPane;
+		QLayout *m_layout;
+		ExpandWidget::Location m_widgetLocation;
+		
+		bool m_paneClosed;
+
+};
+#endif
+
+