This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
132 lines
3.3 KiB
C++
132 lines
3.3 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: src/gtk1/filedlg.cpp
|
|
// Purpose: native implementation of wxFileDialog
|
|
// Author: Robert Roebling, Zbigniew Zagorski, Mart Raudsepp
|
|
// Copyright: (c) 1998 Robert Roebling, 2004 Zbigniew Zagorski, 2005 Mart Raudsepp
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// For compilers that support precompilation, includes "wx.h".
|
|
#include "wx/wxprec.h"
|
|
|
|
#if wxUSE_FILEDLG
|
|
|
|
#include "wx/filedlg.h"
|
|
#include "wx/modalhook.h"
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// wxFileDialog
|
|
//-----------------------------------------------------------------------------
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxFileDialog,wxGenericFileDialog)
|
|
|
|
BEGIN_EVENT_TABLE(wxFileDialog,wxGenericFileDialog)
|
|
EVT_BUTTON(wxID_OK, wxFileDialog::OnFakeOk)
|
|
END_EVENT_TABLE()
|
|
|
|
wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
|
|
const wxString& defaultDir,
|
|
const wxString& defaultFileName,
|
|
const wxString& wildCard,
|
|
long style, const wxPoint& pos,
|
|
const wxSize& sz,
|
|
const wxString& name)
|
|
: wxGenericFileDialog(parent, message, defaultDir, defaultFileName,
|
|
wildCard, style, pos, sz, name, true )
|
|
{
|
|
wxGenericFileDialog::Create( parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name );
|
|
}
|
|
|
|
wxFileDialog::~wxFileDialog()
|
|
{
|
|
}
|
|
|
|
void wxFileDialog::OnFakeOk( wxCommandEvent &event )
|
|
{
|
|
wxGenericFileDialog::OnOk( event );
|
|
}
|
|
|
|
int wxFileDialog::ShowModal()
|
|
{
|
|
WX_HOOK_MODAL_DIALOG();
|
|
|
|
return wxGenericFileDialog::ShowModal();
|
|
}
|
|
|
|
bool wxFileDialog::Show( bool show )
|
|
{
|
|
return wxGenericFileDialog::Show( show );
|
|
}
|
|
|
|
void wxFileDialog::DoSetSize(int x, int y, int width, int height, int sizeFlags )
|
|
{
|
|
if (!m_wxwindow)
|
|
return;
|
|
else
|
|
wxGenericFileDialog::DoSetSize( x, y, width, height, sizeFlags );
|
|
}
|
|
|
|
wxString wxFileDialog::GetPath() const
|
|
{
|
|
return wxGenericFileDialog::GetPath();
|
|
}
|
|
|
|
void wxFileDialog::GetFilenames(wxArrayString& files) const
|
|
{
|
|
wxGenericFileDialog::GetFilenames( files );
|
|
}
|
|
|
|
void wxFileDialog::GetPaths(wxArrayString& paths) const
|
|
{
|
|
wxGenericFileDialog::GetPaths( paths );
|
|
}
|
|
|
|
void wxFileDialog::SetMessage(const wxString& message)
|
|
{
|
|
wxGenericFileDialog::SetMessage( message );
|
|
}
|
|
|
|
void wxFileDialog::SetPath(const wxString& path)
|
|
{
|
|
wxGenericFileDialog::SetPath( path );
|
|
}
|
|
|
|
void wxFileDialog::SetDirectory(const wxString& dir)
|
|
{
|
|
wxGenericFileDialog::SetDirectory( dir );
|
|
}
|
|
|
|
wxString wxFileDialog::GetDirectory() const
|
|
{
|
|
return wxGenericFileDialog::GetDirectory();
|
|
}
|
|
|
|
void wxFileDialog::SetFilename(const wxString& name)
|
|
{
|
|
|
|
wxGenericFileDialog::SetFilename( name );
|
|
}
|
|
|
|
wxString wxFileDialog::GetFilename() const
|
|
{
|
|
return wxGenericFileDialog::GetFilename();
|
|
}
|
|
|
|
void wxFileDialog::SetWildcard(const wxString& wildCard)
|
|
{
|
|
wxGenericFileDialog::SetWildcard( wildCard );
|
|
}
|
|
|
|
void wxFileDialog::SetFilterIndex(int filterIndex)
|
|
{
|
|
wxGenericFileDialog::SetFilterIndex( filterIndex );
|
|
}
|
|
|
|
int wxFileDialog::GetFilterIndex() const
|
|
{
|
|
return wxGenericFileDialog::GetFilterIndex();
|
|
}
|
|
|
|
#endif // wxUSE_FILEDLG
|