aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor/raweditor.cpp
diff options
context:
space:
mode:
authorGravatar Elvio Basello2008-04-05 17:13:08 +0000
committerGravatar Elvio Basello2008-04-05 17:13:08 +0000
commitff28d125380b2dbceb410f6f15785b78808fdad9 (patch)
tree97457cd6c3c6c55744d72933bd095ddfcdf27b7e /src/modules/raweditor/raweditor.cpp
parentMore correct kde4 support handling; Changed SIZEOFs' names to be compliant wi... (diff)
downloadKVIrc-ff28d125380b2dbceb410f6f15785b78808fdad9.tar.gz
KVIrc-ff28d125380b2dbceb410f6f15785b78808fdad9.tar.bz2
KVIrc-ff28d125380b2dbceb410f6f15785b78808fdad9.zip
code clean
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1398 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/raweditor/raweditor.cpp')
-rw-r--r--src/modules/raweditor/raweditor.cpp61
1 files changed, 25 insertions, 36 deletions
diff --git a/src/modules/raweditor/raweditor.cpp b/src/modules/raweditor/raweditor.cpp
index 6601a7004..2a4f5d649 100644
--- a/src/modules/raweditor/raweditor.cpp
+++ b/src/modules/raweditor/raweditor.cpp
@@ -35,18 +35,17 @@
#include "kvi_cmdformatter.h"
#include "kvi_kvs_eventmanager.h"
#include "kvi_kvs_eventhandler.h"
-
-#include <qmessagebox.h>
-#include <qsplitter.h>
-#include <qlayout.h>
#include "kvi_tal_vbox.h"
#include "kvi_tal_popupmenu.h"
-#include <qtooltip.h>
-#include <qinputdialog.h>
-#include <qpushbutton.h>
-extern KviRawEditorWindow * g_pRawEditorWindow;
+#include <QMessageBox>
+#include <QSplitter>
+#include <QLayout>
+#include <QToolTip>
+#include <QInputDialog>
+#include <QPushButton>
+extern KviRawEditorWindow * g_pRawEditorWindow;
KviRawListViewItem::KviRawListViewItem(KviTalListView *par,int idx)
@@ -69,17 +68,12 @@ const QPixmap * KviRawHandlerListViewItem::pixmap(int col) const
}
-
KviRawEditor::KviRawEditor(QWidget * par)
: QWidget(par,"raw_event_editor")
{
QGridLayout * l = new QGridLayout(this,1,1,2,2);
-#ifdef COMPILE_USE_QT4
QSplitter * spl = new QSplitter(Qt::Horizontal,this,"raweditorv");
spl->setOpaqueResize(false);
-#else
- QSplitter * spl = new QSplitter(QSplitter::Horizontal,this);
-#endif
l->addWidget(spl,0,0);
KviTalVBox * boxi = new KviTalVBox(spl);
@@ -443,8 +437,6 @@ void KviRawEditor::exportAllEvents()
}
-
-
KviRawEditorWindow::KviRawEditorWindow(KviFrame * lpFrm)
: KviWindow(KVI_WINDOW_TYPE_SCRIPTEDITOR,lpFrm,"raweditor",0)
{
@@ -494,7 +486,6 @@ void KviRawEditorWindow::cancelClicked()
close();
}
-
QPixmap * KviRawEditorWindow::myIconPtr()
{
return g_pIconManager->getSmallIcon(KVI_SMALLICON_RAWEVENT);
@@ -529,35 +520,33 @@ void KviRawEditorWindow::fillCaptionBuffers()
}
-
void KviRawEditorWindow::getConfigGroupName(KviStr &szName)
{
szName = "raweditor";
}
-
void KviRawEditorWindow::saveProperties(KviConfig *cfg)
{
-/*
-#ifdef COMPILE_SCRIPTTOOLBAR
- cfg->writeEntry("Sizes",m_pEditor->sizes());
- cfg->writeEntry("LastRaw",m_pEditor->lastEditedRaw().ptr());
- //debug("LAST EDITED=%s",m_pEditor->lastEditedRaw().ptr());
-#endif // COMPILE_SCRIPTTOOLBAR
-*/
+ /*
+ #ifdef COMPILE_SCRIPTTOOLBAR
+ cfg->writeEntry("Sizes",m_pEditor->sizes());
+ cfg->writeEntry("LastRaw",m_pEditor->lastEditedRaw().ptr());
+ //debug("LAST EDITED=%s",m_pEditor->lastEditedRaw().ptr());
+ #endif // COMPILE_SCRIPTTOOLBAR
+ */
}
void KviRawEditorWindow::loadProperties(KviConfig *cfg)
{
-/*
-#ifdef COMPILE_SCRIPTTOOLBAR
- QValueList<int> def;
- def.append(20);
- def.append(80);
- m_pEditor->setSizes(cfg->readIntListEntry("Sizes",def));
- KviStr tmp = cfg->readEntry("LastRaw","");
- m_pEditor->editRaw(tmp);
- //debug("LAST EDITED WAS %s",tmp.ptr());
-#endif // COMPILE_SCRIPTTOOLBAR
-*/
+ /*
+ #ifdef COMPILE_SCRIPTTOOLBAR
+ QValueList<int> def;
+ def.append(20);
+ def.append(80);
+ m_pEditor->setSizes(cfg->readIntListEntry("Sizes",def));
+ KviStr tmp = cfg->readEntry("LastRaw","");
+ m_pEditor->editRaw(tmp);
+ //debug("LAST EDITED WAS %s",tmp.ptr());
+ #endif // COMPILE_SCRIPTTOOLBAR
+ */
}