1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2002-04-05 10:11:37 +00:00
|
|
|
// Name: wx/msw/dirdlg.h
|
1998-05-20 14:12:05 +00:00
|
|
|
// Purpose: wxDirDialog class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 23:52:45 +00:00
|
|
|
#ifndef _WX_DIRDLG_H_
|
|
|
|
#define _WX_DIRDLG_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2003-08-09 12:38:21 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1998-05-20 14:12:05 +00:00
|
|
|
#pragma interface "dirdlg.h"
|
|
|
|
#endif
|
|
|
|
|
2002-04-05 10:11:37 +00:00
|
|
|
class WXDLLEXPORT wxDirDialog : public wxDialog
|
1998-05-20 14:12:05 +00:00
|
|
|
{
|
|
|
|
public:
|
2002-04-05 10:11:37 +00:00
|
|
|
wxDirDialog(wxWindow *parent,
|
2002-05-04 12:38:51 +00:00
|
|
|
const wxString& message = wxDirSelectorPromptStr,
|
2002-04-05 10:11:37 +00:00
|
|
|
const wxString& defaultPath = wxEmptyString,
|
2004-08-13 23:56:57 +00:00
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
2002-05-04 12:38:51 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxString& name = wxDirDialogNameStr);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2002-04-05 10:11:37 +00:00
|
|
|
void SetMessage(const wxString& message) { m_message = message; }
|
2002-04-05 20:20:32 +00:00
|
|
|
void SetPath(const wxString& path);
|
2003-02-01 23:30:53 +00:00
|
|
|
void SetStyle(long style) { SetWindowStyle(style); }
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2002-04-05 10:11:37 +00:00
|
|
|
wxString GetMessage() const { return m_message; }
|
|
|
|
wxString GetPath() const { return m_path; }
|
2003-02-01 23:30:53 +00:00
|
|
|
long GetStyle() const { return GetWindowStyle(); }
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2002-04-05 10:11:37 +00:00
|
|
|
virtual int ShowModal();
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
wxString m_message;
|
|
|
|
wxString m_path;
|
2002-04-05 10:11:37 +00:00
|
|
|
|
|
|
|
private:
|
2003-07-22 00:24:07 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDirDialog)
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 23:52:45 +00:00
|
|
|
// _WX_DIRDLG_H_
|