From 6964feed838dec70e7743ea90b390e4ae706d3c9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 3 Oct 2024 17:43:38 +0900 Subject: Remove obsolete Netscape plugin and its classes Signed-off-by: Michele Calgaro --- doc/html/annotated.html | 4 - doc/html/classes.html | 18 +- doc/html/examples.html | 1 - doc/html/functions.html | 99 ++--- doc/html/grapher-nsplugin-example.html | 704 --------------------------------- doc/html/headerfilesynonyms | 4 - doc/html/headers.html | 1 - doc/html/hierarchy.html | 4 - doc/html/index | 60 --- doc/html/modules.html | 1 - doc/html/netscape-plugin.html | 129 ------ doc/html/nsplugin-examples.html | 51 --- doc/html/overviews-list.html | 1 - doc/html/qt.dcf | 84 ---- doc/html/titleindex | 13 - doc/html/tqasciidict.html | 2 +- doc/html/tqcache.html | 2 +- doc/html/tqcolor.html | 2 +- doc/html/tqdict.html | 2 +- doc/html/tqfontmetrics.html | 2 +- doc/html/tqintdict.html | 2 +- doc/html/tqiodevice.html | 3 - doc/html/tqmenubar.html | 2 - doc/html/tqmenudata.html | 2 +- doc/html/tqmessagebox.html | 3 +- doc/html/tqnp-h.html | 231 ----------- doc/html/tqnpinstance-members.html | 112 ------ doc/html/tqnpinstance.html | 320 --------------- doc/html/tqnplugin-members.html | 58 --- doc/html/tqnplugin.html | 180 --------- doc/html/tqnpstream-members.html | 58 --- doc/html/tqnpstream.html | 129 ------ doc/html/tqnpwidget-members.html | 340 ---------------- doc/html/tqnpwidget.html | 126 ------ doc/html/tqobject.html | 4 +- doc/html/tqpainter.html | 12 +- doc/html/tqpixmap.html | 4 +- doc/html/tqpopupmenu.html | 4 +- doc/html/tqptrcollection.html | 2 +- doc/html/tqptrdict.html | 2 +- doc/html/tqptrlist.html | 10 +- doc/html/tqptrvector.html | 2 +- doc/html/tqtextstream.html | 2 +- doc/html/tqwidget.html | 4 +- doc/html/trivial-nsplugin-example.html | 125 ------ doc/html/whatsthis | 4 - 46 files changed, 74 insertions(+), 2851 deletions(-) delete mode 100644 doc/html/grapher-nsplugin-example.html delete mode 100644 doc/html/netscape-plugin.html delete mode 100644 doc/html/nsplugin-examples.html delete mode 100644 doc/html/tqnp-h.html delete mode 100644 doc/html/tqnpinstance-members.html delete mode 100644 doc/html/tqnpinstance.html delete mode 100644 doc/html/tqnplugin-members.html delete mode 100644 doc/html/tqnplugin.html delete mode 100644 doc/html/tqnpstream-members.html delete mode 100644 doc/html/tqnpstream.html delete mode 100644 doc/html/tqnpwidget-members.html delete mode 100644 doc/html/tqnpwidget.html delete mode 100644 doc/html/trivial-nsplugin-example.html (limited to 'doc/html') diff --git a/doc/html/annotated.html b/doc/html/annotated.html index aebb2de7..60709674 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -250,10 +250,6 @@ body { background: #ffffff; color: black; } TQMovieIncremental loading of animations or images, signalling as it progresses TQMutexAccess serialization between threads TQMutexLockerSimplifies locking and unlocking TQMutexes -TQNPInstanceTQObject that is a web browser plugin -TQNPStreamStream of data provided to a TQNPInstance by the browser -TQNPWidgetTQWidget that is a web browser plugin window -TQNPluginThe main factory for plugin objects TQNetworkOperationCommon operations for network protocols TQNetworkProtocolCommon API for network protocols TQObjectThe base class of all TQt objects diff --git a/doc/html/classes.html b/doc/html/classes.html index 82149d62..a0122823 100644 --- a/doc/html/classes.html +++ b/doc/html/classes.html @@ -778,8 +778,8 @@ classes, see TQt's Main Classes. H TQHBox -TQNPInstance -* + + TQSqlSelectCursor TQXmlContentHandler @@ -789,8 +789,8 @@ classes, see TQt's Main Classes. TQHBoxLayout -TQNPlugin -* + + TQStatusBar TQXmlDeclHandler @@ -800,8 +800,8 @@ classes, see TQt's Main Classes. TQHButtonGroup -TQNPStream -* + + TQStoredDrag TQXmlDefaultHandler @@ -811,8 +811,8 @@ classes, see TQt's Main Classes. TQHeader -TQNPWidget -* + + TQStrIList TQXmlDTDHandler @@ -961,7 +961,7 @@ classes, see TQt's Main Classes. -

* Extension classes of Motif and Netscape. +

* Extension classes of Motif. diff --git a/doc/html/examples.html b/doc/html/examples.html index 83fd5972..33046591 100644 --- a/doc/html/examples.html +++ b/doc/html/examples.html @@ -62,7 +62,6 @@ in a line-by-line coverage please refer to the tutorials

Miscellaneous Examples

diff --git a/doc/html/functions.html b/doc/html/functions.html index 530ccbfe..cec33522 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -74,8 +74,7 @@ abort: TQPalette
  • activeModalWidget: TQApplication
  • activePopupWidget: TQApplication
  • activeWindow: - TQApplication TQWorkspace
  • actual: - TQNPlugin
  • add: + TQApplication TQWorkspace
  • add: TQActionGroup TQGridLayout TQLayout TQObjectCleanupHandler TQToolTip TQWhatsThis
  • addArgument: TQProcess
  • addBindValue: TQSqlQuery
  • addChild: @@ -163,11 +162,10 @@ abort: TQDockWindow
  • areaPoints: TQCanvasPolygon TQCanvasPolygonalItem
  • areaPointsAdvanced: TQCanvasPolygonalItem
  • arg: - TQNPInstance TQNetworkOperation TQString
  • argc: - TQApplication TQNPInstance
  • argn: - TQNPInstance
  • arguments: + TQNetworkOperation TQString
  • argc: + TQApplication
  • arguments: TQProcess
  • argv: - TQApplication TQNPInstance
  • arrangeItemsInGrid: + TQApplication
  • arrangeItemsInGrid: TQIconView
  • arrangement: TQIconView
  • arrowType: TQStyleOption
  • asBitArray: @@ -467,8 +465,7 @@ c: TQTranslatorMessage
  • communication: TQProcess
  • compare: TQIconViewItem TQListViewItem TQString
  • compareItems: - TQPtrList TQPtrVector
  • complete: - TQNPStream
  • compose: + TQPtrList TQPtrVector
  • compose: TQString
  • confirmCancel: TQDataBrowser TQDataTable
  • confirmCancels: TQDataBrowser TQDataTable
  • confirmDelete: @@ -544,7 +541,7 @@ c: TQMacMime
  • country: TQLocale
  • countryToString: TQLocale
  • create: - TQGLContext TQImage TQNPlugin TQSqlDriverPlugin TQStyleFactory TQStylePlugin TQWidget TQWidgetFactory TQWidgetPlugin
  • createAlphaMask: + TQGLContext TQImage TQSqlDriverPlugin TQStyleFactory TQStylePlugin TQWidget TQWidgetFactory TQWidgetPlugin
  • createAlphaMask: TQImage
  • createAttribute: TQDomDocument
  • createAttributeNS: TQDomDocument
  • createCDATASection: @@ -837,7 +834,7 @@ echoMode: TQFile
  • encodedData: TQDropEvent TQIconDrag TQMimeSource TQStoredDrag
  • encodedPathAndQuery: TQUrl
  • end: - TQImageConsumer TQLineEdit TQMap TQMemArray TQMultiLineEdit TQNPStream TQPainter TQValueList TQValueVector
  • endCDATA: + TQImageConsumer TQLineEdit TQMap TQMemArray TQMultiLineEdit TQPainter TQValueList TQValueVector
  • endCDATA: TQXmlLexicalHandler
  • endDTD: TQXmlLexicalHandler
  • endDocument: TQXmlContentHandler
  • endEdit: @@ -856,8 +853,7 @@ echoMode: TQIconView TQListView
  • ensureVisible: TQScrollView
  • enterAllocContext: TQColor
  • enterEvent: - TQWidget
  • enterInstance: - TQNPWidget
  • enterLoop: + TQWidget
  • enterLoop: TQEventLoop
  • enterWhatsThisMode: TQWhatsThis
  • entities: TQDomDocumentType
  • entityResolver: @@ -1025,29 +1021,20 @@ gamma: TQFontDialog
  • getHsv: TQColor
  • getInteger: TQInputDialog
  • getItem: - TQInputDialog
  • getJavaClass: - TQNPlugin
  • getJavaEnv: - TQNPlugin
  • getJavaPeer: - TQNPInstance
  • getLast: + TQInputDialog
  • getLast: TQPtrList
  • getLocation: - TQMainWindow
  • getMIMEDescription: - TQNPlugin
  • getMarkedRegion: + TQMainWindow
  • getMarkedRegion: TQMultiLineEdit
  • getNetworkProtocol: TQNetworkProtocol TQUrlOperator
  • getOpenFileName: TQFileDialog
  • getOpenFileNames: - TQFileDialog
  • getPluginDescriptionString: - TQNPlugin
  • getPluginNameString: - TQNPlugin
  • getRange: + TQFileDialog
  • getRange: TQSplitter
  • getRgb: TQColor
  • getRgba: TQColorDialog
  • getSaveFileName: TQFileDialog
  • getSelection: TQTextEdit
  • getText: - TQInputDialog
  • getURL: - TQNPInstance
  • getURLNotify: - TQNPInstance
  • getValidRect: - TQMovie
  • getVersionInfo: - TQNPlugin
  • getWFlags: + TQInputDialog
  • getValidRect: + TQMovie
  • getWFlags: TQWidget
  • getch: TQFile TQIODevice TQSocket
  • glDraw: TQGLWidget
  • glInit: @@ -1245,8 +1232,7 @@ icon: TQImageFormatPlugin
  • installIconFactory: TQIconSet
  • installPropertyMap: TQDataTable TQSqlForm
  • installTranslator: - TQApplication
  • instance: - TQNPStream TQNPWidget
  • intValue: + TQApplication
  • intValue: TQLCDNumber
  • internalEntityDecl: TQXmlDeclHandler
  • internalSubset: TQDomDocumentType
  • interpretText: @@ -1480,7 +1466,7 @@ label: TQDomNode
  • lastError: TQSqlDatabase TQSqlDriver TQSqlQuery TQSqlResult
  • lastItem: TQIconView TQListView
  • lastModified: - TQFileInfo TQNPStream TQUrlInfo
  • lastQuery: + TQFileInfo TQUrlInfo
  • lastQuery: TQSqlQuery TQSqlResult
  • lastRead: TQFileInfo TQUrlInfo
  • lastRecordAvailable: TQDataBrowser
  • lastResortFamily: @@ -1498,8 +1484,7 @@ label: TQFontMetrics
  • leapYear: TQDate
  • leaveAllocContext: TQColor
  • leaveEvent: - TQWidget
  • leaveInstance: - TQNPWidget
  • leaveWhatsThisMode: + TQWidget
  • leaveWhatsThisMode: TQWhatsThis
  • left: TQCString TQRect TQString
  • leftBearing: TQFontMetrics
  • leftCol: @@ -1666,7 +1651,7 @@ m11: TQChar
  • mixedColor: TQPlatinumStyle
  • mkdir: TQDir TQFtp TQUrlOperator
  • mode: - TQFileDialog TQIODevice TQLCDNumber TQNPInstance TQSqlCursor
  • modificationChanged: + TQFileDialog TQIODevice TQLCDNumber TQSqlCursor
  • modificationChanged: TQTextEdit
  • month: TQDate
  • motifWidget: TQMotifWidget
  • mouseButtonClicked: @@ -1716,14 +1701,10 @@ name: TQAccessibleInterface
  • newChild: TQNetworkProtocol
  • newChildren: TQNetworkProtocol TQUrlOperator
  • newConnection: - TQServerSocket
  • newInstance: - TQNPlugin
  • newItem: + TQServerSocket
  • newItem: TQPtrCollection
  • newLine: TQDockWindow TQMultiLineEdit
  • newPage: - TQPrinter
  • newStream: - TQNPInstance
  • newStreamCreated: - TQNPInstance
  • newWindow: - TQNPInstance
  • next: + TQPrinter
  • next: TQDataBrowser TQFocusData TQGLayoutIterator TQListBoxItem TQPtrList TQSqlQuery TQWizard TQXmlInputSource
  • nextButton: TQWizard
  • nextItem: TQIconViewItem
  • nextLine: @@ -1743,8 +1724,7 @@ name: TQDial
  • notchTarget: TQDial
  • notchesVisible: TQDial
  • notify: - TQApplication
  • notifyURL: - TQNPInstance
  • nrefs: + TQApplication
  • nrefs: TQMemArray
  • nullText: TQDataTable TQSqlDriver
  • numBitPlanes: TQColor
  • numBytes: @@ -1773,8 +1753,7 @@ object: TQCanvasPixmap
  • offsetY: TQCanvasPixmap
  • ok: TQServerSocket
  • okRename: - TQListViewItem
  • okay: - TQNPStream
  • oldPos: + TQListViewItem
  • oldPos: TQMoveEvent
  • oldSize: TQResizeEvent
  • onCanvas: TQCanvas
  • onItem: @@ -1943,8 +1922,7 @@ packImage: TQSqlRecord
  • positionFromValue: TQRangeControl
  • post: TQHttp
  • postEvent: - TQApplication
  • postURL: - TQNPInstance
  • precision: + TQApplication
  • precision: TQSqlFieldInfo TQTextStream
  • prefix: TQDomNode TQSpinBox TQXmlNamespaceSupport
  • prefixes: TQXmlNamespaceSupport
  • prepare: @@ -1965,9 +1943,7 @@ packImage: TQDesktopWidget
  • primeDelete: TQDataBrowser TQDataTable TQSqlCursor
  • primeInsert: TQDataBrowser TQDataTable TQSqlCursor
  • primeUpdate: - TQDataBrowser TQDataTable TQSqlCursor
  • print: - TQNPInstance
  • printFullPage: - TQNPInstance
  • printProgram: + TQDataBrowser TQDataTable TQSqlCursor
  • printProgram: TQPrinter
  • printRange: TQPrinter
  • printerName: TQPrinter
  • printerSelectionOption: @@ -2177,8 +2153,7 @@ rBottom: TQDomCharacterData
  • request: TQHttp
  • requestFinished: TQHttp
  • requestPhase2: - TQSessionManager
  • requestRead: - TQNPStream
  • requestStarted: + TQSessionManager
  • requestStarted: TQHttp
  • requestedFormat: TQGLContext
  • rereadDir: TQFileDialog
  • reserve: @@ -2284,8 +2259,7 @@ sRect: TQHeader
  • sectionRect: TQHeader
  • sectionSize: TQHeader
  • seek: - TQDataBrowser TQSqlQuery
  • seekable: - TQNPStream
  • segmentStyle: + TQDataBrowser TQSqlQuery
  • segmentStyle: TQLCDNumber
  • select: TQSqlCursor
  • selectAll: TQFileDialog TQIconView TQLineEdit TQListBox TQListView TQSpinBox TQTextEdit
  • selectCells: @@ -3125,7 +3099,7 @@ sRect: TQCheckListItem
  • stateChanged: TQButton TQCheckBox TQFtp TQHttp TQPushButton TQRadioButton
  • statistics: TQAsciiCache TQAsciiDict TQCache TQDict TQIntCache TQIntDict TQPtrDict
  • status: - TQIODevice TQImageIO TQNPInstance
  • statusBar: + TQIODevice TQImageIO
  • statusBar: TQMainWindow
  • statusCode: TQHttpResponseHeader
  • statusTip: TQAction
  • stencil: @@ -3137,9 +3111,7 @@ sRect: TQMovie
  • stereo: TQGLFormat
  • stop: TQNetworkProtocol TQSound TQTimer TQUrlOperator
  • stored: - TQMetaProperty
  • streamAsFile: - TQNPInstance
  • streamDestroyed: - TQNPInstance
  • stretch: + TQMetaProperty
  • stretch: TQFont
  • strikeOut: TQFont
  • strikeOutPos: TQFontMetrics
  • string: @@ -3344,7 +3316,7 @@ tab: TQApplication TQMutex
  • tryTerminate: TQProcess
  • turnOffChild: TQCheckListItem
  • type: - TQApplication TQCheckListItem TQEvent TQMetaProperty TQNPStream TQSocketDevice TQSocketNotifier TQSqlError TQSqlField TQSqlFieldInfo TQVariant TQXmlAttributes
  • typeID: + TQApplication TQCheckListItem TQEvent TQMetaProperty TQSocketDevice TQSocketNotifier TQSqlError TQSqlField TQSqlFieldInfo TQVariant TQXmlAttributes
  • typeID: TQSqlFieldInfo
  • typeName: TQVariant
  • typeToName: TQVariant
  • @@ -3373,8 +3345,7 @@ ucs2: TQWidget
  • unsetPalette: TQWidget
  • unsetf: TQTextStream
  • unsqueeze: - TQTranslator
  • unuseJavaClass: - TQNPlugin
  • upRect: + TQTranslator
  • upRect: TQSpinBox
  • update: TQCanvas TQCanvasItem TQDataBrowser TQSqlCursor TQWidget
  • updateAccessibility: TQAccessible
  • updateBoundary: @@ -3395,10 +3366,9 @@ ucs2: TQXmlAttributes TQXmlNamespaceSupport
  • uriToLocalFile: TQUriDrag
  • uriToUnicodeUri: TQUriDrag
  • url: - TQFileDialog TQNPStream TQNetworkProtocol
  • useHighlightColors: + TQFileDialog TQNetworkProtocol
  • useHighlightColors: TQMotifStyle
  • user: - TQUrl
  • userAgent: - TQNPInstance
  • userName: + TQUrl
  • userName: TQSqlDatabase
  • uses3D: TQToolButton
  • usesBigPixmap: TQToolButton
  • usesBigPixmaps: @@ -3459,7 +3429,7 @@ wait: TQWidget
  • wheelScrollLines: TQApplication
  • whiteSpaceMode: TQStyleSheetItem
  • widget: - TQDockWindow TQLayoutItem TQNPInstance TQSqlForm TQStyleOption TQWidgetItem TQWidgetStack
  • widgetAt: + TQDockWindow TQLayoutItem TQSqlForm TQStyleOption TQWidgetItem TQWidgetStack
  • widgetAt: TQApplication
  • widgetSizePolicy: TQMacStyle
  • widgetToField: TQSqlForm
  • widgets: @@ -3490,14 +3460,13 @@ wait: TQTextEdit
  • wrapping: TQDial TQSpinBox
  • writable: TQMetaProperty
  • write: - TQAsciiDict TQDict TQImageIO TQIntDict TQNPInstance TQNPStream TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTranslatorMessage
  • writeBlock: + TQAsciiDict TQDict TQImageIO TQIntDict TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTranslatorMessage
  • writeBlock: TQBuffer TQIODevice TQSocket TQSocketDevice
  • writeBytes: TQDataStream
  • writeEntry: TQSettings
  • writeField: TQSqlForm
  • writeFields: TQDataBrowser TQDataView TQSqlForm
  • writeRawBytes: - TQDataStream TQTextStream
  • writeReady: - TQNPInstance
  • writeToStdin: + TQDataStream TQTextStream
  • writeToStdin: TQProcess
  • wroteToStdin: TQProcess
  • x: diff --git a/doc/html/grapher-nsplugin-example.html b/doc/html/grapher-nsplugin-example.html deleted file mode 100644 index bd138c65..00000000 --- a/doc/html/grapher-nsplugin-example.html +++ /dev/null @@ -1,704 +0,0 @@ - - - - - -Grapher Plugin - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Grapher Plugin

    - - - -

    This example graphs data from a simple text file. It -demonstrates the use of the TQNPInstance::writeReady() -and TQNPInstance::write() functions. -

    To build the example, you must first build the -TQt Netscape Plugin Extension library. -Then type make in extensions/nsplugin/examples/grapher/ -and copy the resulting grapher.so or npgrapher.dll -to the Plugins directory of your WWW browser. -

    -

    The text file it accepts as input has a title line, then -a sequence of lines with a number, then a string. The -plugin displays a pie chart of the numbers, each segment -labelled by the associated string. The user can select -a bar chart view of the same data by selecting from the -menu that appears when they point at the plugin. -

    The HTML tag used to embed the graph is: - -

    -  <EMBED
    -    SRC=graph.g1n
    -    ALIGN=LEFT
    -    WIDTH=49% HEIGHT=300
    -    graphstyle=pie fontfamily=times
    -    fontsize=18>
    -

    -Note that some HTML arguments (which we have capitalized here) -are interpreted by the browser, while others are used by the -plugin. -


    -With the simplicity and cross-platform nature of TQt-based plugins, -pages like Netcraft's -Server Graphs can be provided much more efficiently for both -the service provider and consumer. Data need not be converted -to an image at the server. -


    -


    -Implementation: -

    // Include TQt Netscape Plugin classes.
    -#include "tqnp.h"
    -
    -// Include other TQt classes.
    -#include <tqpainter.h>
    -#include <tqtextstream.h>
    -#include <tqbuffer.h>
    -#include <tqpixmap.h>
    -#include <tqmenubar.h>
    -#include <tqpushbutton.h>
    -#include <tqptrlist.h>
    -#include <tqmessagebox.h>
    -
    -// Include some C library functions.
    -#include <math.h>
    -#include <stdlib.h>
    -
    -#ifndef M_PI // Some math.h don't include this.
    -#define M_PI 3.14159265358979323846264338327950288
    -#endif
    -
    -
    -
    -//
    -// GraphModel is a simple abstract class that describes
    -// a table of numeric and text data.
    -//
    -
    -class GraphModel {
    -public:
    -    enum ColType { Numeric, Label };
    -
    -    union Datum {
    -        double dbl;
    -        TQString* str;
    -    };
    -
    -    virtual TQPtrList<Datum>& graphData()=0;
    -    virtual ColType colType(int col) const=0;
    -    virtual int nCols() const=0;
    -};
    -
    -
    -//
    -// Graph is a widget subclass that displays a GraphModel.
    -// Since the widget is a TQNPWidget, it can be used as a plugin window,
    -// returned by Grapher::newWindow() below.
    -//
    -
    -class Graph : public TQNPWidget {
    -    TQ_OBJECT
    -public:
    -    // Constructs a Graph to display a GraphModel
    -    //
    -    Graph(GraphModel&);
    -    ~Graph();
    -
    -    // Two styles are available - Pie and Bar graph
    -    //
    -    enum Style { Pie, Bar };
    -    static const char* styleName[];
    -    void setStyle(Style);
    -    void setStyle(const char*);
    -
    -    // Timer event processing rotates the pie graph
    -    //
    -    void timerEvent(TQTimerEvent*);
    -
    -    // These functions are provided by TQNPWidget - we override
    -    // them to hide and show the plugin menubar.
    -    //
    -    void enterInstance();
    -    void leaveInstance();
    -
    -    // Paint the graph...
    -    //
    -    void paintEvent(TQPaintEvent*);
    -    //
    -    // ... as either a "Loading" message, a Bar graph, a Pie graph,
    -    // or an error message.
    -    //
    -    void paintWait(TQPaintEvent*);
    -    void paintBar(TQPaintEvent*);
    -    void paintPie(TQPaintEvent*);
    -    void paintError(const char*);
    -
    -signals:
    -    // Signals emitted when the Help menus are selected.
    -    void aboutPlugin();
    -    void aboutData();
    -
    -private:
    -    GraphModel& model;
    -    TQMenuBar *menubar;
    -    Style style;
    -    TQPopupMenu* stylemenu;
    -    int pieRotationTimer;
    -    int pieRotation;
    -    TQPixmap pm;
    -
    -private slots:
    -    void setStyleFromMenu(int id);
    -};
    -
    -
    -Graph::Graph( GraphModel& mdl ) :
    -    model(mdl),
    -    style(Bar),
    -    pieRotationTimer(0),
    -    pieRotation(0)
    -{
    -    // Create a menubar for the widget
    -    //
    -    menubar = new TQMenuBar( this );
    -    stylemenu = new TQPopupMenu;
    -    stylemenu->setCheckable(TRUE);
    -    for ( Style s = Pie; styleName[s]; s = Style(s+1)) {
    -        stylemenu->insertItem(styleName[s], s+100);
    -    }
    -    connect(stylemenu, TQ_SIGNAL(activated(int)),
    -        this, TQ_SLOT(setStyleFromMenu(int)));
    -    setStyle(Pie);
    -
    -    menubar->insertItem("Style", stylemenu);
    -    menubar->insertSeparator();
    -
    -    TQPopupMenu* help = new TQPopupMenu;
    -    help->insertItem( "About plugin...", this, TQ_SIGNAL(aboutPlugin()) );
    -    help->insertItem( "About data...", this, TQ_SIGNAL(aboutData()) );
    -    menubar->insertItem("Help", help);
    -    menubar->hide();
    -}
    -
    -Graph::~Graph()
    -{
    -}
    -
    -void Graph::setStyle(Style s)
    -{
    -    if (style != s) {
    -        if (pieRotationTimer)
    -            killTimer(pieRotationTimer);
    -        stylemenu->setItemChecked(100+style, FALSE);
    -        style = s;
    -        if ( style == Pie )
    -            pieRotationTimer = startTimer( 80 );
    -        else
    -            pieRotationTimer = 0;
    -        stylemenu->setItemChecked(100+style, TRUE);
    -        update();
    -    }
    -}
    -
    -void Graph::timerEvent(TQTimerEvent*)
    -{
    -    pieRotation = ( pieRotation + 6 ) % 360; repaint(FALSE);
    -}
    -
    -void Graph::setStyle(const char* stext)
    -{
    -    for ( Style s = Pie; styleName[s]; s = Style(s+1) ) {
    -        if ( tqstricmp(stext,styleName[s])==0 ) {
    -            setStyle(s);
    -            return;
    -        }
    -    }
    -}
    -
    -void Graph::enterInstance()
    -{
    -    menubar->show();
    -}
    -
    -void Graph::leaveInstance()
    -{
    -    menubar->hide();
    -}
    -
    -void Graph::paintError(const char* e)
    -{
    -    TQPainter p(this);
    -    int w = width();
    -    p.drawText(w/8, 0, w-w/4, height(), AlignCenter|WordBreak, e);
    -}
    -
    -void Graph::paintBar(TQPaintEvent* event)
    -{
    -    if ( model.colType(0) != GraphModel::Numeric ) {
    -        paintError("First column not numeric, cannot draw bar graph\n");
    -        return;
    -    }
    -
    -    TQPtrList<GraphModel::Datum>& data = model.graphData();
    -
    -    double max = 0.0;
    -
    -    for (GraphModel::Datum* rowdata = data.first();
    -        rowdata; rowdata = data.next())
    -    {
    -        if (rowdata[0].dbl > max) max = rowdata[0].dbl;
    -    }
    -
    -    const uint w = width();
    -    const uint h = height();
    -
    -    TQPainter p(this);
    -
    -    p.setClipRect(event->rect());
    -
    -    if ( w > data.count() ) {
    -        // More pixels than data
    -        int x = 0;
    -        int i = 0;
    -        TQFontMetrics fm=fontMetrics();
    -        int fh = fm.height();
    -
    -        for (GraphModel::Datum* rowdata = data.first();
    -            rowdata; rowdata = data.next())
    -        {
    -            TQColor c;
    -            c.setHsv( (i * 255)/data.count(), 255, 255 );// rainbow effect
    -            p.setBrush(c);
    -            int bw = (w-w/4-x)/(data.count()-i);
    -            int bh = int((h-h/4-1)*rowdata[0].dbl/max);
    -            p.drawRect( w/8+x, h-h/8-1-bh, bw, bh );
    -
    -            i++;
    -            x+=bw;
    -        }
    -    } else {
    -        // More data than pixels
    -        int x = 0;
    -        int i = 0;
    -        double av = 0.0;
    -        int n = 0;
    -        for (GraphModel::Datum* rowdata = data.first(); rowdata;
    -            rowdata = data.next())
    -        {
    -            int bx = i*w/data.count();
    -
    -            if (bx > x) {
    -                TQColor c;
    -                c.setHsv( (x * 255)/w, 255, 255 );// rainbow effect
    -                p.setPen(c);
    -                int bh = int(h*av/n/max);
    -
    -                p.drawLine(x,h-1,x,h-bh);
    -
    -                av = 0.0;
    -                n = 0;
    -                x = bx;
    -            }
    -
    -            av += rowdata[0].dbl;
    -            n++;
    -
    -            i++;
    -        }
    -    }
    -}
    -
    -void Graph::paintPie(TQPaintEvent* event)
    -{
    -    if ( model.colType(0) != GraphModel::Numeric ) {
    -        paintError("First column not numeric, cannot draw pie graph\n");
    -        return;
    -    }
    -
    -    TQPtrList<GraphModel::Datum>& data = model.graphData();
    -
    -    double total = 0.0;
    -
    -    GraphModel::Datum* rowdata;
    -
    -    for (rowdata = data.first();
    -        rowdata; rowdata = data.next())
    -    {
    -        total += rowdata[0].dbl;
    -    }
    -
    -    // Only use first column for pie chart
    -    if ( !total ) return;
    -
    -    int apos = (pieRotation-90)*16;
    -
    -    const int w = width();
    -    const int h = height();
    -
    -    const int xd = w - w/5;
    -    const int yd = h - h/5;
    -
    -    pm.resize(width(),height());
    -    pm.fill(backgroundColor());
    -    TQPainter p(&pm);
    -    p.setFont(font());
    -
    -    p.setClipRect(event->rect());
    -
    -    int i = 0;
    -
    -    for (rowdata = data.first();
    -        rowdata; rowdata = data.next())
    -    {
    -        TQColor c;
    -
    -        c.setHsv( ( i * 255)/data.count(), 255, 255 );// rainbow effect
    -        p.setBrush( c );                        // solid fill with color c
    -
    -        int a = int(( rowdata[0].dbl * 360.0 ) / total * 16.0 + 0.5);
    -        p.drawPie( w/10, h/10, xd, yd, -apos, -a );
    -        apos += a;
    -        i++;
    -    }
    -
    -    if (model.colType(1) == GraphModel::Label) {
    -        double apos = (pieRotation-90)*M_PI/180;
    -
    -        for (rowdata = data.first();
    -            rowdata; rowdata = data.next())
    -        {
    -            double a = rowdata[0].dbl * 360 / total * M_PI / 180;
    -            int x = int(cos(apos+a/2)*w*5/16 + w/2 + 0.5);
    -            int y = int(sin(apos+a/2)*h*5/16 + h/2 + 0.5);
    -
    -            // ### This causes a crash, so comment out for now
    -            /*p.drawText(x-w/8, y-h/8, w/4, h/4,
    -                WordBreak|AlignCenter,
    -                *rowdata[1].str);*/
    -            apos += a;
    -        }
    -    }
    -
    -    TQPainter p2(this);
    -    p2.setClipRect(event->rect());
    -    p2.drawPixmap(0,0,pm);
    -}
    -
    -void Graph::paintWait(TQPaintEvent*)
    -{
    -    TQPainter p(this);
    -    p.drawText(rect(), AlignCenter, "Loading...");
    -}
    -
    -void Graph::paintEvent(TQPaintEvent* event)
    -{
    -    if (!model.nCols()) {
    -        paintWait(event);
    -    } else {
    -        switch (style) {
    -          case Pie:
    -            paintPie(event);
    -            break;
    -          case Bar:
    -            paintBar(event);
    -            break;
    -        }
    -    }
    -}
    -
    -void Graph::setStyleFromMenu(int id)
    -{
    -    setStyle(Style(id-100));
    -}
    -
    -const char* Graph::styleName[] = { "Pie", "Bar", 0 };
    -
    -
    -//
    -// Grapher is a subclass of TQNPInstance, and so it can be returned
    -// by GrapherPlugin::newInstance().  A TQNPInstance represents the
    -// plugin, distinctly from the plugin window.
    -//
    -// Grapher is also a GraphModel, because it loads graph data from
    -// the net.  When Grapher creates a window in newWindow(), it creates
    -// a Graph widget to display the GraphModel that is the Grapher itself.
    -//
    -
    -class Grapher : public TQNPInstance, GraphModel {
    -    TQ_OBJECT
    -public:
    -    // Create a Grapher - all Grapher plugins are created
    -    // by one GrapherPlugin object.
    -    //
    -    Grapher();
    -    ~Grapher();
    -
    -    // We override this TQNPInstance function to create our
    -    // own subclass of TQNPWidget, a Graph widget.
    -    //
    -    TQNPWidget* newWindow();
    -
    -    // We override this TQNPInstance function to process the
    -    // incoming graph data.
    -    //
    -    int write(TQNPStream* /*str*/, int /*offset*/, int len, void* buffer);
    -
    -private:
    -    // Grapher is a GraphModel, so it implements the pure virtual
    -    // functions of that class.
    -    //
    -    TQPtrList<Datum>& graphData();
    -    ColType colType(int col) const;
    -    int nCols() const;
    -
    -    void consumeLine();
    -    TQPtrList<Datum> data;
    -    TQBuffer line;
    -    int ncols;
    -    ColType *coltype;
    -
    -private slots:
    -    // Slots that are connected to the Graph menu items.
    -    //
    -    void aboutPlugin();
    -    void aboutData();
    -};
    -
    -Grapher::Grapher()
    -{
    -    data.setAutoDelete(TRUE);
    -    ncols = 0;
    -    line.open(IO_WriteOnly|IO_Truncate);
    -}
    -
    -Grapher::~Grapher()
    -{
    -}
    -
    -TQPtrList<GraphModel::Datum>& Grapher::graphData()
    -{
    -    return data;
    -}
    -
    -GraphModel::ColType Grapher::colType(int col) const
    -{
    -    return coltype[col];
    -}
    -
    -int Grapher::nCols() const
    -{
    -    return ncols;
    -}
    -
    -
    -TQNPWidget* Grapher::newWindow()
    -{
    -    // Create a Graph - our subclass of TQNPWidget.
    -    Graph *graph = new Graph(*this);
    -
    -    // Look at the arguments from the EMBED tag.
    -    //   GRAPHSTYLE chooses pie or bar
    -    //   FONTFAMILY and FONTSIZE choose the font
    -    //
    -    const char* style = arg("GRAPHSTYLE");
    -    if ( style ) graph->setStyle(style);
    -
    -    const char* fontfamily = arg("FONTFAMILY");
    -    const char* fontsize = arg("FONTSIZE");
    -    int ptsize = fontsize ? atoi(fontsize) : graph->font().pointSize();
    -    if (fontfamily) graph->setFont(TQFont(fontfamily, ptsize));
    -
    -    connect(graph, TQ_SIGNAL(aboutPlugin()), this, TQ_SLOT(aboutPlugin()));
    -    connect(graph, TQ_SIGNAL(aboutData()), this, TQ_SLOT(aboutData()));
    -
    -    return graph;
    -}
    -
    -void Grapher::consumeLine()
    -{
    -    line.close();
    -    line.open(IO_ReadOnly);
    -
    -    TQTextStream ts( &line );
    -
    -    if (ncols == 0 ) {
    -        ncols=0;
    -        TQPtrList<ColType> typelist;
    -        typelist.setAutoDelete(TRUE);
    -        do {
    -            TQString typestr;
    -            ts >> typestr >> ws;
    -            ColType* t = 0;
    -            if ( typestr == "num" ) {
    -                t = new ColType(Numeric);
    -            } else if ( typestr == "label" ) {
    -                t = new ColType(Label);
    -            }
    -            if (t) typelist.append(t);
    -        } while (!ts.atEnd());
    -        coltype = new ColType[ncols];
    -        for (ColType* t = typelist.first(); t; t = typelist.next()) {
    -            coltype[ncols++] = *t;
    -        }
    -    } else {
    -        int col=0;
    -        Datum *rowdata = new Datum[ncols];
    -        while ( col < ncols && !ts.atEnd() ) {
    -            switch (coltype[col]) {
    -              case Numeric: {
    -                double value;
    -                ts >> value >> ws;
    -                rowdata[col].dbl = value;
    -                break;
    -              }
    -              case Label: {
    -                TQString* value = new TQString;
    -                ts >> *value >> ws;
    -                rowdata[col].str = value;
    -                break;
    -              }
    -            }
    -            col++;
    -        }
    -
    -        data.append(rowdata);
    -    }
    -
    -    line.close();
    -    line.open(IO_WriteOnly|IO_Truncate);
    -}
    -
    -int Grapher::write(TQNPStream* /*str*/, int /*offset*/, int len, void* buffer)
    -{
    -    // The browser calls this function when data is available on one
    -    // of the streams the plugin has requested.  Since we are only
    -    // processing one stream - the URL in the SRC argument of the EMBED
    -    // tag, we assume the TQNPStream is that one.  Also, since we do not
    -    // override TQNPInstance::writeReady(), we must accepts ALL the data
    -    // that is sent to this function.
    -    //
    -    char* txt = (char*)buffer;
    -    for (int i=0; i<len; i++) {
    -        char ch = txt[i];
    -        switch ( ch ) {
    -          case '\n':
    -            consumeLine();
    -            break;
    -          case '\r': // ignore;
    -            break;
    -          default:
    -            line.putch(ch);
    -        }
    -    }
    -    if ( widget() )
    -        widget()->update();
    -
    -    return len;
    -}
    -
    -void Grapher::aboutPlugin()
    -{
    -    getURL( "http://doc.trolltech.com/netscape-plugin.html", "_blank" );
    -}
    -
    -void Grapher::aboutData()
    -{
    -    const char* page = arg("DATAPAGE");
    -    if (page)
    -        getURL( page, "_blank" );
    -    else
    -        TQMessageBox::message("Help", "No help for this data");
    -}
    -
    -
    -//
    -// GrapherPlugin is the start of everything.  It is a TQNPlugin subclass,
    -// and it is responsible for describing the plugin to the browser, and
    -// creating instances of the plugin when it appears in web page.
    -//
    -
    -class GrapherPlugin : public TQNPlugin {
    -public:
    -    GrapherPlugin()
    -    {
    -    }
    -
    -    TQNPInstance* newInstance()
    -    {
    -        // Make a new Grapher, our subclass of TQNPInstance.
    -        return new Grapher;
    -    }
    -
    -    const char* getMIMEDescription() const
    -    {
    -        // Describe the MIME types which this plugin can
    -        // process.  Just the concocted "application/x-graphable"
    -        // type, with the "g1n" filename extension.
    -        //
    -        return "application/x-graphable:g1n:Graphable ASCII numeric data";
    -    }
    -
    -    const char * getPluginNameString() const
    -    {
    -        // The name of the plugin.  This is the title string used in
    -        // the "About Plugins" page of the browser.
    -        //
    -        return "TQt-based Graph Plugin";
    -    }
    -
    -    const char * getPluginDescriptionString() const
    -    {
    -        // A longer description of the plugin.
    -        //
    -        return "A TQt-based LiveConnected plug-in that graphs numeric data";
    -    }
    -
    -};
    -
    -//
    -// Finally, we provide the implementation of TQNPlugin::create(), to
    -// provide our subclass of TQNPlugin.
    -//
    -
    -TQNPlugin* TQNPlugin::create()
    -{
    -    return new GrapherPlugin;
    -}
    -
    -#include "grapher.moc"
    -
    - -

    See also Netscape Plugin Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/headerfilesynonyms b/doc/html/headerfilesynonyms index 7407d59d..0779e83e 100644 --- a/doc/html/headerfilesynonyms +++ b/doc/html/headerfilesynonyms @@ -116,10 +116,6 @@ tqwindowsmime.h tqmime.h tqmacmime.h tqmime.h tqmutexlocker.h tqmutex.h tqnetworkoperation.h tqnetworkprotocol.h -tqnpstream.h tqnp.h -tqnpwidget.h tqnp.h -tqnpinstance.h tqnp.h -tqnplugin.h tqnp.h tqobjectlistiterator.h tqobjectlist.h tqcolorgroup.h tqpalette.h tqpngimagepacker.h tqpngio.h diff --git a/doc/html/headers.html b/doc/html/headers.html index ff4ae829..b71e332a 100644 --- a/doc/html/headers.html +++ b/doc/html/headers.html @@ -150,7 +150,6 @@ body { background: #ffffff; color: black; }
  • tqmutex.h
  • tqnamespace.h
  • tqnetworkprotocol.h -
  • tqnp.h
  • tqobject.h
  • tqobjectcleanuphandler.h
  • tqobjectlist.h diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html index 6142b00f..419e69b5 100644 --- a/doc/html/hierarchy.html +++ b/doc/html/hierarchy.html @@ -163,8 +163,6 @@ classes in the TQt API.
  • TQMovie
  • TQMutex
  • TQMutexLocker -
  • TQNPlugin -
  • TQNPStream
  • TQPaintDevice -
  • TQNPInstance
  • TQObjectCleanupHandler
  • TQProcess
  • TQServerSocket @@ -472,7 +469,6 @@ classes in the TQt API.
  • TQHeader
  • TQMainWindow
  • TQMotifWidget -
  • TQNPWidget
  • TQScrollBar
  • TQSizeGrip
  • TQSlider diff --git a/doc/html/index b/doc/html/index index d9bd1fa4..5914351d 100644 --- a/doc/html/index +++ b/doc/html/index @@ -55,7 +55,6 @@ "Format of the TQDataStream Operators" datastreamformat.html "GNU General Public License" gpl.html "Getting Started" motif-walkthrough-1.html -"Grapher Plugin" grapher-nsplugin-example.html "Grouped Classes" groups.html "Header File Index" headers.html "Hello, World" hello-example.html @@ -4150,62 +4149,6 @@ "TQMutexLocker::~TQMutexLocker" tqmutexlocker.html#~TQMutexLocker "TQMutexPool::get" tqmutexpool.html#get "TQMutexPool::~TQMutexPool" tqmutexpool.html#~TQMutexPool -"TQNPInstance" tqnpinstance.html -"TQNPInstance::InstanceMode" tqnpinstance.html#InstanceMode -"TQNPInstance::Reason" tqnpinstance.html#Reason -"TQNPInstance::StreamMode" tqnpinstance.html#StreamMode -"TQNPInstance::arg" tqnpinstance.html#arg -"TQNPInstance::argc" tqnpinstance.html#argc -"TQNPInstance::argn" tqnpinstance.html#argn -"TQNPInstance::argv" tqnpinstance.html#argv -"TQNPInstance::getJavaPeer" tqnpinstance.html#getJavaPeer -"TQNPInstance::getURL" tqnpinstance.html#getURL -"TQNPInstance::getURLNotify" tqnpinstance.html#getURLNotify -"TQNPInstance::mode" tqnpinstance.html#mode -"TQNPInstance::newStream" tqnpinstance.html#newStream -"TQNPInstance::newStreamCreated" tqnpinstance.html#newStreamCreated -"TQNPInstance::newWindow" tqnpinstance.html#newWindow -"TQNPInstance::notifyURL" tqnpinstance.html#notifyURL -"TQNPInstance::postURL" tqnpinstance.html#postURL -"TQNPInstance::print" tqnpinstance.html#print -"TQNPInstance::printFullPage" tqnpinstance.html#printFullPage -"TQNPInstance::status" tqnpinstance.html#status -"TQNPInstance::streamAsFile" tqnpinstance.html#streamAsFile -"TQNPInstance::streamDestroyed" tqnpinstance.html#streamDestroyed -"TQNPInstance::userAgent" tqnpinstance.html#userAgent -"TQNPInstance::widget" tqnpinstance.html#widget -"TQNPInstance::write" tqnpinstance.html#write -"TQNPInstance::writeReady" tqnpinstance.html#writeReady -"TQNPInstance::~TQNPInstance" tqnpinstance.html#~TQNPInstance -"TQNPStream" tqnpstream.html -"TQNPStream::complete" tqnpstream.html#complete -"TQNPStream::end" tqnpstream.html#end -"TQNPStream::instance" tqnpstream.html#instance -"TQNPStream::lastModified" tqnpstream.html#lastModified -"TQNPStream::okay" tqnpstream.html#okay -"TQNPStream::requestRead" tqnpstream.html#requestRead -"TQNPStream::seekable" tqnpstream.html#seekable -"TQNPStream::type" tqnpstream.html#type -"TQNPStream::url" tqnpstream.html#url -"TQNPStream::write" tqnpstream.html#write -"TQNPStream::~TQNPStream" tqnpstream.html#~TQNPStream -"TQNPWidget" tqnpwidget.html -"TQNPWidget::enterInstance" tqnpwidget.html#enterInstance -"TQNPWidget::instance" tqnpwidget.html#instance -"TQNPWidget::leaveInstance" tqnpwidget.html#leaveInstance -"TQNPWidget::~TQNPWidget" tqnpwidget.html#~TQNPWidget -"TQNPlugin" tqnplugin.html -"TQNPlugin::actual" tqnplugin.html#actual -"TQNPlugin::create" tqnplugin.html#create -"TQNPlugin::getJavaClass" tqnplugin.html#getJavaClass -"TQNPlugin::getJavaEnv" tqnplugin.html#getJavaEnv -"TQNPlugin::getMIMEDescription" tqnplugin.html#getMIMEDescription -"TQNPlugin::getPluginDescriptionString" tqnplugin.html#getPluginDescriptionString -"TQNPlugin::getPluginNameString" tqnplugin.html#getPluginNameString -"TQNPlugin::getVersionInfo" tqnplugin.html#getVersionInfo -"TQNPlugin::newInstance" tqnplugin.html#newInstance -"TQNPlugin::unuseJavaClass" tqnplugin.html#unuseJavaClass -"TQNPlugin::~TQNPlugin" tqnplugin.html#~TQNPlugin "TQNetworkOperation" tqnetworkoperation.html "TQNetworkOperation::arg" tqnetworkoperation.html#arg "TQNetworkOperation::errorCode" tqnetworkoperation.html#errorCode @@ -7783,7 +7726,6 @@ "TQt Editions" editions.html "TQt Motif Extension" motif-extension.html "TQt Motif Extension - A Migration Walkthrough" motif-walkthrough.html -"TQt Netscape Plugin Extension" netscape-plugin.html "TQt Object Model" object.html "TQt Open Source Edition" opensourceedition.html "TQt Open Source Edition License Agreement" license.html @@ -7890,7 +7832,6 @@ "Toplevel Widgets" toplevel-example.html "Trademarks" trademarks.html "Transformed Graphics Demo" xform-example.html -"Trivial Example" trivial-nsplugin-example.html "Tutorial #2" tutorial2.html "User Interface Compiler (uic)" uic.html "Using Custom TQDialogs" motif-walkthrough-4.html @@ -7938,7 +7879,6 @@ "motif-examples" motif-examples.html "multimedia" multimedia.html "network-examples" network-examples.html -"nsplugin-examples" nsplugin-examples.html "objectmodel" objectmodel.html "opengl-examples" opengl-examples.html "operator!=" tqchar.html#operator!-eq diff --git a/doc/html/modules.html b/doc/html/modules.html index e6776549..954e2bd9 100644 --- a/doc/html/modules.html +++ b/doc/html/modules.html @@ -51,7 +51,6 @@ with each Edition.
  • Workspace (MDI) Module
  • XML Module
  • TQMotif Extension -
  • Netscape Plugin Extension

    diff --git a/doc/html/netscape-plugin.html b/doc/html/netscape-plugin.html deleted file mode 100644 index 472a7cc9..00000000 --- a/doc/html/netscape-plugin.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - -TQt Netscape Plugin Extension - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQt Netscape Plugin Extension

    - - -

    -

    The TQt Netscape Plugin software makes it easy to write browser plugins -that can be used on both Unix/Linux and MS-Windows, in Netscape, -Mozilla, and any other web browser supporting Netscape's LiveConnect -protocol. Modern versions of MSIE do not support this protocol. - -

    Information -

    -

    The Netscape Plugin Extension consists of the follow classes: -

    -

    How-to -

    -

      -
    1. Download the -Plugin SDK from Netscape, and copy the following files from there to -$TQTDIR/extensions/nsplugin/src -
        -
      • common/npwin.cpp -
      • common/npunix.c -
      • include/npapi.h -
      • include/npupp.h -
      • include/jri.h -
      • include/jri_md.h -
      • include/jritypes.h -
      -
    2. Build the Netscape Plugin extension library, found in the -extensions/nsplugin/src directory of your TQt distribution. -This produces a static library to be linked with your plugin code. -
    3. Read the plugin class documentation, and -examine the example plugins. -
    4. Do most of your development as a stand-alone TQt application - debugging -Netscape Plugins is cumbersome. You may want to use signal(2) -in your plugin to enable core-dumps if your browser disables them. -
    5. Note the platform-specific build steps below. -
    6. Read about the raw plugin interface -in Netscape's handbook. -
    7. If files viewed by a plugin are provided by an HTTP server -(using a http://... URL) then -the server must be configured to send the correct MIME type -for the file, e.g. by editing Apache's mime.types file. -If the files are viewed via a //... -URL, then the browser will use the filename extension to decide -the file type (and hence the plugin to load) - the user may need -to set the filename extension in the Helpers or Applications -section of their browser preferences. -
    -

    Building under X11 -

    -

      -
    • The Makefiles in the examples are appropriate for UNIX/X11. -
    • The user must install the resulting Shared Object in the Plugins -directory of the browser. -
    -

    Building under Windows -

    -

      -
    • For Netscape plugins to work, TQt needs to be in the system DLL -path or be compiled into the plugin as a static library. -
    • Plugins must be named npname.dll, -or the browser will ignore them. -
    • The link step must include: -
        -
      • /def:name.def -
      • /dll -
      • a compiled resource file defining the -file/MIME types accepted by the plugin. -
      -
    • The user must install the resulting DLL in the Plugins directory -of the browser. -
    -

    Known Bugs and Limitations -

    -

    The TQt-based LiveConnect Plugin binding code has a number of bugs and -limitations, but is sufficiently stable for many production -applications. -

      -
    • Keyboard input only works in secondary windows (e.g. dialogs created by the plugin). -
    • You should not expect modality between the plugin and the browser to work. -
    • Netscape 4.78 on Unix/X11 tends to terminate with a bus error. -
    • Opaque resize behaviour is erratic due to browser behavior. -
    -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/nsplugin-examples.html b/doc/html/nsplugin-examples.html deleted file mode 100644 index 403beff2..00000000 --- a/doc/html/nsplugin-examples.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -Netscape Plugin Examples - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Netscape Plugin Examples

    - - -

    The following example programs show how to write plugins -that can be used with web browsers supporting the LiveConnect -protocol. -

    For more information see the Plugin Howto. - -

    -
    Grapher Plugin -
    Trivial Example -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/overviews-list.html b/doc/html/overviews-list.html index fdf905cc..b004d787 100644 --- a/doc/html/overviews-list.html +++ b/doc/html/overviews-list.html @@ -77,7 +77,6 @@ body { background: #ffffff; color: black; }
  • Events and Event Filters
  • Keyboard Focus Overview
  • Standard Accelerators -
  • TQt-based LiveConnect Plugins
  • Motif Support Extension
  • OpenGL Overlays (X11)
  • Setting the Application Icon diff --git a/doc/html/qt.dcf b/doc/html/qt.dcf index 560e0f23..65d02114 100644 --- a/doc/html/qt.dcf +++ b/doc/html/qt.dcf @@ -4909,78 +4909,6 @@
    -
    - TQNPInstance - InstanceMode - Reason - StreamMode - arg - argc - argn - argv - getJavaPeer - getURL - getURLNotify - mode - newStream - newStreamCreated - newWindow - notifyURL - postURL - print - printFullPage - status - streamAsFile - streamDestroyed - userAgent - widget - write - writeReady - ~TQNPInstance -
    -
    -
    -
    - TQNPlugin - actual - create - getJavaClass - getJavaEnv - getMIMEDescription - getPluginDescriptionString - getPluginNameString - getVersionInfo - newInstance - unuseJavaClass - ~TQNPlugin -
    -
    -
    -
    - TQNPStream - complete - end - instance - lastModified - okay - requestRead - seekable - type - url - write - ~TQNPStream -
    -
    -
    -
    - TQNPWidget - enterInstance - instance - leaveInstance - ~TQNPWidget -
    -
    -
    TQObject activate_signal @@ -9446,9 +9374,6 @@
    GNU General Public License
    -
    - Grapher Plugin -
    graphics
    @@ -9569,9 +9494,6 @@
    multimedia
    -
    - nsplugin-examples -
    network-examples
    @@ -9689,9 +9611,6 @@
    TQt Motif Extension - A Migration Walkthrough
    -
    - TQt Netscape Plugin Extension -
    TQt Object Model
    @@ -9938,9 +9857,6 @@
    Transformed Graphics Demo
    -
    - Trivial Example -
    Tutorial #2
    diff --git a/doc/html/titleindex b/doc/html/titleindex index 878ad9b2..8b76d462 100644 --- a/doc/html/titleindex +++ b/doc/html/titleindex @@ -65,7 +65,6 @@ Font Displayer | qfd-example.html Format of the TQDataStream Operators | datastreamformat.html GNU General Public License | gpl.html Getting Started | motif-walkthrough-1.html -Grapher Plugin | grapher-nsplugin-example.html Graphics Classes | graphics.html Grouped Classes | groups.html Header File Index | headers.html @@ -106,7 +105,6 @@ Meta Object System | metaobjects.html Miscellaneous Classes | misc.html Movies or the Story of the Animated GIF file | movies-example.html Multimedia Classes | multimedia.html -Netscape Plugin Examples | nsplugin-examples.html Network Examples | network-examples.html Network Module | network.html Non-GUI Classes | tools.html @@ -583,14 +581,6 @@ TQMutex Class | tqmutex.html TQMutex Member List | tqmutex-members.html TQMutexLocker Class | tqmutexlocker.html TQMutexLocker Member List | tqmutexlocker-members.html -TQNPInstance Class | tqnpinstance.html -TQNPInstance Member List | tqnpinstance-members.html -TQNPStream Class | tqnpstream.html -TQNPStream Member List | tqnpstream-members.html -TQNPWidget Class | tqnpwidget.html -TQNPWidget Member List | tqnpwidget-members.html -TQNPlugin Class | tqnplugin.html -TQNPlugin Member List | tqnplugin-members.html TQNetworkOperation Class | tqnetworkoperation.html TQNetworkOperation Member List | tqnetworkoperation-members.html TQNetworkProtocol Class | tqnetworkprotocol.html @@ -946,7 +936,6 @@ Qt Editions | editions.html Qt Member List | qt-members.html Qt Motif Extension | motif-extension.html Qt Motif Extension - A Migration Walkthrough | motif-walkthrough.html -Qt Netscape Plugin Extension | netscape-plugin.html Qt Object Model | object.html Qt Open Source Edition | opensourceedition.html Qt Open Source Edition License Agreement | license.html @@ -1029,7 +1018,6 @@ Timers | timers.html Toplevel Widgets | toplevel-example.html Trademarks | trademarks.html Transformed Graphics Demo | xform-example.html -Trivial Example | trivial-nsplugin-example.html Tutorial #2 | tutorial2.html User Interface Compiler (uic) | uic.html Using Custom TQDialogs | motif-walkthrough-4.html @@ -1186,7 +1174,6 @@ tqmutex.h Include File | tqmutex-h.html tqnamespace.h Include File | tqnamespace-h.html tqnetwork.h Example File | tqnetwork-h.html tqnetworkprotocol.h Include File | tqnetworkprotocol-h.html -tqnp.h Include File | tqnp-h.html tqobject.h Include File | tqobject-h.html tqobjectcleanuphandler.h Include File | tqobjectcleanuphandler-h.html tqobjectlist.h Include File | tqobjectlist-h.html diff --git a/doc/html/tqasciidict.html b/doc/html/tqasciidict.html index 1f5cadc1..c1640eba 100644 --- a/doc/html/tqasciidict.html +++ b/doc/html/tqasciidict.html @@ -278,7 +278,7 @@ function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item.

    See also autoDelete(). -

    Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. +

    Examples: scribble/scribble.cpp and table/bigtable/main.cpp.

    uint TQAsciiDict::size () const

    diff --git a/doc/html/tqcache.html b/doc/html/tqcache.html index 54a5d7d7..bfc94852 100644 --- a/doc/html/tqcache.html +++ b/doc/html/tqcache.html @@ -225,7 +225,7 @@ function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item.

    See also autoDelete(). -

    Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. +

    Examples: scribble/scribble.cpp and table/bigtable/main.cpp.

    void TQCache::setMaxCost ( int m )

    diff --git a/doc/html/tqcolor.html b/doc/html/tqcolor.html index 1df63a35..cb970718 100644 --- a/doc/html/tqcolor.html +++ b/doc/html/tqcolor.html @@ -505,7 +505,7 @@ color is not changed. may return slightly different values to those set by setHsv().

    See also hsv() and setRgb(). -

    Examples: drawdemo/drawdemo.cpp, grapher/grapher.cpp, and progress/progress.cpp. +

    Examples: drawdemo/drawdemo.cpp and progress/progress.cpp.

    void TQColor::setNamedColor ( const TQString & name )

    Sets the RGB value to name, which may be in one of these diff --git a/doc/html/tqdict.html b/doc/html/tqdict.html index 7608ff1c..83d28f27 100644 --- a/doc/html/tqdict.html +++ b/doc/html/tqdict.html @@ -352,7 +352,7 @@ function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item.

    See also autoDelete(). -

    Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. +

    Examples: scribble/scribble.cpp and table/bigtable/main.cpp.

    uint TQDict::size () const

    diff --git a/doc/html/tqfontmetrics.html b/doc/html/tqfontmetrics.html index b73fac45..58dcefdf 100644 --- a/doc/html/tqfontmetrics.html +++ b/doc/html/tqfontmetrics.html @@ -260,7 +260,7 @@ Returns the height of the font. base line).

    See also leading() and lineSpacing(). -

    Examples: grapher/grapher.cpp, hello/hello.cpp, and qfd/fontdisplayer.cpp. +

    Examples: hello/hello.cpp and qfd/fontdisplayer.cpp.

    bool TQFontMetrics::inFont ( TQChar ch ) const

    Returns TRUE if character ch is a valid character in the font; diff --git a/doc/html/tqintdict.html b/doc/html/tqintdict.html index f1e3403b..0db062a3 100644 --- a/doc/html/tqintdict.html +++ b/doc/html/tqintdict.html @@ -265,7 +265,7 @@ function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item.

    See also autoDelete(). -

    Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. +

    Examples: scribble/scribble.cpp and table/bigtable/main.cpp.

    uint TQIntDict::size () const

    diff --git a/doc/html/tqiodevice.html b/doc/html/tqiodevice.html index e7c2537b..95cedc29 100644 --- a/doc/html/tqiodevice.html +++ b/doc/html/tqiodevice.html @@ -239,7 +239,6 @@ at the end of the input; otherwise returns FALSE.

    This virtual function must be reimplemented by all subclasses.

    See also open(). -

    Example: grapher/grapher.cpp.

    Reimplemented in TQFile and TQSocket.

    int TQIODevice::flags () const

    @@ -397,7 +396,6 @@ binary data. Cannot be combined with IO_Raw.

    This virtual function must be reimplemented by all subclasses.

    See also close(). -

    Example: grapher/grapher.cpp.

    Reimplemented in TQFile and TQSocket.

    int TQIODevice::putch ( int ch ) [pure virtual]

    @@ -407,7 +405,6 @@ binary data. Cannot be combined with IO_Raw.

    This virtual function must be reimplemented by all subclasses.

    See also getch() and ungetch(). -

    Example: grapher/grapher.cpp.

    Reimplemented in TQFile and TQSocket.

    TQByteArray TQIODevice::readAll () [virtual]

    diff --git a/doc/html/tqmenubar.html b/doc/html/tqmenubar.html index 849e813e..04ebf263 100644 --- a/doc/html/tqmenubar.html +++ b/doc/html/tqmenubar.html @@ -235,7 +235,6 @@ menu bar is needed after items have been inserted. See TQWidget::hide() in order to deselect any selected item, and calls setUpLayout() for the main window. -

    Example: grapher/grapher.cpp.

    Reimplemented from TQWidget.

    void TQMenuBar::highlighted ( int id ) [signal]

    @@ -562,7 +561,6 @@ Reimplements TQWidget::show() in order to set u keyboard accelerators and to raise itself to the top of the widget stack. -

    Example: grapher/grapher.cpp.

    Reimplemented from TQWidget.


    Property Documentation

    bool defaultUp

    diff --git a/doc/html/tqmenudata.html b/doc/html/tqmenudata.html index 9d9448a6..d393fa40 100644 --- a/doc/html/tqmenudata.html +++ b/doc/html/tqmenudata.html @@ -647,7 +647,7 @@ unchecks the menu item with id id. Calls TQPopupMenu::setCheckable( TRUE ) if necessary.

    See also isItemChecked(). -

    Examples: canvas/canvas.cpp, grapher/grapher.cpp, mdi/application.cpp, menu/menu.cpp, progress/progress.cpp, scrollview/scrollview.cpp, and showimg/showimg.cpp. +

    Examples: canvas/canvas.cpp, mdi/application.cpp, menu/menu.cpp, progress/progress.cpp, scrollview/scrollview.cpp, and showimg/showimg.cpp.

    void TQMenuData::setItemEnabled ( int id, bool enable )

    If enable is TRUE, enables the menu item with identifier id; diff --git a/doc/html/tqmessagebox.html b/doc/html/tqmessagebox.html index 1d20e2bc..83bbb238 100644 --- a/doc/html/tqmessagebox.html +++ b/doc/html/tqmessagebox.html @@ -407,7 +407,7 @@ See the examples/menu/menu.cpp example.

    TQApplication provides this functionality as a slot.

    See also TQApplication::aboutTQt(). -

    Examples: action/application.cpp, application/application.cpp, chart/chartform.cpp, helpviewer/helpwindow.cpp, menu/menu.cpp, themes/themes.cpp, and trivial/trivial.cpp. +

    Examples: action/application.cpp, application/application.cpp, chart/chartform.cpp, helpviewer/helpwindow.cpp, menu/menu.cpp and themes/themes.cpp.

    void TQMessageBox::adjustSize () [virtual]

    Adjusts the size of the message box to fit the contents just before @@ -539,7 +539,6 @@ you specify an Escape button to prevent this from happening.

    Opens a modal message box directly using the specified parameters.

    Please use information(), warning(), question(), or critical() instead. -

    Example: grapher/grapher.cpp.

    bool TQMessageBox::query ( const TQString & caption, const TQString & text, const TQString & yesButtonText = TQString::null, const TQString & noButtonText = TQString::null, TQWidget * parent = 0, const char * = 0 ) [static]

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. diff --git a/doc/html/tqnp-h.html b/doc/html/tqnp-h.html deleted file mode 100644 index 3ee1e0cd..00000000 --- a/doc/html/tqnp-h.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - -tqnp.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    tqnp.h

    - -

    This is the verbatim text of the tqnp.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/tqnp.h   3.3.8   edited Jan 11 14:37 $
    -**
    -** Definition of TQt extension classes for Netscape Plugin support.
    -**
    -** Created : 970601
    -**
    -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the TQt GUI Toolkit.
    -**
    -** This file may be used under the terms of the GNU General Public
    -** License versions 2.0 or 3.0 as published by the Free Software
    -** Foundation and appearing in the file LICENSE.GPL included in the
    -** packaging of this file. Alternatively you may (at your option) use any
    -** later version of the GNU General Public License if such license has
    -** been publicly approved by Trolltech ASA (or its successors, if any)
    -** and the KDE Free TQt Foundation.
    -**
    -** Please review the following information to ensure GNU General
    -** Public Licensing requirements will be met:
    -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    -** If you are unsure which license is appropriate for your use, please
    -** review the following information:
    -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    -** or contact the sales department at sales@trolltech.com.
    -**
    -** This file may be used under the terms of the Q Public License as
    -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    -** included in the packaging of this file.  Licensees holding valid TQt
    -** Commercial licenses may use this file in accordance with the TQt
    -** Commercial License Agreement provided with the Software.
    -**
    -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    -** herein.
    -**
    -**********************************************************************/
    -
    -#ifndef TQNP_H
    -#define TQNP_H
    -
    -#ifndef QT_H
    -#include "tqwidget.h"
    -#endif // QT_H
    -
    -
    -struct _NPInstance;
    -struct _NPStream;
    -class TQNPInstance;
    -
    -class TQNPStream {
    -public:
    -    ~TQNPStream();
    -
    -    const char* url() const;
    -    uint end() const;
    -    uint lastModified() const;
    -
    -    const char* type() const;
    -    bool seekable() const;
    -    bool okay() const;
    -    bool complete() const;
    -
    -    void requestRead(int offset, uint length);
    -    int write( int len, void* buffer );
    -
    -    TQNPInstance* instance() { return inst; }
    -    TQNPStream(TQNPInstance*,const char*,_NPStream*,bool);
    -    void setOkay(bool);
    -    void setComplete(bool);
    -
    -private:
    -    TQNPInstance* inst;
    -    _NPStream* stream;
    -    TQString mtype;
    -    int seek:1;
    -    int isokay:1;
    -    int iscomplete:1;
    -};
    -
    -class TQNPWidget : public TQWidget {
    -    TQ_OBJECT
    -public:
    -    TQNPWidget();
    -    ~TQNPWidget();
    -    void enterEvent(TQEvent*);
    -    void leaveEvent(TQEvent*);
    -
    -    virtual void enterInstance();
    -    virtual void leaveInstance();
    -
    -    TQNPInstance* instance();
    -
    -private:
    -    _NPInstance* pi;
    -};
    -
    -class TQNPInstance : public TQObject {
    -    TQ_OBJECT
    -public:
    -    ~TQNPInstance();
    -
    -    // Arguments passed to EMBED
    -    int argc() const;
    -    const char* argn(int) const;
    -    const char* argv(int) const;
    -    enum Reason {
    -        ReasonDone = 0,
    -        ReasonBreak = 1,
    -        ReasonError = 2,
    -        ReasonUnknown = -1
    -    };
    -    const char* arg(const char* name) const;
    -    enum InstanceMode { Embed=1, Full=2, Background=3 };
    -    InstanceMode mode() const;
    -
    -    // The browser's name
    -    const char* userAgent() const;
    -
    -    // Your window.
    -    virtual TQNPWidget* newWindow();
    -    TQNPWidget* widget();
    -
    -    // Incoming streams (SRC=... tag).
    -    // Defaults ignore data.
    -    enum StreamMode { Normal=1, Seek=2, AsFile=3, AsFileOnly=4 };
    -    virtual bool newStreamCreated(TQNPStream*, StreamMode& smode);
    -    virtual int writeReady(TQNPStream*);
    -    virtual int write(TQNPStream*, int offset, int len, void* buffer);
    -    virtual void streamDestroyed(TQNPStream*);
    -
    -    void status(const char* msg);
    -    void getURLNotify(const char* url, const char* window=0, void*data=0);
    -
    -    void getURL(const char* url, const char* window=0);
    -    void postURL(const char* url, const char* window,
    -	     uint len, const char* buf, bool file);
    -
    -    TQNPStream* newStream(const char* mimetype, const char* window,
    -	bool as_file=FALSE);
    -    virtual void streamAsFile(TQNPStream*, const char* fname);
    -
    -    void* getJavaPeer() const;
    -
    -    virtual void notifyURL(const char* url, Reason r, void* notifyData);
    -    virtual bool printFullPage();
    -    virtual void print(TQPainter*);
    -
    -protected:
    -    TQNPInstance();
    -
    -private:
    -    friend class TQNPStream;
    -    _NPInstance* pi;
    -};
    -
    -
    -class TQNPlugin {
    -public:
    -    // Write this to return your TQNPlugin derived class.
    -    static TQNPlugin* create();
    -
    -    static TQNPlugin* actual();
    -
    -    virtual ~TQNPlugin();
    -
    -    void getVersionInfo(int& plugin_major, int& plugin_minor,
    -	     int& browser_major, int& browser_minor);
    -
    -    virtual TQNPInstance* newInstance()=0;
    -    virtual const char* getMIMEDescription() const=0;
    -    virtual const char* getPluginNameString() const=0;
    -    virtual const char* getPluginDescriptionString() const=0;
    -
    -    virtual void* getJavaClass();
    -    virtual void unuseJavaClass();
    -    void* getJavaEnv() const;
    -
    -protected:
    -    TQNPlugin();
    -};
    -
    -
    -#endif  // TQNP_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/tqnpinstance-members.html b/doc/html/tqnpinstance-members.html deleted file mode 100644 index de65fe31..00000000 --- a/doc/html/tqnpinstance-members.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - -TQNPInstance Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQNPInstance

    - -

    This is the complete list of member functions for -TQNPInstance, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/tqnpinstance.html b/doc/html/tqnpinstance.html deleted file mode 100644 index 8f474a66..00000000 --- a/doc/html/tqnpinstance.html +++ /dev/null @@ -1,320 +0,0 @@ - - - - -TQNPInstance Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQNPInstance Class Reference

    - -

    The TQNPInstance class provides a TQObject that is a web browser plugin. -More... -

    This class is part of the TQt Netscape Extension. -

    #include <tqnp.h> -

    Inherits TQObject. -

    List of all member functions. -

    Public Members

    -
      -
    • ~TQNPInstance ()
    • -
    • int argc () const
    • -
    • const char * argn ( int i ) const
    • -
    • const char * argv ( int i ) const
    • -
    • enum Reason { ReasonDone = 0, ReasonBreak = 1, ReasonError = 2, ReasonUnknown = -1 }
    • -
    • const char * arg ( const char * name ) const
    • -
    • enum InstanceMode { Embed = 1, Full = 2, Background = 3 }
    • -
    • InstanceMode mode () const
    • -
    • const char * userAgent () const
    • -
    • virtual TQNPWidget * newWindow ()
    • -
    • TQNPWidget * widget ()
    • -
    • enum StreamMode { Normal = 1, Seek = 2, AsFile = 3, AsFileOnly = 4 }
    • -
    • virtual bool newStreamCreated ( TQNPStream *, StreamMode & smode )
    • -
    • virtual int writeReady ( TQNPStream * )
    • -
    • virtual int write ( TQNPStream *, int offset, int len, void * buffer )
    • -
    • virtual void streamDestroyed ( TQNPStream * )
    • -
    • void status ( const char * msg )
    • -
    • void getURLNotify ( const char * url, const char * window = 0, void * data = 0 )
    • -
    • void getURL ( const char * url, const char * window = 0 )
    • -
    • void postURL ( const char * url, const char * window, uint len, const char * buf, bool file )
    • -
    • TQNPStream * newStream ( const char * mimetype, const char * window, bool as_file = FALSE )
    • -
    • virtual void streamAsFile ( TQNPStream *, const char * fname )
    • -
    • void * getJavaPeer () const
    • -
    • virtual void notifyURL ( const char * url, Reason r, void * notifyData )
    • -
    • virtual bool printFullPage ()
    • -
    • virtual void print ( TQPainter * )
    • -
    -

    Protected 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 TQNPInstance class provides a TQObject that is a web browser plugin. -

    -

    Deriving from TQNPInstance creates an object that represents a -single <EMBED> tag in an HTML document. -

    The TQNPInstance is responsible for creating an appropriate -TQNPWidget window if required (not all plugins have windows), and -for interacting with the input/output facilities intrinsic to -plugins. -

    Note that there is absolutely no guarantee regarding the order -in which functions are called. Sometimes the browser will call -newWindow() first, at other times, newStreamCreated() will be -called first (assuming the <EMBED> tag has a SRC parameter). -

    None of TQt's GUI functionality may be used until after the -first call to newWindow(). This includes any use of TQPaintDevice -(i.e. TQPixmap, TQWidget, and all subclasses), TQApplication, anything -related to TQPainter (TQBrush, etc.), fonts, TQMovie, TQToolTip, etc. -Useful classes which specifically can be used are TQImage, -TQFile, and TQBuffer. -

    This restriction can easily be accommodated by structuring your -plugin so that the task of the TQNPInstance is to gather data, -while the task of the TQNPWidget is to provide a graphical -interface to that data. - -


    Member Type Documentation

    -

    TQNPInstance::InstanceMode

    - -

    This enum type provides TQt-style names for three #defines in -npapi.h: -

      -
    • TQNPInstance::Embed - corresponds to NP_EMBED -
    • TQNPInstance::Full - corresponds to NP_FULL -
    • TQNPInstance::Background - corresponds to NP_BACKGROUND -

    -

    TQNPInstance::Reason

    - -
      -
    • TQNPInstance::ReasonDone -
    • TQNPInstance::ReasonBreak -
    • TQNPInstance::ReasonError -
    • TQNPInstance::ReasonUnknown -
    -

    TQNPInstance::StreamMode

    - -
      -
    • TQNPInstance::Normal -
    • TQNPInstance::Seek -
    • TQNPInstance::AsFile -
    • TQNPInstance::AsFileOnly -
    -

    Member Function Documentation

    -

    TQNPInstance::TQNPInstance () [protected] -

    -Creates a TQNPInstance. -

    Can only be called from within a derived class created within -TQNPlugin::newInstance(). - -

    TQNPInstance::~TQNPInstance () -

    -Called when the plugin instance is about to be deleted. - -

    const char * TQNPInstance::arg ( const char * name ) const -

    -Returns the value of the named arguments, or 0 if no argument -called name appears in the <EMBED> tag of this instance. -If the argument appears, but has no value assigned, the empty -string is returned. In summary: -

    -
    Tag Result -
    <EMBED ...> arg("FOO") == 0 -
    <EMBED FOO ...> arg("FOO") == "" -
    <EMBED FOO=BAR ...> arg("FOO") == "BAR" -
    - -

    int TQNPInstance::argc () const -

    -Returns the number of arguments to the instance. Note that you -should not normally rely on the ordering of arguments, and -note that the SGML specification does not permit multiple -arguments with the same name. -

    See also arg() and argn(). - -

    const char * TQNPInstance::argn ( int i ) const -

    -Returns the name of the i-th argument. -

    See also argc() and argv(). - -

    const char * TQNPInstance::argv ( int i ) const -

    -Returns the value of the i-th argument. -

    \as argc(), arg() - -

    void * TQNPInstance::getJavaPeer () const -

    -Returns the Java object associated with the plugin instance, an -object of the plugin's Java - class, or 0 if the plug-in does not have a Java class, -Java is disabled, or an error occurred. -

    The return value is actually a jref we use void* so as to -avoid burdening plugins which do not require Java. -

    See also TQNPlugin::getJavaClass() and TQNPlugin::getJavaEnv(). - -

    void TQNPInstance::getURL ( const char * url, const char * window = 0 ) -

    -Requests that the url be retrieved and sent to the named window. See Netscape's JavaScript documentation for an explanation -of window names. - -

    void TQNPInstance::getURLNotify ( const char * url, const char * window = 0, void * data = 0 ) -

    -Requests that the given url be retrieved and sent to -the named window. See Netscape's JavaScript documentation for -an explanation of window names. Passes the arguments including data to NPN_GetURLNotify. -

    -Netscape: NPN_GetURLNotify method - -

    InstanceMode TQNPInstance::mode () const -

    -Returns the mode of the plugin. - -

    TQNPStream * TQNPInstance::newStream ( const char * mimetype, const char * window, bool as_file = FALSE ) -

    -

    This function is under development and is subject to change. -

    This function is not tested. -

    Requests the creation of a new data stream from the plugin. -The MIME type and window are passed in mimetype and window. -as_file holds the AsFileOnly flag. It is an interface to the -NPN_NewStream function of the Netscape Plugin API. - -

    bool TQNPInstance::newStreamCreated ( TQNPStream *, StreamMode & smode ) [virtual] -

    - -

    This function is called when a new stream has been created. The -instance should return TRUE if it accepts the processing of the -stream. If the instance requires the stream as a file, it should -set smode to AsFileOnly, in which case the data will be -delivered some time later to the streamAsFile() function. -Otherwise, the data will be delivered in chunks to the write() -function, which must consume at least as much data as returned -by the most recent call to writeReady(). -

    Note that the AsFileOnly method is not supported by Netscape -2.0 and MSIE 3.0. -

    The default implementation accepts any stream. - -

    TQNPWidget * TQNPInstance::newWindow () [virtual] -

    -Called at most once, at some time after the TQNPInstance is -created. If the plugin requires a window, this function should -return a derived class of TQNPWidget that provides the required -interface. - -

    Example: grapher/grapher.cpp. -

    void TQNPInstance::notifyURL ( const char * url, Reason r, void * notifyData ) [virtual] -

    -

    This function is under development and is subject to change. -

    This function is not tested. -

    Called whenever a url is notified after a call to -NPN_GetURLNotify with notifyData. The reason is given in r. -

    It is an encapsulation of the NPP_URLNotify function of the -Netscape Plugin API. -

    See also: -Netscape: NPP_URLNotify method - -

    void TQNPInstance::postURL ( const char * url, const char * window, uint len, const char * buf, bool file ) -

    -

    This function is under development and is subject to change. -

    This function is not tested. -

    It is an interface to the NPN_PostURL function of the Netscape -Plugin API. -

    Passes url, window, buf, len, and file to -NPN_PostURL. - -

    void TQNPInstance::print ( TQPainter * ) [virtual] -

    -

    This function is under development and is subject to change. -

    This function is not tested. -

    Print the instance embedded in a page. -

    It is an encapsulation of the NPP_Print function of the Netscape -Plugin API. - -

    bool TQNPInstance::printFullPage () [virtual] -

    -

    This function is under development and is subject to change. -

    This function is not tested. -

    It is an encapsulation of the NPP_Print function of the Netscape -Plugin API. - -

    void TQNPInstance::status ( const char * msg ) -

    -Sets the status message in the browser containing this instance to -msg. - -

    void TQNPInstance::streamAsFile ( TQNPStream *, const char * fname ) [virtual] -

    -Called when a stream is delivered as a single file called fname -rather than as chunks. This may be simpler for a plugin to deal -with, but precludes any incremental behavior. -

    Note that the AsFileOnly method is not supported by Netscape -2.0 and MSIE 3.0. -

    See also newStreamCreated() and newStream(). - -

    void TQNPInstance::streamDestroyed ( TQNPStream * ) [virtual] -

    -Called when a stream is destroyed. At this point, the stream may -be complete() and okay(). If it is not okay(), then an error has -occurred. If it is okay(), but not complete(), then the user has -cancelled the transmission; do not give an error message in this -case. - -

    const char * TQNPInstance::userAgent () const -

    -Returns the user agent (browser name) containing this instance. - -

    TQNPWidget * TQNPInstance::widget () -

    -Returns the plugin window created by newWindow(), if any. - -

    int TQNPInstance::write ( TQNPStream *, int offset, int len, void * buffer ) [virtual] -

    - -

    Called when incoming data is available for processing by the -instance. The instance must consume at least the amount that it -returned in the most recent call to writeReady(), but it may -consume up to the amount given by len. buffer is the data -available for consumption. The offset argument is merely an -informational value indicating the total amount of data that has -been consumed in prior calls. -

    This function should return the amount of data actually consumed. - -

    Example: grapher/grapher.cpp. -

    int TQNPInstance::writeReady ( TQNPStream * ) [virtual] -

    -Returns the minimum amount of data the instance is willing to -receive from the given stream. -

    The default returns a very large value. - - -


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


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/tqnplugin-members.html b/doc/html/tqnplugin-members.html deleted file mode 100644 index ecbf9a1c..00000000 --- a/doc/html/tqnplugin-members.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -TQNPlugin Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQNPlugin

    - -

    This is the complete list of member functions for -TQNPlugin, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/tqnplugin.html b/doc/html/tqnplugin.html deleted file mode 100644 index 7ae91600..00000000 --- a/doc/html/tqnplugin.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - -TQNPlugin Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQNPlugin Class Reference

    - -

    The TQNPlugin class provides the main factory for plugin objects. -More... -

    This class is part of the TQt Netscape Extension. -

    #include <tqnp.h> -

    List of all member functions. -

    Public Members

    - -

    Static Public Members

    - -

    Protected 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 TQNPlugin class provides the main factory for plugin objects. -

    -

    This class is the heart of the plugin. One instance of this object -is created when the plugin is first needed, by calling -TQNPlugin::create(), which must be implemented in your plugin code -to return some derived class of TQNPlugin. The one TQNPlugin object -creates all TQNPInstance instances for a web browser running in a -single process. -

    Additionally, if TQt is linked to the plugin as a dynamic library, -only one instance of TQApplication will exist across all plugins that have been made with TQt. So, your plugin should tread lightly -on global settings. Do not, for example, use -TQApplication::setFont() - that will change the font in every -widget of every TQt-based plugin currently loaded! - -


    Member Function Documentation

    -

    TQNPlugin::TQNPlugin () [protected] -

    -Creates a TQNPlugin. This may only be used by the constructor -of the class, derived from TQNPlugin, that is returned by your -plugin's implementation of the TQNPlugin::create() function. - -

    TQNPlugin::~TQNPlugin () [virtual] -

    -Destroys the TQNPlugin. This is called by the plugin binding code -just before the plugin is about to be unloaded from memory. If -newWindow() has been called, a TQApplication will still exist at -this time, but will be deleted shortly after, just before the plugin -is deleted. - -

    TQNPlugin * TQNPlugin::actual () [static] -

    -Returns the plugin most recently returned by TQNPlugin::create(). - -

    TQNPlugin * TQNPlugin::create () [static] -

    - -

    This function must be implemented by your plugin code. It should return a -derived class of TQNPlugin. - -

    void * TQNPlugin::getJavaClass () [virtual] -

    -Override this function to return a reference to the Java class that represents -the plugin. The default returns 0, indicating no class. -

    If you override this class, you must also override -TQNPlugin::unuseJavaClass(). -

    The return value is actually a jref; we use void* so as to -avoid burdening plugins which do not require Java. -

    See also getJavaEnv() and TQNPInstance::getJavaPeer(). - -

    void * TQNPlugin::getJavaEnv () const -

    -Returns a pointer to the Java execution environment, or 0 if -either Java is disabled or an error occurred. -

    The return value is actually a JRIEnv*; we use void* so as -to avoid burdening plugins which do not require Java. -

    See also getJavaClass() and TQNPInstance::getJavaPeer(). - -

    const char * TQNPlugin::getMIMEDescription () const [pure virtual] -

    - -

    Override this function to return the MIME description of the data formats -supported by your plugin. The format of this string is shown by -the following example: -

    -    const char* getMIMEDescription() const
    -    {
    -        return "image/x-png:png:PNG Image;"
    -               "image/png:png:PNG Image;"
    -               "image/x-portable-bitmap:pbm:PBM Image;"
    -               "image/x-portable-graymap:pgm:PGM Image;"
    -               "image/x-portable-pixmap:ppm:PPM Image;"
    -               "image/bmp:bmp:BMP Image;"
    -               "image/x-ms-bmp:bmp:BMP Image;"
    -               "image/x-xpixmap:xpm:XPM Image;"
    -               "image/xpm:xpm:XPM Image";
    -    }
    -
    - - -

    const char * TQNPlugin::getPluginDescriptionString () const [pure virtual] -

    - -

    Returns a pointer to the plain-text description of the plugin. - -

    const char * TQNPlugin::getPluginNameString () const [pure virtual] -

    - -

    Returns a pointer to the plain-text name of the plugin. - -

    void TQNPlugin::getVersionInfo ( int & plugin_major, int & plugin_minor, int & browser_major, int & browser_minor ) -

    -Populates *plugin_major and *plugin_minor with the -version of the plugin API and populates *browser_major and -*browser_minor with the version of the web browser. - -

    TQNPInstance * TQNPlugin::newInstance () [pure virtual] -

    - -

    Override this function to return an appropriate derived class of -TQNPInstance. - -

    void TQNPlugin::unuseJavaClass () [virtual] -

    -This function is called when the plugin is shutting down. The -function should unuse the Java class returned earlier by -getJavaClass(). - - -

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


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/tqnpstream-members.html b/doc/html/tqnpstream-members.html deleted file mode 100644 index f34408d6..00000000 --- a/doc/html/tqnpstream-members.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -TQNPStream Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQNPStream

    - -

    This is the complete list of member functions for -TQNPStream, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/tqnpstream.html b/doc/html/tqnpstream.html deleted file mode 100644 index 2c6437a7..00000000 --- a/doc/html/tqnpstream.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - -TQNPStream Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQNPStream Class Reference

    - -

    The TQNPStream class provides a stream of data provided to a TQNPInstance by the browser. -More... -

    This class is part of the TQt Netscape Extension. -

    #include <tqnp.h> -

    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 TQNPStream class provides a stream of data provided to a TQNPInstance by the browser. -

    -

    Note that this is neither a TQTextStream nor a TQDataStream. -

    See also TQNPInstance::write() and TQNPInstance::newStreamCreated(). - -


    Member Function Documentation

    -

    TQNPStream::TQNPStream ( TQNPInstance * in, const char * mt, _NPStream * st, bool se ) -

    -Creates a stream. Plugins should not call this; they should call -TQNPInstance::newStream() if they need a stream. -

    Takes a TQNPInstance in, MIME type mt, a pointer to an -_NPStream st and a seekable flag se. - -

    TQNPStream::~TQNPStream () -

    -Destroys the stream. - -

    bool TQNPStream::complete () const -

    -Returns TRUE if the stream has received all the data from the -source; otherwise returns FALSE. - -

    uint TQNPStream::end () const -

    -Returns the length of the stream in bytes. The function might -return 0 for streams of unknown length. - -

    TQNPInstance * TQNPStream::instance () -

    - -

    Returns the TQNPInstance for which this stream was created. - -

    uint TQNPStream::lastModified () const -

    -Returns the time when the source of the stream was last modified. - -

    bool TQNPStream::okay () const -

    -Returns TRUE if no errors have occurred on the stream; otherwise -returns FALSE. - -

    void TQNPStream::requestRead ( int offset, uint length ) -

    -Requests the section of the stream, of length bytes from offset, be sent to the TQNPInstance::write() function of the -instance() of this stream. - -

    bool TQNPStream::seekable () const -

    -Returns TRUE if the stream is seekable; otherwise returns FALSE. - -

    const char * TQNPStream::type () const -

    -Returns the MIME type of the stream. - -

    const char * TQNPStream::url () const -

    -Returns the URL from which the stream was created. - -

    int TQNPStream::write ( int len, void * buffer ) -

    -Writes len bytes from buffer to the stream. - - -

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


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/tqnpwidget-members.html b/doc/html/tqnpwidget-members.html deleted file mode 100644 index 1fee40d0..00000000 --- a/doc/html/tqnpwidget-members.html +++ /dev/null @@ -1,340 +0,0 @@ - - - - - -TQNPWidget Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQNPWidget

    - -

    This is the complete list of member functions for -TQNPWidget, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/tqnpwidget.html b/doc/html/tqnpwidget.html deleted file mode 100644 index 846853bb..00000000 --- a/doc/html/tqnpwidget.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - -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
    -
    - diff --git a/doc/html/tqobject.html b/doc/html/tqobject.html index 62dcefb8..74d40b68 100644 --- a/doc/html/tqobject.html +++ b/doc/html/tqobject.html @@ -36,7 +36,7 @@ body { background: #ffffff; color: black; }

    All the functions in this class are reentrant when TQt is built with thread support.

    #include <tqobject.h>

    Inherits TQt. --

    Inherited by TQAccel, TQAccessibleObject, TQAction, TQApplication, TQAssistantClient, TQDataPump, TQWidget, TQCanvas, TQStyle, TQClipboard, TQDns, TQLayout, TQDragObject, TQEditorFactory, TQEventLoop, TQFileIconProvider, TQNetworkProtocol, TQNetworkOperation, TQNPInstance, TQObjectCleanupHandler, TQProcess, TQServerSocket, TQSessionManager, TQSignal, TQSignalMapper, TQSocket, TQSocketNotifier, TQSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, TQTimer, TQToolTipGroup, TQTranslator, TQUrlOperator, and TQValidator. +-

    Inherited by TQAccel, TQAccessibleObject, TQAction, TQApplication, TQAssistantClient, TQDataPump, TQWidget, TQCanvas, TQStyle, TQClipboard, TQDns, TQLayout, TQDragObject, TQEditorFactory, TQEventLoop, TQFileIconProvider, TQNetworkProtocol, TQNetworkOperation, TQObjectCleanupHandler, TQProcess, TQServerSocket, TQSessionManager, TQSignal, TQSignalMapper, TQSocket, TQSocketNotifier, TQSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, TQTimer, TQToolTipGroup, TQTranslator, TQUrlOperator, and TQValidator.

    List of all member functions.

    Public Members