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

KDevelop Widgets Library

  • lib
  • widgets
kdevhtmlpart.h
Go to the documentation of this file.
1#ifndef __KDEVHTMLPART_H__
2#define __KDEVHTMLPART_H__
3
4#include <stdlib.h>
5
6#include <tqdatetime.h>
7
8#include <tdehtml_part.h>
9
15class TDEAction;
16class TDEToolBarPopupAction;
17
18struct DocumentationHistoryEntry {
19 KURL url;
20 int id;
21
22 DocumentationHistoryEntry() {}
23 DocumentationHistoryEntry( const KURL& u ): url( u )
24 {
25 id = abs( TQTime::currentTime().msecsTo( TQTime() ) ); // nasty, but should provide a reasonably unique number
26 }
27};
28
44class KDevHTMLPart : public TDEHTMLPart
45{
46 TQ_OBJECT
47
48
49public:
50
51 enum Options { CanDuplicate=1, CanOpenInNewWindow=2 };
52
53 KDevHTMLPart();
54
55 void setContext(const TQString &context);
56 TQString context() const;
57 virtual bool openURL(const KURL &url);
58 static TQString resolveEnvVarsInURL(const TQString& url);
59
60 void setOptions(int options) { m_options = options; }
61
62signals:
63 void fileNameChanged(KParts::ReadOnlyPart *part);
64
65protected slots:
66
67 void slotStarted(TDEIO::Job *);
68 void slotCompleted();
69 void slotCancelled(const TQString &errMsg);
70
71 void openURLRequest(const KURL &url);
72 void popup( const TQString & url, const TQPoint & p );
73
74 void slotReload();
75 void slotStop();
76 virtual void slotDuplicate() = 0;
77 virtual void slotOpenInNewWindow(const KURL &url) = 0;
78 void slotPrint();
79 void slotCopy();
80 void slotSelectionChanged();
81
82 void slotBack();
83 void slotForward();
84 void slotBackAboutToShow();
85 void slotForwardAboutToShow();
86
87 void slotPopupActivated( int id );
88 void addHistoryEntry();
89
90
91private:
92
93 TQValueList< DocumentationHistoryEntry > m_history;
94 TQValueList< DocumentationHistoryEntry >::Iterator m_Current;
95
96 TDEToolBarPopupAction* m_backAction;
97 TDEToolBarPopupAction* m_forwardAction;
98
99 bool m_restoring;
100
101 TQString m_context;
102 TDEAction *stopAction;
103 TDEAction *reloadAction;
104 TDEAction *duplicateAction;
105 TDEAction *printAction;
106 TDEAction *copyAction;
107
108 int m_options;
109};
110
111#endif
KDevHTMLPart
Customized TDEHTML part for KDevelop.
Definition kdevhtmlpart.h:45

KDevelop Widgets Library

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

KDevelop Widgets Library

Skip menu "KDevelop Widgets 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 Widgets Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.