[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/widget
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2003-06-09 22:10:28
[Download RAW message or body]

CVS commit by staniek: 

temporary replaced KTextEditor::* with KTextEdit for win32 version


  M +18 -5     kexiquerydesignersqleditor.cpp   1.3
  M +5 -0      kexiquerydesignersqleditor.h   1.3


--- koffice/kexi/widget/kexiquerydesignersqleditor.cpp  #1.2:1.3
@@ -29,4 +29,5 @@
 #include <ktexteditor/editinterface.h>
 
+#include <ktextedit.h>//TEMP
 
 #include "kexiquerydesignersqleditor.h"
@@ -34,8 +35,12 @@
 KexiQueryDesignerSQLEditor::KexiQueryDesignerSQLEditor(QWidget *parent, const char \
*name)  : QWidget(parent, name)
+#ifndef Q_WS_WIN //(TEMP)
+        , m_doc( KTextEditor::EditorChooser::createDocument(this, "sqlDoc") )
+        , m_view( m_doc->createView(this, 0L) )
+#else
+        , m_editor( new  KTextEdit( "", QString::null, this, "sqlDoc_editor" ) )
+#endif
 {
-        m_doc = KTextEditor::EditorChooser::createDocument(this, "sqlDoc");
-        m_view = m_doc->createView(this, 0L);
-
+#ifndef Q_WS_WIN //(TEMP)
         KTextEditor::HighlightingInterface *hl = \
KTextEditor::highlightingInterface(m_doc);  for(uint i=0; i < hl->hlModeCount(); i++)
@@ -48,5 +53,5 @@ KexiQueryDesignerSQLEditor::KexiQueryDes
                 i++;
         }
-
+#endif
 //      QPushButton *btnQuery = new QPushButton(i18n("&Query"), this);
 //      btnQuery->setFlat(true);
@@ -58,5 +63,9 @@ KexiQueryDesignerSQLEditor::KexiQueryDes
 //      g->addWidget(btnClear,          0, 1);
 //      g->addMultiCellWidget(m_view,   1, 1, 0, 1);
+#ifndef Q_WS_WIN //(TEMP)
         g->addWidget(m_view,            0, 0);
+#else
+        g->addWidget(m_editor,          0, 0);
+#endif
 }
 
@@ -64,7 +73,11 @@ QString
 KexiQueryDesignerSQLEditor::getText()
 {
+#ifndef Q_WS_WIN //(TEMP)
         KTextEditor::EditInterface *eIface = KTextEditor::editInterface(m_doc);
         kdDebug() << "KexiQueryDesignerSQLEditor::getText(): iface: " << eIface << " \
" << eIface->text() << endl;  return eIface->text();
+#else
+        return m_editor->text();
+#endif
 }
 

--- koffice/kexi/widget/kexiquerydesignersqleditor.h  #1.2:1.3
@@ -22,4 +22,5 @@
 
 #include <qwidget.h>
+class KTextEdit;
 
 namespace KTextEditor
@@ -40,6 +41,10 @@ class KEXIEXTWIDGETS_EXPORT KexiQueryDes
 
         private:
+#ifndef Q_WS_WIN //(TEMP)
                 KTextEditor::Document   *m_doc;
                 KTextEditor::View       *m_view;
+#else
+                KTextEdit *m_editor;
+#endif
 };
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic