//
//     Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
//     Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
//     may also apply


//                 Generated by preSip
//            module tdeui  version KDE 3.5.3


// This software 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.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this library; see the file COPYING.
// If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


%If ( KDE_3_1_0 -  )

class KPassivePopup : TQFrame
{
%TypeHeaderCode
#include <kpassivepopup.h>
%End


public:

%If ( KDE_3_5_0 -  )

    enum PopupStyle
    {
        Boxed, 
        Balloon, 
        CustomStyle
    };

%End

                         KPassivePopup (TQWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0);
                         KPassivePopup (WId, const char* = 0, WFlags = 0);

%If ( KDE_3_5_0 -  )
                         KPassivePopup (int, TQWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0);
                         KPassivePopup (int, WId /TransferThis/, const char* = 0, WFlags = 0);
%End

    void                 setView (TQWidget*);
    void                 setView (const TQString&, const TQString& = TQString ::null );
    virtual void         setView (const TQString&, const TQString&, const TQPixmap&);
    TQVBox*               standardView (const TQString&, const TQString&, const TQPixmap&, TQWidget* /Transfer/ = 0);
    TQWidget*             view () const;
    int                  timeout () const;
    virtual void         setAutoDelete (bool);
    bool                 autoDelete () const;

%If ( KDE_3_5_0 -  )
    void                 setAnchor (const TQPoint&);
%End

    static KPassivePopup* message (const TQString&, TQWidget* /Transfer/, const char* = 0);
    static KPassivePopup* message (const TQString&, const TQString&, TQWidget* /Transfer/, const char* = 0);
    static KPassivePopup* message (const TQString&, const TQString&, const TQPixmap&, TQWidget* /Transfer/, const char* = 0, int = -1);
    static KPassivePopup* message (const TQString&, const TQString&, const TQPixmap&, WId, const char* = 0, int = -1);

%If ( KDE_3_5_0 -  )
    static KPassivePopup* message (int, const TQString&, TQWidget* /Transfer/, const char* = 0);
    static KPassivePopup* message (int, const TQString&, const TQString&, TQWidget* /Transfer/, const char* = 0);
    static KPassivePopup* message (int, const TQString&, const TQString&, const TQPixmap&, TQWidget* /Transfer/, const char* = 0, int = -1);
    static KPassivePopup* message (int, const TQString&, const TQString&, const TQPixmap&, WId, const char* = 0, int = -1);
%End


public slots:
    void                 setTimeout (int);
    virtual void         show ();

%If ( KDE_3_5_0 -  )
    void                 show (const TQPoint&);
%End


signals:
    void                 clicked ();
    void                 clicked (TQPoint);

protected:
    virtual void         positionSelf ();
    virtual void         hideEvent (TQHideEvent*);
    void                 moveNear (TQRect);
    virtual void         mouseReleaseEvent (TQMouseEvent*);
    TQRect                defaultArea () const;

%If ( KDE_3_5_0 -  )
    void                 updateMask ();
    virtual void         paintEvent (TQPaintEvent*);
%End


};  // class KPassivePopup

%End

