1 #ifndef __KDEVHTMLPART_H__ 2 #define __KDEVHTMLPART_H__ 6 #include <tqdatetime.h> 8 #include <tdehtml_part.h> 16 class TDEToolBarPopupAction;
18 struct DocumentationHistoryEntry {
22 DocumentationHistoryEntry() {}
23 DocumentationHistoryEntry(
const KURL& u ): url( u )
25 id = abs( TQTime::currentTime().msecsTo( TQTime() ) );
51 enum Options { CanDuplicate=1, CanOpenInNewWindow=2 };
55 void setContext(
const TQString &context);
56 TQString context()
const;
57 virtual bool openURL(
const KURL &url);
58 static TQString resolveEnvVarsInURL(
const TQString& url);
60 void setOptions(
int options) { m_options = options; }
63 void fileNameChanged(KParts::ReadOnlyPart *part);
67 void slotStarted(TDEIO::Job *);
69 void slotCancelled(
const TQString &errMsg);
71 void openURLRequest(
const KURL &url);
72 void popup(
const TQString & url,
const TQPoint & p );
76 virtual void slotDuplicate() = 0;
77 virtual void slotOpenInNewWindow(
const KURL &url) = 0;
80 void slotSelectionChanged();
84 void slotBackAboutToShow();
85 void slotForwardAboutToShow();
87 void slotPopupActivated(
int id );
88 void addHistoryEntry();
93 TQValueList< DocumentationHistoryEntry > m_history;
94 TQValueList< DocumentationHistoryEntry >::Iterator m_Current;
96 TDEToolBarPopupAction* m_backAction;
97 TDEToolBarPopupAction* m_forwardAction;
102 TDEAction *stopAction;
103 TDEAction *reloadAction;
104 TDEAction *duplicateAction;
105 TDEAction *printAction;
106 TDEAction *copyAction;
Customized TDEHTML part for KDevelop.