📄 htmlview.h
字号:
* @see #documentDone */ void documentStarted( KHTMLView *_view ); /** * This signal is emitted if the widget has parsed and if all images * arrived. Mention that this is only true or '_view'. The parent widget * or any child widget may still parse or wait for an image. * This signal is the complement to @ref #documentStarted */ void documentDone( KHTMLView *_view ); /** * The user pressed ALT + Up */ void goUp( KHTMLView *_view ); void goUp(); /** * The user pressed ALT + Right */ void goRight( KHTMLView *_view ); void goRight(); /** * The user pressed ALT + Left */ void goLeft( KHTMLView *_view ); void goLeft(); public slots: void slotScrollVert( int _dy ); void slotScrollHorz( int _dx ); /** Call this slot if an requested image is available. * The rquested image is named '_url' and is stored on the local disk * in the file named '_filename'. * * @param _url is the full qualified URL that was passedd to you by the * ref #imageRequest signal. * @param _filename is a usual UNIX filename like "/tmp/tmpimage". */ void slotImageLoaded( const char *_url, const char *_filename ); /** * This slot is connected to all children. It emits the signal * @ref #documentRequest if called. <b>This slot is for internal use * only</b>. */ void slotDocumentRequest( KHTMLView* _view, const char* _url ); /** * This slot is connected to all children. It emits the signal * @ref #cancelDocumentRequest if called. <b>This slot is for internal use * only</b>. */ void slotCancelDocumentRequest( KHTMLView* _view, const char* _url ); /** * This slot is connected to all children. It emits the signal * @ref #URLSelected if called. <b>This slot is for internal use only</b>. */ void slotURLSelected( KHTMLView* _view, const char* _url, int _button, const char *_target ); /** * This slot is connected to all children. It emits the signal * @ref #setTitle if called. <b>This slot is for internal use only</b>. */ void slotSetTitle( const char* _text ); /** * This slot is connected to all children. It emits the signal * @ref #onURL if called. <b>This slot is for internal use only</b>. */ void slotOnURL( KHTMLView *_view, const char *_url ); /** * This slot is connected to all children. It emits the signal * @ref #popupMenu if called. <b>This slot is for internal use only</b>. */ void slotPopupMenu( KHTMLView *_view, const char *_url, const QPoint &_point ); /** * This slot is connected to all children. It emits the signal * @ref #imageRequest if called. <b>This slot is for internal use only</b>. */ void slotImageRequest( KHTMLView *_view, const char *_url ); /** * This slot is connected to all children. It emits the signal * @ref #cancelImageRequest if called. <b>This slot is for internal use * only</b>. */ void slotCancelImageRequest( KHTMLView *_view, const char *_url ); /** * This slot is connected to all children. It emits the signal * @ref #cancelImageRequest if called. <b>This slot is for internal use * only</b>. * * @param _method is the <form method=...> value * @param _url is the <form action=...> value * @param _data is the encoded from data submitted */ void slotFormSubmitted( KHTMLView *_view, const char *_method, const char *_url, const char *_data ); /** * This slot is connected to all children. It emits the signal * @ref #documentStarted if called. <b>This slot is for internal use * only</b>. */ void slotDocumentStarted( KHTMLView *_view ); /** * This slot is connected to all children. It emits the signal * @ref #documentDone if called. <b>This slot is for internal use only</b>. */ void slotDocumentDone( KHTMLView *_view ); /** * You can move the vertical scrollbar by calling this slot. */ void slotVertSubtractLine(); /** * You can move the vertical scrollbar by calling this slot. */ void slotVertAddLine(); /** * You can move the vertical scrollbar by calling this slot. */ void slotVertSubtractPage(); /** * You can move the vertical scrollbar by calling this slot. */ void slotVertAddPage();protected slots: /** * This slot is connected to @ref KHTMLWidget. It emits the signal * @ref #URLSelected if called. <b>This slot is for internal use only</b>. */ virtual void slotURLSelected( const char* _url, int _button, const char *_target ); /** * This slot is connected to @ref KHTMLWidget. It emits the signal * @ref #onURL if called. <b>This slot is for internal use only</b>. */ virtual void slotOnURL( const char *_url ); /* * This slot is connected to @ref KHTMLWidget. It emits the signal * @ref #textSelected if called. This slot is for internal use only. */ virtual void slotTextSelected( bool _selected ); /** * This slot is connected to @ref KHTMLWidget. It emits the signal * @ref #popupMenu if called. <b>This slot is for internal use only</b>. */ virtual void slotPopupMenu( const char *_url, const QPoint &_point ); /** * This slot is connected to @ref KHTMLWidget. It emits the signal * @ref #imageRequest if called. <b>This slot is for internal use only</b>. */ virtual void slotImageRequest( const char *_url ); /** * This slot is connected to @ref KHTMLWidget. It emits the signal * @ref #cancelImageRequest if called. <b>This slot is for internal use * only</b>. */ virtual void slotCancelImageRequest( const char *_url ); /** * This slot is connected to @ref KHTMLWidget. It emits the signal * if the form is submitted * * @param _url is the <form action=...> value * @param _method is the <form method=...> value * @param _data is the encoded form data submitted */ virtual void slotFormSubmitted( const char *_url, const char *_method, const char *_data ); /** * This slot is connected to @ref KHTMLWidget. It emits the signal * if the document in the HTML Widget changes.<br> * <b>For Internal use only</b>. */ virtual void slotDocumentChanged(); /** * This slot is connected to @ref KHTMLWidget. It emits the signal * @ref #documentStarted if called. <b>This slot is for internal use * only</b>. */ virtual void slotDocumentStarted(); /** * This slot is connected to @ref KHTMLWidget. It emits the signal * @ref #documentDone if called. <b>This slot is for internal use only</b>. */ virtual void slotDocumentDone(); /** * Connected to the HTML widget. */ void slotInternScrollVert( int ); /** * Connected to the HTML widget */ void slotInternScrollHorz( int ); /** * The user pressed ALT + Up */ void slotGoUp(); /** * The user pressed ALT + Right */ void slotGoRight(); /** * The user pressed ALT + Left */ void slotGoLeft();protected: virtual void resizeEvent( QResizeEvent* _ev ); virtual void closeEvent( QCloseEvent *e ); virtual void initGUI(); /* * Determiens wether scrollbars are needed and displays or hides them */ virtual void calcScrollBars(); /* * The horizontal scrollbar */ QScrollBar *horz; /* * The vertical scrollbar */ QScrollBar *vert; /* * The HTML Widget. */ KHTMLWidget *view; /** * The currently displayed URL. * This is usually the same URL as the one passed to the Constructor of * @ref KIDWIindow::KIDWindow. */ QString url; /* * Flag that indicates wether we show a horizontal scrollbar. * * @see horz */ bool displayHScroll; /* * Flag that indicates wether we show a vertictal scrollbar. * * @see vert */ bool displayVScroll; /* * List of all open html views. */ static QList<KHTMLView> *viewList; /* * The name of the window. You can refer to this name in the * <a href=... target=... >> tag. * * @see #findView * @see #setName * @see #getName */ QString frameName; /* * @see #setAllowResize */ bool bAllowResize; /* * @see #setScrolling */ int scrolling; /* * @see #setFrameBorder */ int frameBorder; /* * Pointer to the parent KHTMLView. If this view is the toplevel frame or * if there are no frames at all then this pointer is 0L. */ KHTMLView *parentView; /* * This string holds some temporary data. It is used by @ref KHTMLWidget * * @see #setCookie * @see #getCookie */ QString cookie; int scrollToX; int scrollToY;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -