[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdewebdev/quanta/utility
From: Andras Mantia <amantia () kde ! org>
Date: 2004-07-13 14:49:21
Message-ID: 20040713144921.927E516AF9 () office ! kde ! org
[Download RAW message or body]
CVS commit by amantia:
- init a variable;
- add possibility to retrieve the action's type;
- use input/output to/from file only if the input/output file was specified
M +8 -2 tagaction.cpp 1.100
M +1 -0 tagaction.h 1.26
--- kdewebdev/quanta/utility/tagaction.cpp #1.99:1.100
@@ -85,4 +85,5 @@ TagAction::TagAction( QDomElement *eleme
}
setIcon( s );
+ m_file = 0L;
loopStarted = false;
m_appMessages = quantaApp->messageOutput();
@@ -94,4 +95,9 @@ TagAction::~TagAction()
}
+QString TagAction::type()
+{
+ return tag.attribute("type","");
+}
+
bool TagAction::insertTag(bool inputFromFile, bool outputToFile)
{
@@ -391,5 +397,5 @@ void TagAction::slotGetScriptOutput( KPr
m_appMessages->showMessage( text, true );
} else
- if ( scriptOutputDest == "file" )
+ if ( scriptOutputDest == "file" && m_file)
{
if (!m_file->isOpen())
@@ -493,5 +499,5 @@ void TagAction::slotProcessExited(KProce
void TagAction::execute()
{
- if (insertTag(true, true))
+ if (insertTag(!m_inputFileName.isEmpty(), m_file))
{
//To avoid lock-ups, start a timer.
--- kdewebdev/quanta/utility/tagaction.h #1.25:1.26
@@ -59,4 +59,5 @@ public:
void setInputFileName(const QString& fileName);
void execute();
+ QString type();
/**
* Remove accelerator from tag action name *
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic