• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Utility Library
 

KDevelop Utility Library

  • lib
  • util
kdevshellwidget.h
1 /***************************************************************************
2  * Copyright (C) 2006 by Jens Dagerbo *
3  * jens.dagerbo@swipnet.se *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  ***************************************************************************/
11 
12 
13 #ifndef KDEVSHELLWIDGET_H
14 #define KDEVSHELLWIDGET_H
15 
16 #include <tqstrlist.h>
17 #include <tqvbox.h>
18 #include <tqguardedptr.h>
19 
20 class TDEProcess;
21 namespace KParts
22 {
23  class ReadOnlyPart;
24 }
25 
26 class KDevShellWidget : public TQVBox
27 {
28 
29 Q_OBJECT
30 
31 
32 public:
33  KDevShellWidget(TQWidget *parent = 0, const char *name = 0);
34  virtual ~KDevShellWidget();
35 
41  void setShell( const TQString & shell, const TQStrList & arguments = TQStrList() );
42 
47  void activate();
48 
53  void setAutoReactivateOnClose( bool doAutoActivate );
54 
59  void sendInput( const TQString & text );
60 
65  bool isRunning();
66 
67 signals:
72  void shellExited( int exitcode );
73 
78  void shellSignalled( int signalcode );
79 
84  void receivedData( const TQString & );
85 
86 private slots:
87  void partDestroyed();
88  void processExited( TDEProcess * );
89  void setAutoReactivateOnCloseDelayed( );
90 
91 private:
92  TQGuardedPtr<KParts::ReadOnlyPart> m_konsolePart;
93  TQString m_shellName;
94  TQStrList m_shellArguments;
95  bool m_doAutoActivate;
96  bool m_isRunning;
97 };
98 
99 #endif
100 
101 // kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
KParts
Definition: kdevshellwidget.h:21

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Utility Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.