//
//     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.


class TDEPopupTitle : TQWidget
{
%TypeHeaderCode
#include <tdepopupmenu.h>
%End


public:
                         TDEPopupTitle (TQWidget* /TransferThis/ = 0, const char* = 0);
                         TDEPopupTitle (KPixmapEffect::GradientType, const TQColor&, const TQColor&, TQWidget* /TransferThis/ = 0, const char* = 0);
                         TDEPopupTitle (const KPixmap&, const TQColor&, const TQColor&, TQWidget* /TransferThis/ = 0, const char* = 0);
    void                 setTitle (const TQString&, const TQPixmap* = 0);
    TQString              title ();
    TQPixmap              icon ();
    TQSize                sizeHint () const;

public slots:

%If ( KDE_3_1_0 -  )
    void                 setText (const TQString&);
    void                 setIcon (const TQPixmap&);
%End


protected:

%If ( KDE_3_2_0 -  )
    void                 calcSize ();
%End

    void                 paintEvent (TQPaintEvent*);

protected:
//igx     virtual void         virtual_hook (int, void*);

};  // class TDEPopupTitle


class TDEPopupMenu : TQPopupMenu
{
%TypeHeaderCode
#include <tdepopupmenu.h>
%End


public:
                         TDEPopupMenu (TQWidget* /TransferThis/ = 0, const char* = 0);
    int                  insertTitle (const TQString&, int = -1, int = -1);
    int                  insertTitle (const TQPixmap&, const TQString&, int = -1, int = -1);
    void                 changeTitle (int, const TQString&);
    void                 changeTitle (int, const TQPixmap&, const TQString&);
    TQString              title (int = -1);
    TQPixmap              titlePixmap (int);

%If ( KDE_3_1_0 -  )
    void                 setKeyboardShortcutsEnabled (bool);
    void                 setKeyboardShortcutsExecute (bool);
%End

                         TDEPopupMenu (const TQString&, TQWidget* /TransferThis/ = 0, const char* = 0);
    void                 setTitle (const TQString&);

%If ( KDE_3_2_0 -  )
    TQPopupMenu*          contextMenu ();
    void                 hideContextMenu ();
    static TDEPopupMenu*   contextMenuFocus ();
    static int           contextMenuFocusItem ();

%If ( KDE_3_4_0 -  )
    virtual void         activateItemAt (int);
    TQt::ButtonState      state () const;
%End

%End


signals:

%If ( KDE_3_2_0 -  )
    void                 aboutToShowContextMenu (TDEPopupMenu*, int, TQPopupMenu*);
%End


protected:

%If ( KDE_3_1_0 -  )
    virtual void         closeEvent (TQCloseEvent*);
    virtual void         keyPressEvent (TQKeyEvent*);

%If ( KDE_3_4_0 -  )
    virtual void         mouseReleaseEvent (TQMouseEvent*);
%End


%If ( KDE_3_2_0 -  )
    virtual void         mousePressEvent (TQMouseEvent*);
    virtual bool         focusNextPrevChild (bool);
    virtual void         contextMenuEvent (TQContextMenuEvent*);
    virtual void         hideEvent (TQHideEvent*);
%End

%End

//igx     virtual void         virtual_hook (int, void*);

protected slots:

%If ( KDE_3_1_0 -  )
    TQString              underlineText (const TQString&, uint);
    void                 resetKeyboardVars (bool = 0);

%If ( KDE_3_2_0 -  )
    void                 itemHighlighted (int);
    void                 showCtxMenu (TQPoint);
    void                 ctxMenuHiding ();
    void                 ctxMenuHideShowingMenu ();
%End

%End


};  // class TDEPopupMenu

