Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

hk_kdememo.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2004 Horst Knorr <hk_classes@knoda.org>  
00003 // This file is part of the hk_kdeclasses library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file LGPL included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 // ****************************************************************************
00011 
00012 #ifndef HK_KDEMEMO_H
00013 #define HK_KDEMEMO_H
00014 #include <hk_dsmemo.h>
00015 #include <keditcl.h>
00016 #include <qtextedit.h>
00017 class hk_kdefinddialog;
00027 class hk_kdememo: public QTextEdit,public hk_dsmemo
00028 
00029 {
00030     Q_OBJECT
00031         public:
00032         hk_kdememo(QWidget* wid,hk_form* f=NULL);
00033         ~hk_kdememo();
00034         virtual void set_value(const hk_string&);
00035         virtual hk_string value(void);
00036 
00037     protected:
00038         virtual bool    widget_specific_coordinates(uint px,uint py,uint pwidth,uint pheight);
00039         virtual bool    widget_specific_row_change(void);
00040         virtual void    widget_specific_insert_mode(void);
00041         virtual void    widget_specific_row_deleted(void);
00042         virtual void    widget_specific_row_added(void);
00043         virtual void    widget_specific_alignment(void);
00044         virtual void    presentationmode_changed(void);
00045         bool    datasource_disable(void);
00046         bool    datasource_enable(void);
00047         void    datasource_delete(void);
00048         virtual void    widget_specific_font_changed(void);
00049         virtual void resizeEvent (QResizeEvent *);
00050         virtual void  moveEvent ( QMoveEvent * ) ;
00051         virtual void widget_specific_backgroundcolour_changed(const hk_colour&);
00052         virtual void widget_specific_foregroundcolour_changed(const hk_colour&);
00053         void   keyPressEvent ( QKeyEvent * e );
00054         virtual QPopupMenu* createPopupMenu(const QPoint&);
00055 
00056     protected slots:
00057         void     slot_data_changed(void);
00058         void    before_row_change(void);
00059         void    before_store_changed_data(void);
00060         void    slot_mouse_clicked(void);
00061         void    slot_mouse_doubleclicked(void);
00062         void    NULLselected( int r );
00063     public slots:
00064         void    find_clicked(int);
00065         void    find_next(void);
00066         void    findargument_changed(void);
00067 
00068     private:
00069         void    reposition(void);
00070         bool p_widget_specific_row_change;
00071         void    widget_specific_enable_disable(void);
00072         bool    has_changed;
00073         int     NULLpopupid;
00074         int     findpopupid;
00075         hk_kdefinddialog* p_finddialog;
00076         bool          p_findfirstview;
00077 
00078 };
00079 #endif

Generated on Tue Mar 22 23:28:15 2005 for Databasehandlingdialogclasses by  doxygen 1.4.1