summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/multiline_ex.h
authorllornkcor <llornkcor>2004-04-07 13:07:42 (UTC)
committer llornkcor <llornkcor>2004-04-07 13:07:42 (UTC)
commitfc42c7317c956e5bc6e74bfbb1ec185d2faa79f4 (patch) (unidiff)
tree703e89c7178f764aab25028d4525f74340b28dcb /noncore/apps/opie-gutenbrowser/multiline_ex.h
parent9e1ecade17a77c3d50aecc4c92091d852e99e8d9 (diff)
downloadopie-fc42c7317c956e5bc6e74bfbb1ec185d2faa79f4.zip
opie-fc42c7317c956e5bc6e74bfbb1ec185d2faa79f4.tar.gz
opie-fc42c7317c956e5bc6e74bfbb1ec185d2faa79f4.tar.bz2
add gutenbrowser
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/multiline_ex.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/multiline_ex.h108
1 files changed, 108 insertions, 0 deletions
diff --git a/noncore/apps/opie-gutenbrowser/multiline_ex.h b/noncore/apps/opie-gutenbrowser/multiline_ex.h
new file mode 100644
index 0000000..5ef9c40
--- a/dev/null
+++ b/noncore/apps/opie-gutenbrowser/multiline_ex.h
@@ -0,0 +1,108 @@
1/**********************************************************************
2** $Id$
3**
4** Definition of MultiLine_Ex widget class
5** Copyright (C) 1992-1999 Troll Tech AS. All rights reserved.
6**
7** See the file LICENSE included in the distribution for the usage
8** and distribution terms, or http://www.troll.no/free-license.html.
9**
10 copyright : (C) 2000 -2004 by llornkcor
11 email : ljp@llornkcor.com
12*****************************************************************************/
13
14#ifndef MULTILINE_EX_H
15#define MULTILINE_EX_H
16
17#ifndef QT_H
18#include <qlist.h>
19#include <qstring.h>
20#include <qtableview.h>
21//#include <qtable.h>
22
23#include <qmultilineedit.h>
24#endif // QT_H
25
26struct MultiLine_ExData;
27//class MultiLine_ExData;
28
29class/* Q_EXPORT*/ MultiLine_Ex : public QMultiLineEdit
30{
31 Q_OBJECT
32public:
33 MultiLine_Ex( QWidget *parent=0, const char *name=0 );//:
34// QMultiLineEdit(QWidget *parent=0, QString& name=0 );
35 // ~MultiLine_Ex();
36
37// const char *textLine( int line ) const;
38// QString text() const;
39//int row;
40// int numLines() const;
41//
42// bool isReadOnly() const;
43// bool isOverwriteMode() const;
44//
45// void setFont( const QFont &font );
46// void insertLine( const char *s, int line = -1 );
47// void insertAt( const char *s, int line, int col );
48// void removeLine( int line );
49//
50// void cursorPosition( int *line, int *col ) const;
51// void setCursorPosition( int line, int col, bool mark = FALSE );
52// void getCursorPosition( int *line, int *col );
53// bool atBeginning() const;
54// bool atEnd() const;
55//
56// bool autoUpdate() const;
57// void setAutoUpdate( bool );
58//
59// void setFixedVisibleLines( int lines );
60public:
61int row;
62//setPaper( QBrush& pap);
63 bool hasSelectedText();
64 void pageUp( bool mark=FALSE );
65 void pageDown( bool mark=FALSE );
66 void cursorLeft( bool mark=FALSE, bool wrap = TRUE );
67 void cursorRight( bool mark=FALSE, bool wrap = TRUE );
68 void cursorUp( bool mark=FALSE );
69 void cursorDown( bool mark=FALSE );
70 int lastRow();
71 int topRow();
72 int editSize( );
73 int pageSize ;
74 int maxLineWidth() const;
75 void ScrollUp( int lines);
76 void ScrollDown( int lines);
77 int Rows();
78 int Top();
79 int lineHeight( int row );
80 int PageSize();
81public slots:
82// void clear();
83// void setText( const char * );
84// void append( const char * );
85// void deselect();
86// void selectAll();
87// void setReadOnly( bool );
88// void setOverwriteMode( bool );
89// void paste();
90// void copyText();
91// void cut();
92signals:
93// void textChanged();
94// void returnPressed();
95
96protected:
97protected:
98private slots:
99private:
100
101private: // Disabled copy constructor and operator=
102#if defined(Q_DISABLE_COPY)
103 MultiLine_Ex( const MultiLine_Ex & );
104 MultiLine_Ex &operator=( const MultiLine_Ex & );
105#endif
106};
107#endif
108