kexi

KexiStartupFileDialogBase_win.h
1/* This file is part of the KDE project
2 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _KexiStartupFileDialogBase_win_h_
21#define _KexiStartupFileDialogBase_win_h_
22
23#include <tqfiledialog.h>
24#include <tqpushbutton.h>
25
26class KexiStartupFileDialogBasePrivate;
27
32class KexiStartupFileDialogBase : public TQFileDialog
33{
34public:
35 KexiStartupFileDialogBase(const TQString & dirName, const TQString & filter = TQString(),
36 TQWidget * parent = 0, const char * name = 0, bool modal = false );
37 ~KexiStartupFileDialogBase();
38
39 TQPushButton * okButton() const { return m_okBtn; }
40
41 void clearFilter();
42 void setFilter(const TQString& filter);
43 void setOperationMode( KFileDialog::OperationMode mode );
44 void setMode( KFile::Mode m );
45 void setMode( unsigned int m );
46 TQString currentFilter() const;
47 void setMimeFilter( const TQStringList& mimeTypes, const TQString& defaultType = TQString() );
48
49 KFile::Mode mode() const;
50
51protected:
52 void init(const TQString& startDir, const TQString& filter, TQWidget* widget);
53 void updateAutoSelectExtension() {};
54
57 TQString realStartDir(const TQString& startDir);
58
59 void saveLastVisitedPath(const TQString& path);
60
61 TQPushButton* m_okBtn;
62 TQLineEdit* m_lineEdit;
64 KexiStartupFileDialogBasePrivate* d;
65};
66
67#endif
TQString m_lastVisitedPathsVariable
Used by win32;.
TQString realStartDir(const TQString &startDir)