summaryrefslogtreecommitdiffstats
path: root/extensions/nsplugin/examples/trivial
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-10-03 17:43:38 +0900
committerMichele Calgaro <[email protected]>2024-10-03 17:43:38 +0900
commit6964feed838dec70e7743ea90b390e4ae706d3c9 (patch)
tree6faf8862c19e31a988e9b5a43485a9f23b89d4a8 /extensions/nsplugin/examples/trivial
parent81288cfcb6a543d96a1ee4bf1d7d3c26231f517f (diff)
downloadtqt3-6964feed838dec70e7743ea90b390e4ae706d3c9.tar.gz
tqt3-6964feed838dec70e7743ea90b390e4ae706d3c9.zip
Remove obsolete Netscape plugin and its classes
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'extensions/nsplugin/examples/trivial')
-rw-r--r--extensions/nsplugin/examples/trivial/trivial.cpp67
-rw-r--r--extensions/nsplugin/examples/trivial/trivial.def9
-rw-r--r--extensions/nsplugin/examples/trivial/trivial.doc22
-rw-r--r--extensions/nsplugin/examples/trivial/trivial.pro12
-rw-r--r--extensions/nsplugin/examples/trivial/trivial.rc36
5 files changed, 0 insertions, 146 deletions
diff --git a/extensions/nsplugin/examples/trivial/trivial.cpp b/extensions/nsplugin/examples/trivial/trivial.cpp
deleted file mode 100644
index d2c57843d..000000000
--- a/extensions/nsplugin/examples/trivial/trivial.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-// TQt stuff
-#include "tqnp.h"
-#include <tqpainter.h>
-#include <tqmessagebox.h>
-
-class Trivial : public TQNPWidget {
- TQ_OBJECT
-public:
- void mouseReleaseEvent(TQMouseEvent* event)
- {
- TQMessageBox::aboutTQt(this);
- }
-
- void paintEvent(TQPaintEvent* event)
- {
- TQPainter p(this);
- p.setClipRect(event->rect());
- int w = width();
- p.drawRect(rect());
- p.drawText(w/8, 0, w-w/4, height(), AlignCenter|WordBreak, "Trivial!");
- }
-};
-
-class TrivialInstance : public TQNPInstance {
- TQ_OBJECT
-public:
- TQNPWidget* newWindow()
- {
- return new Trivial;
- }
-
- void print(TQPainter* p)
- {
- p->drawText(0,0,"Hello");
- }
-};
-
-class TrivialPlugin : public TQNPlugin {
-public:
- TQNPInstance* newInstance()
- {
- return new TrivialInstance;
- }
-
- const char* getMIMEDescription() const
- {
- return "trivial/very:xxx:Trivial and useless";
- }
-
- const char * getPluginNameString() const
- {
- return "Trivial TQt-based Plugin";
- }
-
- const char * getPluginDescriptionString() const
- {
- return "A TQt-based LiveConnected plug-in that does nothing";
- }
-
-};
-
-TQNPlugin* TQNPlugin::create()
-{
- return new TrivialPlugin;
-}
-
-#include "trivial.moc"
diff --git a/extensions/nsplugin/examples/trivial/trivial.def b/extensions/nsplugin/examples/trivial/trivial.def
deleted file mode 100644
index 1732fc67c..000000000
--- a/extensions/nsplugin/examples/trivial/trivial.def
+++ /dev/null
@@ -1,9 +0,0 @@
-LIBRARY nptrivial.dll
-
-CODE PRELOAD MOVEABLE DISCARDABLE
-DATA PRELOAD SINGLE
-
-EXPORTS
- NP_GetEntryPoints @1
- NP_Initialize @2
- NP_Shutdown @3
diff --git a/extensions/nsplugin/examples/trivial/trivial.doc b/extensions/nsplugin/examples/trivial/trivial.doc
deleted file mode 100644
index b1f1b946d..000000000
--- a/extensions/nsplugin/examples/trivial/trivial.doc
+++ /dev/null
@@ -1,22 +0,0 @@
-/*! \page trivial-nsplugin-example.html
- \ingroup nsplugin-examples
-
- \title Trivial Example
-
- This example is trivial, and thus useful for
- investigating problems you might have installing the
- extension.
-
- To build the example, you must first build the
- \link netscape-plugin.html TQt Netscape Plugin Extension\endlink library.
- Then type \c{make} in \c{extensions/nsplugin/examples/trivial/}
- and copy the resulting \c{trivial.so} or \c{nptrivial.dll}
- to the Plugins directory of your WWW browser.
-
- <EMBED TYPE=trivial/very WIDTH=100 HEIGHT=100>
-
- <hr>
- Implementation:
-
- \include trivial/trivial.cpp
-*/
diff --git a/extensions/nsplugin/examples/trivial/trivial.pro b/extensions/nsplugin/examples/trivial/trivial.pro
deleted file mode 100644
index d61bf7830..000000000
--- a/extensions/nsplugin/examples/trivial/trivial.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = lib
-TARGET = trivial
-win32:TARGET = nptrivial
-
-CONFIG += qt dll release
-LIBS += -lqnp
-unix:LIBS += -lXt
-
-HEADERS =
-SOURCES = trivial.cpp
-DEF_FILE = trivial.def
-RC_FILE = trivial.rc
diff --git a/extensions/nsplugin/examples/trivial/trivial.rc b/extensions/nsplugin/examples/trivial/trivial.rc
deleted file mode 100644
index 481cf0878..000000000
--- a/extensions/nsplugin/examples/trivial/trivial.rc
+++ /dev/null
@@ -1,36 +0,0 @@
-
-1 VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x2L
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904e4"
- BEGIN
- VALUE "CompanyName", "Trolltech\0"
- VALUE "FileDescription", "trivial\0"
- VALUE "FileExtents", "xxx\0"
- VALUE "FileOpenName", "Nothing (*.xxx)\0"
- VALUE "FileVersion", "1, 0, 0, 1\0"
- VALUE "InternalName", "trivial\0"
- VALUE "LegalCopyright", "Copyright � 1997-2006 Trolltech ASA\0"
- VALUE "MIMEType", "trivial/very\0"
- VALUE "OriginalFilename", "trivial.dll\0"
- VALUE "ProductName", "Trolltech trivial\0"
- VALUE "ProductVersion", "1, 0, 0, 1\0"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x409, 1252
- END
-END