Subversion Repositories Scribus

Rev

Rev 3436 | Rev 4430 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3137 fschmid 1
/***************************************************************************
2
                          dynamictip.h  -  description
3
                             -------------------
4
    begin                : Wed Aug 31 2005
5
    copyright            : (C) 2005 by Franz Schmid
6
    email                : Franz.Schmid@altmuehlnet.de
7
 ***************************************************************************/
8
 
9
/***************************************************************************
10
 *                                                                         *
11
 *   This program is free software; you can redistribute it and/or modify  *
12
 *   it under the terms of the GNU General Public License as published by  *
13
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 *   (at your option) any later version.                                   *
15
 *                                                                         *
16
 ***************************************************************************/
17
 
18
#ifndef DYNAMICTIP_H
19
#define DYNAMICTIP_H
20
 
21
#include <qtooltip.h>
22
#include <qlistbox.h>
3436 fschmid 23
#include <qtable.h>
3137 fschmid 24
#include "scribusapi.h"
25
#include "scribusstructs.h"
26
 
27
class SCRIBUS_API DynamicTip : public QToolTip
28
{
29
public:
3444 cbradney 30
        enum TipType {
31
                ColorListBox,
32
                Table
33
        };
34
 
3137 fschmid 35
        DynamicTip( QListBox* parent, ColorList* pale );
3436 fschmid 36
        DynamicTip( QTable* parent );
3444 cbradney 37
protected:
38
        void maybeTip( const QPoint & );
3137 fschmid 39
        ColorList* colorList;
40
        QListBox* listB;
3436 fschmid 41
        QTable* table;
3444 cbradney 42
        TipType kind;
3137 fschmid 43
};
44
 
45
#endif