Back to index

scribus-ng  1.3.4.dfsg+svn20071115
dynamictip.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008                           dynamictip.h  -  description
00009                              -------------------
00010     begin                : Wed Aug 31 2005
00011     copyright            : (C) 2005 by Franz Schmid
00012     email                : Franz.Schmid@altmuehlnet.de
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #ifndef DYNAMICTIP_H
00025 #define DYNAMICTIP_H
00026 
00027 #include <qtooltip.h>
00028 #include <qlistbox.h>
00029 #include <qtable.h>
00030 #include <qstringlist.h>
00031 #include <qlistview.h>
00032 #include "scribusapi.h"
00033 #include "scribusstructs.h"
00034 
00035 class SCRIBUS_API DynamicTip : public QToolTip
00036 {
00037 public:
00038        enum TipType
00039        {
00040               ColorListBox,
00041               Table,
00042               TableHeader,
00043               TreeView
00044        };
00045 
00046        DynamicTip( QListBox* parent, ColorList* pale );
00047        DynamicTip( QTable* parent );
00048        DynamicTip( QHeader *parent );
00049        DynamicTip( QListView *parent );
00050        virtual ~DynamicTip() {};
00051        void addHeaderTip(QString tip);
00052        void clearHeaderTips();
00053 protected:
00054        void maybeTip( const QPoint & );
00055        ColorList* colorList;
00056        QListBox* listB;
00057        QTable* table;
00058        QHeader *header;
00059        QStringList headerTips;
00060        QListView *listV;
00061        TipType kind;
00062 };
00063 
00064 #endif