r11106 - in lmledit/trunk: . ui
[email protected] Wed, 11 Feb 2009 22:00:27 +0100 (CET)
Newsgroups
gmane.comp.security.ids.prelude.cvs
Message-ID
<[email protected] >
Author: pollux
Date: 2009-02-11 22:00:26 +0100 (Wed, 11 Feb 2009)
New Revision: 11106
Modified:
lmledit/trunk/rule-editor.cpp
lmledit/trunk/rule-editor.h
lmledit/trunk/ui/rule-editor.ui
Log:
Convert rule editor to QTextBrowser, to get anchorClicked signal
Modified: lmledit/trunk/rule-editor.cpp
===================================================================
--- lmledit/trunk/rule-editor.cpp 2009-02-08 18:42:51 UTC (rev 11105)
+++ lmledit/trunk/rule-editor.cpp 2009-02-11 21:00:26 UTC (rev 11106)
@@ -32,6 +32,7 @@
{
connect(ui->pb_new_prop, SIGNAL(pressed()), this, SLOT(addProperty()));
connect(ui->pb_del_prop, SIGNAL(pressed()), this, SLOT(deleteProperty()));
+ connect(ui->editor, SIGNAL(anchorClicked(const QUrl &)), this, SLOT(textAnchorClicked(const QUrl &)));
}
void RuleEditor::createPropertiesEditor()
@@ -271,3 +272,8 @@
return rule;
}
+
+void RuleEditor::textAnchorClicked(const QUrl &url)
+{
+}
+
Modified: lmledit/trunk/rule-editor.h
===================================================================
--- lmledit/trunk/rule-editor.h 2009-02-08 18:42:51 UTC (rev 11105)
+++ lmledit/trunk/rule-editor.h 2009-02-11 21:00:26 UTC (rev 11106)
@@ -5,6 +5,7 @@
class RuleSetHighlighter;
#include <QDialog>
+#include <QUrl>
namespace Ui {
class RuleEditor;
@@ -43,6 +44,8 @@
void addProperty();
void deleteProperty();
+ void textAnchorClicked(const QUrl &url);
+
private:
void createPropertiesEditor();
void createValidators();
Modified: lmledit/trunk/ui/rule-editor.ui
===================================================================
--- lmledit/trunk/ui/rule-editor.ui 2009-02-08 18:42:51 UTC (rev 11105)
+++ lmledit/trunk/ui/rule-editor.ui 2009-02-11 21:00:26 UTC (rev 11106)
@@ -13,14 +13,18 @@
<string>Rule Editor</string>
</property>
<layout class="QVBoxLayout" >
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<property name="margin" >
<number>9</number>
</property>
- <property name="spacing" >
- <number>6</number>
- </property>
<item>
- <widget class="QTextEdit" name="editor" />
+ <widget class="QTextBrowser" name="editor" >
+ <property name="readOnly" >
+ <bool>false</bool>
+ </property>
+ </widget>
</item>
<item>
<widget class="QLineEdit" name="regexEditor" />
@@ -35,23 +39,23 @@
<string>IDMEF</string>
</attribute>
<layout class="QVBoxLayout" >
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<property name="margin" >
<number>9</number>
</property>
- <property name="spacing" >
- <number>6</number>
- </property>
<item>
<widget class="QTableWidget" name="optionsTable" />
</item>
<item>
<layout class="QHBoxLayout" >
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<property name="margin" >
<number>0</number>
</property>
- <property name="spacing" >
- <number>6</number>
- </property>
<item>
<widget class="QPushButton" name="pb_new_prop" >
<property name="text" >
@@ -75,12 +79,12 @@
<string>Options</string>
</attribute>
<layout class="QVBoxLayout" >
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<property name="margin" >
<number>9</number>
</property>
- <property name="spacing" >
- <number>6</number>
- </property>
<item>
<widget class="QGroupBox" name="optionsGroup" >
<property name="title" >
@@ -186,7 +190,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
- <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog