Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

oversatileviewdemo.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de>
00005               =.
00006             .=l.
00007            .>+-=
00008  _;:,     .>    :=|.         This program is free software; you can
00009 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00010 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00011 .="- .-=="i,     .._         License as published by the Free Software
00012  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00013      ._= =}       :          or (at your option) any later version.
00014     .%`+i>       _;_.
00015     .i_,=:_.      -<s.       This program is distributed in the hope that
00016      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00017     : ..    .:,     . . .    without even the implied warranty of
00018     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00019   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00020 ..}^=.=       =       ;      Library General Public License for more
00021 ++=   -.     .`     .:       details.
00022  :     =  ...= . :.=-
00023  -.   .:....=;==+<;          You should have received a copy of the GNU
00024   -_. . .   )=.  =           Library General Public License along with
00025     --        :-=`           this library; see the file COPYING.LIB.
00026                              If not, write to the Free Software Foundation,
00027                              Inc., 59 Temple Place - Suite 330,
00028                              Boston, MA 02111-1307, USA.
00029 
00030 */
00031 
00032 #ifndef OVERSATILEVIEWDEMO_H
00033 #define OVERSATILEVIEWDEMO_H
00034 
00035 #include <qvbox.h>
00036 
00037 namespace Opie {
00038 namespace Ui   {
00039 class OVersatileView;
00040 class OVersatileViewItem;
00041 }
00042 }
00043 
00044 class OVersatileViewDemo: public QVBox
00045 {
00046   Q_OBJECT
00047   
00048   public:
00049     OVersatileViewDemo( QWidget* parent=0, const char* name=0, WFlags f=0 );
00050     virtual ~OVersatileViewDemo();
00051 
00052   public slots:
00053     void selectionChanged();
00054     void selectionChanged( Opie::Ui::OVersatileViewItem * );
00055     void currentChanged( Opie::Ui::OVersatileViewItem * );
00056     void clicked( Opie::Ui::OVersatileViewItem * );
00057     void pressed( OPie::Ui::OVersatileViewItem * );
00058 
00059     void doubleClicked( Opie::Ui::OVersatileViewItem *item );
00060     void returnPressed( Opie::Ui::OVersatileViewItem *item );
00061   
00062     void onItem( Opie::Ui::OVersatileViewItem *item );
00063     void onViewport();
00064 
00065     void expanded( Opie::Ui::OVersatileViewItem *item );
00066     void collapsed( Opie::Ui::OVersatileViewItem *item );
00067     
00068     void moved();
00069 
00070     void contextMenuRequested( Opie::Ui::OVersatileViewItem *item, const QPoint&, int col );
00071     
00072   private:
00073     Opie::Ui::OVersatileView* vv;
00074 
00075 };
00076 
00077 #endif

Generated on Sat Nov 5 16:15:59 2005 for OPIE by  doxygen 1.4.2