//
//     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 KEdGotoLine : KDialogBase
{
%TypeHeaderCode
#include <keditcl.h>
%End


public:
                         KEdGotoLine (TQWidget* /TransferThis/ = 0, const char* = 0, bool = 1);
    int                  getLineNumber ();

public slots:
    void                 selected (int);

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

};  // class KEdGotoLine


class KEdFind : KDialogBase
{
%TypeHeaderCode
#include <keditcl.h>
%End


public:
                         KEdFind (TQWidget* /TransferThis/ = 0, const char* = 0, bool = 1);
    TQString              getText () const;
    void                 setText (TQString);
    void                 setCaseSensitive (bool);
    bool                 case_sensitive () const;
    void                 setDirection (bool);
    bool                 get_direction () const;
    KHistoryCombo*       searchCombo () const;

protected slots:
    void                 slotCancel ();
    void                 slotUser1 ();
    void                 textSearchChanged (const TQString&);

protected:

signals:
    void                 search ();
    void                 done ();

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

private:
    virtual void         done (int);
//end

};  // class KEdFind


class KEdReplace : KDialogBase
{
%TypeHeaderCode
#include <keditcl.h>
%End


public:
                         KEdReplace (TQWidget* /TransferThis/ = 0, const char* = 0, bool = 1);
    TQString              getText ();
    TQString              getReplaceText ();
    void                 setText (TQString);
    KHistoryCombo*       searchCombo () const;
    KHistoryCombo*       replaceCombo () const;
    bool                 case_sensitive ();
    bool                 get_direction ();

protected slots:
    void                 slotCancel ();
    void                 slotClose ();
    void                 slotUser1 ();
    void                 slotUser2 ();
    void                 slotUser3 ();
    void                 textSearchChanged (const TQString&);

signals:
    void                 replace ();
    void                 find ();
    void                 replaceAll ();
    void                 done ();

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

private:
    virtual void         done (int);
//end

};  // class KEdReplace


class KEdit : TQMultiLineEdit
{
%TypeHeaderCode
#include <keditcl.h>
%End


public:
                         KEdit (TQWidget* /TransferThis/ = 0, const char* = 0);

    enum 
    {
        NONE, 
        FORWARD, 
        BACKWARD
    };

    void                 insertText (TQTextStream*);

%If ( KDE_3_1_0 -  )
    void                 saveText (TQTextStream*, bool);
%End

    void                 saveText (TQTextStream*);
    void                 selectFont ();
    void                 search ();
    bool                 repeatSearch ();
    void                 replace ();
    void                 doGotoLine ();
    void                 cleanWhiteSpace ();
    void                 installRBPopup (TQPopupMenu*);
    int                  currentLine ();
    int                  currentColumn ();
    void                 spellcheck_start ();
    void                 spellcheck_stop ();
    void                 setOverwriteEnabled (bool);

%If ( KDE_3_2_0 -  )
    TQString              selectWordUnderCursor ();

%If ( KDE_3_2_3 -  )
    TQPopupMenu*          createPopupMenu (const TQPoint&);

%If ( KDE_3_3_0 -  )
    void                 setAutoUpdate (bool);
%End

%End

%End


signals:
    void                 gotUrlDrop (TQDropEvent*);
    void                 CursorPositionChanged ();
    void                 toggle_overwrite_signal ();

public slots:

%If ( KDE_3_2_0 -  )
    void                 corrected (const TQString&, const TQString&, uint);
    void                 misspelling (const TQString&, const TQStringList&, uint);
%End


protected:
    void                 computePosition ();
    int                  doSearch (TQString, bool, bool, bool, int, int);
    int                  doReplace (TQString, bool, bool, bool, int, int, bool);
    void                 posToRowCol (uint, uint&, uint&);
    virtual void         create (WId = 0, bool = 1, bool = 1);

%If ( KDE_3_3_0 -  )
    virtual void         ensureCursorVisible ();
    virtual void         setCursor (const TQCursor&);
    virtual void         viewportPaintEvent (TQPaintEvent*);
%End


protected:
    void                 keyPressEvent (TQKeyEvent*);
    void                 dragMoveEvent (TQDragMoveEvent*);
    void                 dragEnterEvent (TQDragEnterEvent*);
    void                 dropEvent (TQDropEvent*);

%If ( KDE_3_1_3 -  )
    void                 contentsDragMoveEvent (TQDragMoveEvent*);
    void                 contentsDragEnterEvent (TQDragEnterEvent*);
    void                 contentsDropEvent (TQDropEvent*);
%End


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

};  // class KEdit