Kate Perl Plug In  1.7
 All Classes Functions Pages
PluginKatePERLCheckView Class Reference
Inheritance diagram for PluginKatePERLCheckView:

Public Slots

void readDebugOutput (QString line)
 read the debug output from kProcess.
 
void debug (bool)
 start or stop the debugger More...
 
void singleStep ()
 Debug ( s ) single step.
 
void cancel ()
 abort debugging.
 
void stepOver ()
 Debug ( n ) StepOver.
 
void returnFromSub ()
 Debug ( r ) return from sub.
 
void continueUntilPosition ()
 Debug ( c ) continue until position.
 
void deleteAllBreakpoints ()
 Debug ( B ) delete all Breakpoints.
 
void expr (QString expr)
 write expr to Debugger process. More...
 
bool slotValidate ()
 validate [perl -c] current Document.
 
bool slotCritic ()
 validate [perlcritic ] current Document.
 
bool apacheError ()
 validate [Apache error Log] current Document.
 
void slotClicked (Q3ListViewItem *item)
 open current "critic" or "error" file, line within text the Editor.
 
void readOutput ()
 open with "prefix". Used to open an file outside the given Document Root.
 
void contextMenu (Q3ListViewItem *, const QPoint &, int col)
 creates the context Menu for Output listview
 
void addBreakPoint ()
 add or remove (like toggle) a breakpoint at curent Line.
 
void addBreakPoint (uint line, KUrl url=KUrl(""))
 add breakpoint. More...
 
void removeBreakPoint (uint line, KUrl url=KUrl(""))
 remove breakpoint. More...
 
void readBreakPoints ()
 read breakpoints from the Kprocess
 
void markChanged (KTextEditor::Document *, KTextEditor::Mark, KTextEditor::MarkInterface::MarkChangeAction)
 iconBorder debug sympol state changed This function is called whenever a breakpoint is set or unset. More...
 
void marksChanged ()
 don't show mark Bookmark and Breakpoint at the same line. removes Bookmark Icon
 
void help ()
 open kdehelpcenter run follwing line to reindex the khelpcenter index. /usr/lib/kde4/libexec/khc_docbookdig.pl –indexdir=/usr/share/doc/kde/HTML/ –docpath=khelpcenter:kde_application_manuals –identifier=kde_application_manual –lang=en
 
void openSub ()
 openSub right Click Menu in Editor Context Menu.
 
void findSubs ()
 findSubs called by m_openProc (readyReadStandardOutput), add the openSub Menu to the Editor Context Menu. More...
 
void gotoSub ()
 gotoSub Called by a QAction to open sub. More...
 
void mousePositionChanged (KTextEditor::View *, const KTextEditor::Cursor &)
 show tooltip for Variables. More...
 
void cursorPositionChanged (KTextEditor::View *view, const KTextEditor::Cursor &newPosition)
 close the ToolTip onclick if isVisible
 
void open ()
 open with "prefix". Used to open an file outside the given Document Root.
 
bool insertItem (QRegExp, QString)
 insert a Listview Item in the "Error Log window " More...
 
void trunlog ()
 truncate the Apache error Log.
 
void start ()
 apache2ctl start
 
void stop ()
 apache2ctl stop
 
void restart ()
 apache2ctl restart
 
void status ()
 apache2ctl status
 
void openPdf ()
 open perl best practices pdf.
 
void debugRestart ()
 restart Debugger.
 
void enableDebuger (bool)
 enable or disable KActions while debugging. More...
 
void saveSettings (QString, QString, QString, QString, QString, uint, QString, QString, QString)
 save config to disk.
 
void viewCreated (KTextEditor::View *)
 slot which enables the Iconborder.
 
void viewChanged ()
 slot which enables the Iconborder.
 
void startPERLDB (bool)
 debug Apache you need to install Apache::DB from cpan to debug mod_perl. And add the following lines to your Apache config. <IfDefine perldb>=""> <Perl> use APR::Pool (); use Apache::DB (); Apache::DB->init; </Perl> #location which should be debugged /cgi-bin/ <Location> PerlFixupHandler Apache::DB </Location> </IfDefine> \şee https://perl.apache.org/docs/1.0/guide/debug.html
 
void startX (bool)
 apache2ctl -X
 
void stopPERLDB ()
 stop apache2ctl -X
 
void stopX ()
 stop apache2ctl -X
 

Public Member Functions

 PluginKatePERLCheckView (Kate::MainWindow *mainwin, SettingsDialog *sdialog)
 Perl syntax check, perlcritic and perldebug pluginfor kate.
 
virtual ~PluginKatePERLCheckView ()
 Destruktor remove the plugin from guiFactory.
 

Public Attributes

Kate::MainWindow * win
 
QWidget * dock
 
QString m_sApacheLogFile = "/var/log/apache2/error.log"
 
QString m_sPath = "/var/www/cgi-bin/"
 
QString m_sPrefix = "/another/path/cgi-bin/"
 
QString m_sPerlCritcPath = "/usr/local/bin/perlcritic"
 
QString m_sPdfReaderPath = "/usr/bin/atril"
 
uint m_nSeverity = 5
 
QString m_sPbP = "/perl_best_practice_pdf"
 
QString m_sPerl5 = "/usr/bin/perl"
 
QString m_sArgs = "-d"
 
QList< QHash< QString, QString > > m_hVars
 
QProcessEnvironment m_pEnv
 

Member Function Documentation

void PluginKatePERLCheckView::addBreakPoint ( uint  line,
KUrl  url = KUrl("") 
)
slot

add breakpoint.

Parameters
uintline linenumber
void PluginKatePERLCheckView::debug ( bool  state)
slot

start or stop the debugger

Parameters
state
void PluginKatePERLCheckView::enableDebuger ( bool  enable)
slot

enable or disable KActions while debugging.

Parameters
enable
void PluginKatePERLCheckView::expr ( QString  expr)
slot

write expr to Debugger process.

Parameters
expr
void PluginKatePERLCheckView::findSubs ( )
slot

findSubs called by m_openProc (readyReadStandardOutput), add the openSub Menu to the Editor Context Menu.

See Also
openSub
void PluginKatePERLCheckView::gotoSub ( )
slot

gotoSub Called by a QAction to open sub.

See Also
findSubs
bool PluginKatePERLCheckView::insertItem ( QRegExp  rx,
QString  line 
)
slot

insert a Listview Item in the "Error Log window "

Parameters
rxregular expression match msg lineumber column
lineline matched.
void PluginKatePERLCheckView::markChanged ( KTextEditor::Document *  doc,
KTextEditor::Mark  mark,
KTextEditor::MarkInterface::MarkChangeAction  change 
)
slot

iconBorder debug sympol state changed This function is called whenever a breakpoint is set or unset.

Parameters
KTextEditor::Document*unused
KTextEditor::Markmark pointer to the breakpoint
KTextEditor::MarkInterface::MarkChangeActionchange
See Also
KTextEditor::Document::markChanged() [signal]
void PluginKatePERLCheckView::mousePositionChanged ( KTextEditor::View *  view,
const KTextEditor::Cursor &  newPosition 
)
slot

show tooltip for Variables.

Parameters
view
newPosition
void PluginKatePERLCheckView::removeBreakPoint ( uint  line,
KUrl  url = KUrl("") 
)
slot

remove breakpoint.

Parameters
uintline linenumber

The documentation for this class was generated from the following files: