From 252a2ec8b0f0f9cf20c947737087b24a8185b588 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 10 Jul 2024 18:56:16 +0900 Subject: Rename IO and network class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- examples/tqdir/tqdir.h | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 examples/tqdir/tqdir.h (limited to 'examples/tqdir/tqdir.h') diff --git a/examples/tqdir/tqdir.h b/examples/tqdir/tqdir.h new file mode 100644 index 000000000..cbe4f68b5 --- /dev/null +++ b/examples/tqdir/tqdir.h @@ -0,0 +1,98 @@ +/**************************************************************************** +** +** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. +** +** This file is part of an example program for TQt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#ifndef TQDIREXAMPLE_H +#define TQDIREXAMPLE_H + +#include +#include +#include +#include +#include +#include +#include + +class TQMultiLineEdit; +class TQTextView; +class DirectoryView; +class TQSpinBox; +class TQShowEvent; +class TQPopupMenu; + +class PixmapView : public TQScrollView +{ + TQ_OBJECT + +public: + PixmapView( TQWidget *parent ); + void setPixmap( const TQPixmap &pix ); + void drawContents( TQPainter *p, int, int, int, int ); + +private: + TQPixmap pixmap; + +}; + +class Preview : public TQWidgetStack +{ + TQ_OBJECT + +public: + Preview( TQWidget *parent ); + void showPreview( const TQUrl &u, int size ); + +private: + TQMultiLineEdit *normalText; + TQTextView *html; + PixmapView *pixmap; + +}; + +class PreviewWidget : public TQVBox, + public TQFilePreview +{ + TQ_OBJECT + +public: + PreviewWidget( TQWidget *parent ); + void previewUrl( const TQUrl &u ); + +private: + TQSpinBox *sizeSpinBox; + Preview *preview; + +}; + +class CustomFileDialog : public TQFileDialog +{ + TQ_OBJECT + +public: + CustomFileDialog(); + ~CustomFileDialog(); + +protected: + void showEvent( TQShowEvent *e ); + +public slots: + void setDir2( const TQString & ); + +private slots: + void bookmarkChosen( int i ); + void goHome(); + +private: + DirectoryView *dirView; + TQPopupMenu *bookmarkMenu; + TQStringList bookmarkList; + int addId; + +}; + +#endif -- cgit v1.2.1