1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 14:32:58 +02:00

Round 6 of wx3 changes

A bit of fine tuning the FileDialog on Windows
Deleted Visual Studio 2008 project files
This commit is contained in:
Leland Lucius
2015-07-15 01:12:41 -05:00
parent 9b9c8cc073
commit 553308fc29
31 changed files with 194 additions and 10642 deletions

View File

@@ -1,15 +1,14 @@
//
// Copied from wxWidgets 3.0.2 and modified for Audacity
//
/////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/filedlg.h
// Purpose: wxFileDialog class
// Author: Julian Smart
// Modified by: Leland Lucius
// Created: 01/02/97
// RCS-ID: $Id: FileDialogPrivate.h,v 1.6 2009-04-11 05:53:09 llucius Exp $
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
//
// Modified for Audacity to support an additional button on Save dialogs
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _WIN_FILEDIALOGPRIVATE_H_
@@ -40,17 +39,10 @@ class FileDialog : public FileDialogBase
void OnSize(wxSizeEvent & e);
virtual int ShowModal();
protected:
// -----------------------------------------
// wxMSW-specific implementation from now on
// -----------------------------------------
//
virtual UINT_PTR MSWDialogHook(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam, OPENFILENAME *pOfn);
//
virtual UINT_PTR MSWParentHook(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam, OPENFILENAME *pOfn);
protected:
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
virtual void DoMoveWindow(int x, int y, int width, int height);
@@ -66,6 +58,17 @@ private:
void FilterFiles(HWND hwnd, bool refresh);
void ParseFilter(int index);
// Parent dialog hook
static UINT_PTR APIENTRY ParentHook(HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam);
virtual UINT_PTR MSWParentHook(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam, OPENFILENAME *pOfn);
// Message handlers for the parent dialog
virtual void MSWOnSize(HWND hwnd, LPOPENFILENAME pOfn);
// Child dialog hook
static UINT_PTR APIENTRY DialogHook(HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam);
virtual UINT_PTR MSWDialogHook(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam, OPENFILENAME *pOfn);
// Message handlers for the child dialog
virtual void MSWOnInitDialog(HWND hwnd, LPOPENFILENAME pOfn);
virtual void MSWOnDestroy(HWND hwnd, LPOPENFILENAME pOfn);
@@ -74,9 +77,6 @@ private:
virtual void MSWOnSelChange(HWND hwnd, LPOPENFILENAME pOfn);
virtual void MSWOnTypeChange(HWND hwnd, LPOPENFILENAME pOfn);
// Message handlers for the child dialog
virtual void MSWOnSize(HWND hwnd, LPOPENFILENAME pOfn);
private:
wxArrayString m_fileNames;