Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

multiline_ex.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** $Id: multiline_ex.h,v 1.1 2004/04/07 13:07:42 llornkcor Exp $
00003 **
00004 ** Definition of MultiLine_Ex widget class
00005 ** Copyright (C) 1992-1999 Troll Tech AS.  All rights reserved.
00006 **
00007 ** See the file LICENSE included in the distribution for the usage
00008 ** and distribution terms, or http://www.troll.no/free-license.html.
00009 **
00010     copyright            : (C) 2000 -2004 by llornkcor
00011     email                : ljp@llornkcor.com
00012 *****************************************************************************/
00013 
00014 #ifndef MULTILINE_EX_H
00015 #define MULTILINE_EX_H
00016 
00017 #ifndef QT_H
00018 #include <qlist.h>
00019 #include <qstring.h>
00020 #include <qtableview.h>
00021 //#include <qtable.h>
00022 
00023 #include <qmultilineedit.h>
00024 #endif // QT_H
00025 
00026 struct MultiLine_ExData;
00027 //class MultiLine_ExData;
00028 
00029 class/* Q_EXPORT*/ MultiLine_Ex : public QMultiLineEdit
00030 {
00031     Q_OBJECT
00032 public:
00033     MultiLine_Ex( QWidget *parent=0, const char *name=0 );//:
00034 //  QMultiLineEdit(QWidget *parent=0, QString& name=0 );
00035  //  ~MultiLine_Ex();
00036 
00037 //    const char *textLine( int line ) const;
00038 //    QString text() const;
00039 //int row;
00040 //    int numLines() const;
00041 //
00042 //    bool  isReadOnly() const;
00043 //    bool  isOverwriteMode() const;
00044 //
00045 //    void  setFont( const QFont &font );
00046 //    void insertLine( const char *s, int line = -1 );
00047 //    void insertAt( const char *s, int line, int col );
00048 //    void removeLine( int line );
00049 //
00050 //    void  cursorPosition( int *line, int *col ) const;
00051 //    void  setCursorPosition( int line, int col, bool mark = FALSE );
00052 //    void  getCursorPosition( int *line, int *col );
00053 //    bool  atBeginning() const;
00054 //    bool  atEnd() const;
00055 //
00056 //    bool  autoUpdate()    const;
00057 //    void  setAutoUpdate( bool );
00058 //
00059 //    void  setFixedVisibleLines( int lines );
00060 public:
00061 int row;
00062 //setPaper( QBrush& pap);
00063     bool hasSelectedText();
00064     void pageUp( bool mark=FALSE );
00065     void pageDown( bool mark=FALSE );
00066     void cursorLeft( bool mark=FALSE, bool wrap = TRUE );
00067     void cursorRight( bool mark=FALSE, bool wrap = TRUE );
00068     void cursorUp( bool mark=FALSE );
00069     void cursorDown( bool mark=FALSE );
00070     int lastRow();
00071     int topRow();
00072     int editSize( );
00073     int pageSize ;
00074     int maxLineWidth() const;
00075     void ScrollUp( int lines);
00076     void ScrollDown( int lines);
00077     int Rows();
00078     int Top();
00079     int lineHeight( int row );
00080     int PageSize();
00081 public slots:
00082 //    void       clear();
00083 //    void       setText( const char * );
00084 //    void       append( const char * );
00085 //    void       deselect();
00086 //    void       selectAll();
00087 //    void       setReadOnly( bool );
00088 //    void       setOverwriteMode( bool );
00089 //    void       paste();
00090 //    void       copyText();
00091 //    void       cut();
00092 signals:
00093 //    void  textChanged();
00094 //    void  returnPressed();
00095 
00096 protected:
00097 protected:
00098 private slots:
00099 private:
00100 
00101 private:    // Disabled copy constructor and operator=
00102 #if defined(Q_DISABLE_COPY)
00103     MultiLine_Ex( const MultiLine_Ex & );
00104     MultiLine_Ex &operator=( const MultiLine_Ex & );
00105 #endif
00106 };
00107 #endif
00108 

Generated on Sat Nov 5 16:16:52 2005 for OPIE by  doxygen 1.4.2