From 0582c90a9ed4b965629267713f51c0da7c38b39d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 4 Sep 2024 11:53:23 +0900 Subject: Rename remaining ntq[m-r]* related files to equivalent tq* (except ntqmodules.h) Signed-off-by: Michele Calgaro --- doc/html/tqnpwidget.html | 126 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 doc/html/tqnpwidget.html (limited to 'doc/html/tqnpwidget.html') diff --git a/doc/html/tqnpwidget.html b/doc/html/tqnpwidget.html new file mode 100644 index 000000000..846853bba --- /dev/null +++ b/doc/html/tqnpwidget.html @@ -0,0 +1,126 @@ + + + + +TQNPWidget Class + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

TQNPWidget Class Reference

+ +

The TQNPWidget class provides a TQWidget that is a web browser plugin window. +More... +

This class is part of the TQt Netscape Extension. +

#include <tqnp.h> +

Inherits TQWidget. +

List of all member functions. +

Public Members

+ +

Detailed Description

+

This class is defined in the TQt Netscape Extension, which can be found in the qt/extensions directory. It is not included in the main TQt API. +

+ +The TQNPWidget class provides a TQWidget that is a web browser plugin window. +

+

Derive from TQNPWidget to create a widget that can be used as a +web browser plugin window, or create one and add child widgets. +Instances of TQNPWidget may only be created when +TQNPInstance::newWindow() is called by the browser. +

A common way to develop a plugin widget is to develop it as a +stand-alone application window, then make it a child of a +plugin widget to use it as a browser plugin. The technique is: +

+class MyPluginWindow : public TQNPWidget
+{
+    TQWidget* child;
+public:
+    MyPluginWindow()
+    {
+        // Some widget that is normally used as a top-level widget
+        child = new MyIndependentlyDevelopedWidget();
+
+        // Use the background color of the web page
+        child->setBackgroundColor( backgroundColor() );
+
+        // Fill the plugin widget
+        child->setGeometry( 0, 0, width(), height() );
+    }
+
+    void resizeEvent(TQResizeEvent*)
+    {
+        // Fill the plugin widget
+        child->resize(size());
+    }
+};
+
+ +

The default implementation is an empty window. + +


Member Function Documentation

+

TQNPWidget::TQNPWidget () +

+Creates a TQNPWidget. + +

TQNPWidget::~TQNPWidget () +

+Destroys the window. This will be called by the plugin binding +code when the window is no longer required. The web browser will +delete windows when they leave the page. The bindings will change +the TQWidget::winId() of the window when the window is resized, but +this should not affect normal widget behavior. + +

void TQNPWidget::enterInstance () [virtual] +

+Called when the mouse enters the plugin window. Does nothing by +default. + +

Example: grapher/grapher.cpp. +

TQNPInstance * TQNPWidget::instance () +

+Returns the instance for which this widget is the plugin window. + +

void TQNPWidget::leaveInstance () [virtual] +

+Called when the mouse leaves the plugin window. Does nothing by +default. + +

Example: grapher/grapher.cpp. + +


+This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


+ +
Copyright © 2007 +TrolltechTrademarks +
TQt 3.3.8
+
+ -- cgit v1.2.1