Diffstat (limited to 'noncore/apps/tinykate/libkate') (more/less context) (ignore whitespace changes)
6 files changed, 66 insertions, 66 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katebuffer.cpp b/noncore/apps/tinykate/libkate/document/katebuffer.cpp index 38ba55d..22a4917 100644 --- a/noncore/apps/tinykate/libkate/document/katebuffer.cpp +++ b/noncore/apps/tinykate/libkate/document/katebuffer.cpp | |||
@@ -122,5 +122,5 @@ int | |||
122 | KWBuffer::count() | 122 | KWBuffer::count() |
123 | { | 123 | { |
124 | // qDebug("m_stringList.count %d",m_stringList.count()); | 124 | qDebug("m_stringList.count %d",m_stringList.count()); |
125 | return m_lineCount; | 125 | return m_lineCount; |
126 | //return m_stringList.count(); | 126 | //return m_stringList.count(); |
diff --git a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp index 844f27d..f90a5f8 100644 --- a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp +++ b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp | |||
@@ -72,5 +72,5 @@ void SyntaxDocument::setupModeList(bool force) | |||
72 | mli->mimetype = config->readEntry("mimetype",""); | 72 | mli->mimetype = config->readEntry("mimetype",""); |
73 | mli->extension = config->readEntry("extension",""); | 73 | mli->extension = config->readEntry("extension",""); |
74 | mli->identifier = *it; | 74 | mli->identifier = path+*it; |
75 | myModeList.append(mli); | 75 | myModeList.append(mli); |
76 | } | 76 | } |
@@ -106,4 +106,5 @@ void SyntaxDocument::setupModeList(bool force) | |||
106 | } | 106 | } |
107 | } | 107 | } |
108 | config->write(); | ||
108 | // config->sync(); | 109 | // config->sync(); |
109 | } | 110 | } |
diff --git a/noncore/apps/tinykate/libkate/libkate.pro b/noncore/apps/tinykate/libkate/libkate.pro index 5cb0b14..b282059 100644 --- a/noncore/apps/tinykate/libkate/libkate.pro +++ b/noncore/apps/tinykate/libkate/libkate.pro | |||
@@ -1,6 +1,6 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE= lib |
2 | CONFIG = qt warn_on release | 2 | CONFIG = qt warn_on release |
3 | HEADERS = microkde/kapplication.h \ | 3 | HEADERS = microkde/kapplication.h \ |
4 | kateconfig.h \ | 4 | kateconfig.h \ |
5 | microkde/kdebug.h \ | 5 | microkde/kdebug.h \ |
6 | microkde/kdialog.h \ | 6 | microkde/kdialog.h \ |
@@ -25,23 +25,25 @@ HEADERS = microkde/kapplication.h \ | |||
25 | microkde/klistview.h \ | 25 | microkde/klistview.h \ |
26 | microkde/kglobalsettings.h \ | 26 | microkde/kglobalsettings.h \ |
27 | microkde/kcolorbtn.h \ | 27 | microkde/kcolorbtn.h \ |
28 | qt3back/qregexp3.h \ | 28 | \ |
29 | microkde/ksharedptr.h \ | 29 | \ |
30 | document/katebuffer.h document/katedialogs.h \ | 30 | qt3back/qregexp3.h \ |
31 | document/katetextline.h \ | 31 | microkde/ksharedptr.h \ |
32 | document/katecmd.h \ | 32 | document/katebuffer.h document/katedialogs.h \ |
33 | document/katehighlight.h \ | 33 | document/katetextline.h \ |
34 | document/katecmds.h document/katedocument.h \ | 34 | document/katecmd.h \ |
35 | document/katesyntaxdocument.h \ | 35 | document/katehighlight.h \ |
36 | view/kateundohistory.h \ | 36 | document/katecmds.h document/katedocument.h \ |
37 | view/kateview.h \ | 37 | document/katesyntaxdocument.h \ |
38 | view/kateviewdialog.h \ | 38 | view/kateundohistory.h \ |
39 | interfaces/view.h \ | 39 | view/kateview.h \ |
40 | interfaces/document.h \ | 40 | view/kateviewdialog.h \ |
41 | ktexteditor/ktexteditor.h | 41 | interfaces/view.h \ |
42 | interfaces/document.h \ | ||
43 | ktexteditor/ktexteditor.h | ||
42 | 44 | ||
43 | SOURCES = microkde/kapplication.cpp \ | 45 | SOURCES = microkde/kapplication.cpp \ |
44 | microkde/kdialogbase.cpp \ | 46 | microkde/kdialogbase.cpp \ |
45 | kateconfig.cpp \ | 47 | kateconfig.cpp \ |
46 | microkde/klocale.cpp \ | 48 | microkde/klocale.cpp \ |
47 | microkde/kmessagebox.cpp \ | 49 | microkde/kmessagebox.cpp \ |
@@ -50,4 +52,5 @@ SOURCES = microkde/kapplication.cpp \ | |||
50 | microkde/ktempfile.cpp \ | 52 | microkde/ktempfile.cpp \ |
51 | microkde/kurlrequester.cpp \ | 53 | microkde/kurlrequester.cpp \ |
54 | microkde/kcolordialog.cpp \ | ||
52 | microkde/kfontdialog.cpp \ | 55 | microkde/kfontdialog.cpp \ |
53 | microkde/krun.cpp \ | 56 | microkde/krun.cpp \ |
@@ -55,29 +58,31 @@ SOURCES = microkde/kapplication.cpp \ | |||
55 | microkde/kglobal.cpp \ | 58 | microkde/kglobal.cpp \ |
56 | microkde/kglobalsettings.cpp \ | 59 | microkde/kglobalsettings.cpp \ |
57 | microkde/kcolorbtn.cpp \ | 60 | microkde/kcolorbtn.cpp \ |
58 | qt3back/qregexp3.cpp \ | 61 | \ |
59 | ktexteditor/ktexteditor.cpp \ | 62 | \ |
60 | document/katebuffer.cpp document/katedialogs.cpp \ | 63 | qt3back/qregexp3.cpp \ |
61 | document/katehighlight.cpp \ | 64 | ktexteditor/ktexteditor.cpp \ |
62 | document/katecmd.cpp \ | 65 | document/katebuffer.cpp document/katedialogs.cpp \ |
63 | document/katesyntaxdocument.cpp document/katecmds.cpp \ | 66 | document/katehighlight.cpp \ |
64 | document/katedocument.cpp document/katetextline.cpp \ | 67 | document/katecmd.cpp \ |
65 | view/kateundohistory.cpp \ | 68 | document/katesyntaxdocument.cpp document/katecmds.cpp \ |
66 | view/kateview.cpp \ | 69 | document/katedocument.cpp document/katetextline.cpp \ |
67 | view/kateviewdialog.cpp \ | 70 | view/kateundohistory.cpp \ |
68 | interfaces/interfaces.cpp | 71 | view/kateview.cpp \ |
72 | view/kateviewdialog.cpp \ | ||
73 | interfaces/interfaces.cpp | ||
69 | 74 | ||
70 | INTERFACES = | 75 | INTERFACES= |
71 | INCLUDEPATH += $(OPIEDIR)/include \ | 76 | INCLUDEPATH+= $(OPIEDIR)/include \ |
72 | $(OPIEDIR)/noncore/apps/tinykate/libkate \ | 77 | $(OPIEDIR)/noncore/apps/tinykate/libkate \ |
73 | $(OPIEDIR)/noncore/apps/tinykate/libkate/microkde \ | 78 | $(OPIEDIR)/noncore/apps/tinykate/libkate/microkde \ |
74 | $(OPIEDIR)/noncore/apps/tinykate/libkate/document \ | 79 | $(OPIEDIR)/noncore/apps/tinykate/libkate/document \ |
75 | $(OPIEDIR)/noncore/apps/tinykate/libkate/view \ | 80 | $(OPIEDIR)/noncore/apps/tinykate/libkate/view \ |
76 | $(OPIEDIR)/noncore/apps/tinykate/libkate/interfaces \ | 81 | $(OPIEDIR)/noncore/apps/tinykate/libkate/interfaces \ |
77 | $(OPIEDIR)/noncore/apps/tinykate/libkate/ktexteditor \ | 82 | $(OPIEDIR)/noncore/apps/tinykate/libkate/ktexteditor \ |
78 | $(OPIEDIR)/noncore/apps/tinykate/libkate/qt3back | 83 | $(OPIEDIR)/noncore/apps/tinykate/libkate/qt3back |
79 | DEPENDPATH += $(OPIEDIR)/include | 84 | DEPENDPATH+= $(OPIEDIR)/include |
80 | LIBS += -lqpe -lopie | 85 | LIBS += -lqpe -lopie |
81 | TARGET = tinykate | 86 | TARGET = tinykate |
82 | 87 | ||
83 | INCLUDEPATH += $(OPIEDIR)/include | 88 | INCLUDEPATH += $(OPIEDIR)/include |
diff --git a/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp b/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp index 976f1db..5d21f15 100644 --- a/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp +++ b/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp | |||
@@ -24,9 +24,7 @@ | |||
24 | #include <qapplication.h> | 24 | #include <qapplication.h> |
25 | #include <kglobalsettings.h> | 25 | #include <kglobalsettings.h> |
26 | //#include "kcolordialog.h" | 26 | #include "kcolordialog.h" |
27 | #include "kcolorbtn.h" | 27 | #include "kcolorbtn.h" |
28 | 28 | ||
29 | #include <opie/colordialog.h> | ||
30 | |||
31 | KColorButton::KColorButton( QWidget *parent, const char *name ) | 29 | KColorButton::KColorButton( QWidget *parent, const char *name ) |
32 | : QPushButton( parent, name ), dragFlag(false) | 30 | : QPushButton( parent, name ), dragFlag(false) |
@@ -37,5 +35,5 @@ KColorButton::KColorButton( QWidget *parent, const char *name ) | |||
37 | 35 | ||
38 | KColorButton::KColorButton( const QColor &c, QWidget *parent, | 36 | KColorButton::KColorButton( const QColor &c, QWidget *parent, |
39 | const char *name ) | 37 | const char *name ) |
40 | : QPushButton( parent, name ), col(c), dragFlag(false) | 38 | : QPushButton( parent, name ), col(c), dragFlag(false) |
41 | { | 39 | { |
@@ -76,11 +74,11 @@ void KColorButton::drawButtonLabel( QPainter *painter ) | |||
76 | void KColorButton::chooseColor() | 74 | void KColorButton::chooseColor() |
77 | { | 75 | { |
78 | QColor newCol=OColorDialog::getColor( col); | 76 | if( KColorDialog::getColor( col) == QDialog::Rejected ) |
79 | if( newCol != QDialog::Rejected ) | ||
80 | { | 77 | { |
81 | col=newCol; | 78 | return; |
79 | } | ||
80 | |||
82 | repaint( false ); | 81 | repaint( false ); |
83 | emit changed( col ); | 82 | emit changed( col ); |
84 | } | ||
85 | } | 83 | } |
86 | 84 | ||
diff --git a/noncore/apps/tinykate/libkate/microkde/kcolordialog.h b/noncore/apps/tinykate/libkate/microkde/kcolordialog.h index 1d5c27e..0f831cd 100644 --- a/noncore/apps/tinykate/libkate/microkde/kcolordialog.h +++ b/noncore/apps/tinykate/libkate/microkde/kcolordialog.h | |||
@@ -3,9 +3,7 @@ | |||
3 | 3 | ||
4 | #include <qcolor.h> | 4 | #include <qcolor.h> |
5 | #include <opie/colordialog.h> | ||
6 | 5 | ||
7 | class KColorDialog : OColorDialog | 6 | class KColorDialog |
8 | { | 7 | { |
9 | Q_OBJECT | ||
10 | public: | 8 | public: |
11 | enum { Accepted }; | 9 | enum { Accepted }; |
diff --git a/noncore/apps/tinykate/libkate/view/kateview.cpp b/noncore/apps/tinykate/libkate/view/kateview.cpp index de81d0f..af3b30d 100644 --- a/noncore/apps/tinykate/libkate/view/kateview.cpp +++ b/noncore/apps/tinykate/libkate/view/kateview.cpp | |||
@@ -2197,5 +2197,6 @@ bool KateView::askReplaceEnd() { | |||
2197 | "End of document reached.\n" | 2197 | "End of document reached.\n" |
2198 | "Continue from the beginning?").arg(replaces); | 2198 | "Continue from the beginning?").arg(replaces); |
2199 | query = KMessageBox::questionYesNo(this, str, i18n("Continue"), i18n("Stop")); | 2199 | query = KMessageBox::questionYesNo(this, str, i18n("Replace"), |
2200 | i18n("Continue"), i18n("Stop")); | ||
2200 | } else { | 2201 | } else { |
2201 | // backward search | 2202 | // backward search |
@@ -2203,5 +2204,6 @@ bool KateView::askReplaceEnd() { | |||
2203 | "Beginning of document reached.\n" | 2204 | "Beginning of document reached.\n" |
2204 | "Continue from the end?").arg(replaces); | 2205 | "Continue from the end?").arg(replaces); |
2205 | query = KMessageBox::questionYesNo(this, str, i18n("Continue"), i18n("Stop")); | 2206 | query = KMessageBox::questionYesNo(this, str, i18n("Replace"), |
2207 | i18n("Continue"), i18n("Stop")); | ||
2206 | } | 2208 | } |
2207 | replaces = 0; | 2209 | replaces = 0; |
@@ -2267,5 +2269,4 @@ void KateView::configDialog() | |||
2267 | 2269 | ||
2268 | #warning fixme | 2270 | #warning fixme |
2269 | QScrollView *pScroll; | ||
2270 | 2271 | ||
2271 | #if 1 | 2272 | #if 1 |
@@ -2304,7 +2305,6 @@ void KateView::configDialog() | |||
2304 | page=kd->addPage(i18n("Edit")); | 2305 | page=kd->addPage(i18n("Edit")); |
2305 | (new QVBoxLayout(page))->setAutoAdd(true); | 2306 | (new QVBoxLayout(page))->setAutoAdd(true); |
2306 | pScroll=new QScrollView(page); | 2307 | |
2307 | EditConfigTab *editConfig = new EditConfigTab(page, this); | 2308 | EditConfigTab *editConfig = new EditConfigTab(page, this); |
2308 | pScroll->addChild(editConfig); | ||
2309 | 2309 | ||
2310 | 2310 | ||
@@ -2326,9 +2326,7 @@ void KateView::configDialog() | |||
2326 | page=kd->addPage(i18n("Highlighting")); | 2326 | page=kd->addPage(i18n("Highlighting")); |
2327 | (new QVBoxLayout(page))->setAutoAdd(true); | 2327 | (new QVBoxLayout(page))->setAutoAdd(true); |
2328 | pScroll=new QScrollView(page); | ||
2329 | hlPage = new HighlightDialogPage(hlManager, &defaultStyleList, &hlDataList, 0, pScroll->viewport()); | ||
2330 | pScroll->addChild(hlPage); | ||
2331 | 2328 | ||
2332 | kd->showMaximized(); | 2329 | hlPage = new HighlightDialogPage(hlManager, &defaultStyleList, &hlDataList, 0, page); |
2330 | kd->showMaximized(); | ||
2333 | if (kd->exec()) { | 2331 | if (kd->exec()) { |
2334 | // color options | 2332 | // color options |