qCTKTreeComboBox.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   qCTK
00004 
00005   Copyright (c) Kitware Inc. 
00006   All rights reserved.
00007   Distributed under a BSD License. See LICENSE.txt file.
00008 
00009   This software is distributed "AS IS" WITHOUT ANY WARRANTY; without even
00010   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00011   See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 
00015 #ifndef __qCTKTreeComboBox_h
00016 #define __qCTKTreeComboBox_h
00017 
00019 #include "qCTKPimpl.h"
00020 
00022 #include <QComboBox>
00023 
00024 #include "qCTKWidgetsExport.h"
00025 
00039 //
00040 class qCTKTreeComboBoxPrivate;
00041 
00042 class QCTK_WIDGETS_EXPORT qCTKTreeComboBox : public QComboBox
00043 {
00044   Q_OBJECT
00045 public:
00046   typedef QComboBox Superclass;
00047   explicit qCTKTreeComboBox(QWidget* parent = 0);
00048   virtual ~qCTKTreeComboBox(){}
00049 
00050   virtual bool eventFilter(QObject* object, QEvent* event);
00051   virtual void showPopup();
00052   virtual void hidePopup();
00053 
00054 protected:
00055   virtual void paintEvent(QPaintEvent*);
00056   
00057 protected slots:
00058   void onExpanded(const QModelIndex&);
00059   void onCollapsed(const QModelIndex&);
00060   
00061 private:
00062   QCTK_DECLARE_PRIVATE(qCTKTreeComboBox);
00063 };
00064 
00065 #endif

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1