From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- examples/qdir/ntqdir.h | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++ examples/qdir/qdir.cpp | 40 ++++++++++----------- examples/qdir/qdir.h | 98 -------------------------------------------------- examples/qdir/qdir.pro | 2 +- 4 files changed, 119 insertions(+), 119 deletions(-) create mode 100644 examples/qdir/ntqdir.h delete mode 100644 examples/qdir/qdir.h (limited to 'examples/qdir') diff --git a/examples/qdir/ntqdir.h b/examples/qdir/ntqdir.h new file mode 100644 index 000000000..9b591345e --- /dev/null +++ b/examples/qdir/ntqdir.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 +{ + Q_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 +{ + Q_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 +{ + Q_OBJECT + +public: + PreviewWidget( TQWidget *parent ); + void previewUrl( const TQUrl &u ); + +private: + TQSpinBox *sizeSpinBox; + Preview *preview; + +}; + +class CustomFileDialog : public TQFileDialog +{ + Q_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 diff --git a/examples/qdir/qdir.cpp b/examples/qdir/qdir.cpp index f936a31f0..1902d9e73 100644 --- a/examples/qdir/qdir.cpp +++ b/examples/qdir/qdir.cpp @@ -8,26 +8,26 @@ *****************************************************************************/ #include "../dirview/dirview.h" -#include "qdir.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "ntqdir.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/examples/qdir/qdir.h b/examples/qdir/qdir.h deleted file mode 100644 index 86dde7072..000000000 --- a/examples/qdir/qdir.h +++ /dev/null @@ -1,98 +0,0 @@ -/**************************************************************************** -** -** 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 -{ - Q_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 -{ - Q_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 -{ - Q_OBJECT - -public: - PreviewWidget( TQWidget *parent ); - void previewUrl( const TQUrl &u ); - -private: - TQSpinBox *sizeSpinBox; - Preview *preview; - -}; - -class CustomFileDialog : public TQFileDialog -{ - Q_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 diff --git a/examples/qdir/qdir.pro b/examples/qdir/qdir.pro index fa7a0f685..09e7ea546 100644 --- a/examples/qdir/qdir.pro +++ b/examples/qdir/qdir.pro @@ -6,5 +6,5 @@ DEPENDPATH = ../../include REQUIRES = full-config -HEADERS = qdir.h ../dirview/dirview.h +HEADERS = ntqdir.h ../dirview/dirview.h SOURCES = qdir.cpp ../dirview/dirview.cpp -- cgit v1.2.1