diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 15:56:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 15:56:40 -0600 |
commit | e16866e072f94410321d70daedbcb855ea878cac (patch) | |
tree | ee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /kdeui/tests/kdockwidgetdemo.h | |
parent | a58c20c1a7593631a1b50213c805507ebc16adaf (diff) | |
download | tdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip |
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'kdeui/tests/kdockwidgetdemo.h')
-rw-r--r-- | kdeui/tests/kdockwidgetdemo.h | 164 |
1 files changed, 0 insertions, 164 deletions
diff --git a/kdeui/tests/kdockwidgetdemo.h b/kdeui/tests/kdockwidgetdemo.h deleted file mode 100644 index b6f029cd5..000000000 --- a/kdeui/tests/kdockwidgetdemo.h +++ /dev/null @@ -1,164 +0,0 @@ -#ifndef KDOCKWIDGETDEMO_H -#define KDOCKWIDGETDEMO_H - -#include <kdockwidget.h> - -#include <tqdialog.h> -#include <tqlistview.h> -#include <tqstring.h> -#include <tqfile.h> -#include <tqfileinfo.h> -#include <tqtimer.h> -#include <tqscrollview.h> -#include <tqfiledialog.h> -#include <tqwidgetstack.h> -#include <tqvbox.h> -#include <tqurl.h> -#include <tqpixmap.h> - -class TQMultiLineEdit; -class TQTextView; -class TQToolButton; -class TQSpinBox; -class TQShowEvent; -class TQPopupMenu; - -class DirectoryView; -class CustomFileDialog; -class Preview; -class DirectoryView; - -class SFileDialog : public TQDialog -{Q_OBJECT - -public: - SFileDialog( TQString initially = TQString::null, - const TQStringList& filter = "All Files ( * )", const char* name = 0 ); - ~SFileDialog(); - - static TQString getOpenFileName( TQString initially = TQString::null, - const TQStringList& filter = "All Files ( * )", - const TQString caption = TQString::null, const char* name = 0 ); - - static TQStringList getOpenFileNames( TQString initially = TQString::null, - const TQStringList& filter = "All Files ( * )", - const TQString caption = TQString::null, const char* name = 0 ); - - -protected: - void showEvent( TQShowEvent *e ); - -protected slots: - void dockChange(); - void setDockDefaultPos( KDockWidget* ); - void changeDir( const TQString& ); - -private: - DirectoryView* dirView; - CustomFileDialog* fd; - Preview* preview; - - KDockManager* dockManager; - KDockWidget* d_dirView; - KDockWidget* d_preview; - KDockWidget* d_fd; - - TQToolButton *b_tree; - TQToolButton *b_preview; -}; -/******************************************************************************************************/ -class Directory : public TQListViewItem -{ -public: - Directory( TQListView * parent, const TQString& filename ); - Directory( Directory * parent, const TQString& filename ); - - TQString text( int column ) const; - - TQString fullName(); - - void setOpen( bool ); - void setup(); - -private: - TQFile f; - Directory * p; - bool readable; -}; - -class DirectoryView : public TQListView -{Q_OBJECT -public: - DirectoryView( TQWidget *parent = 0, const char *name = 0 ); - virtual void setOpen ( TQListViewItem *, bool ); - - TQString selectedDir(); - -public slots: - void setDir( const TQString & ); - -signals: - void folderSelected( const TQString & ); - -protected slots: - void slotFolderSelected( TQListViewItem * ); - -private: - TQString fullPath(TQListViewItem* item); -}; -/******************************************************************************************************/ -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 ); - -public slots: - void showPreview( const TQString& ); - -private: - TQMultiLineEdit *normalText; - TQTextView *html; - PixmapView *pixmap; -}; - -class CustomFileDialog : public TQFileDialog -{Q_OBJECT -public: - CustomFileDialog( TQWidget* parent ); - ~CustomFileDialog(); - - void addToolButton( TQButton * b, bool separator = false ){ TQFileDialog::addToolButton(b,separator); } - void setBookmark( TQStringList& ); - TQStringList getBookmark(){ return bookmarkList; } - -public slots: - void setDir2( const TQString & ); - -signals: - void signalDone( int ); - -protected slots: - void bookmarkChosen( int i ); - void goHome(); - virtual void done( int ); - -private: - TQPopupMenu *bookmarkMenu; - TQStringList bookmarkList; - int addId, clearId; -}; - -#endif - - |