mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-19 09:30:06 +02:00
Add `locale/en.po` file. Add English to `locale/LINGUAS` list. Partially duplicate `msgid`s to `msgstr`s in English locale enable eventual key `msgid` changes Replace former project name with Tenacity in English locale. Replace former project website with Tenacity compatible usages in English locale. Modify `AboutDialog.h` by renaming variables. Modify `AboutDialog.cpp` by replacing usage of pre-fork name in Strings. Modify AddBuildInfoRow methods to be static in About dialog. Make License text const in About dialog. Make pre-fork credits different in About dialog. Begin adding Tenacity specific credits Macros starting with `__` are reserved, so I removed the `__` on the About Dialog guard macro. Remove `AboutDialog::` from usage of `Role` in `AboutDialog.h` Refactor overly long generator method into separate methods in `AboutDialog.(h|cpp)` Begin adding Tenacity developer information Cleanup layout of `AboutDialog.h` and `AboutDialog.cpp` Add `safedelete` macro to compliment odd `safenew` macro Add `enum` to `ShuttleGui.cpp` to make it more clear what `Prop` method is doing. Remove a ton of pointless and/or redunant `#ifdef` usage Remove pointless singleton in AboutDialog Make AboutDialog modal on MacOS Fix reference type use of `auto` in `AudacityApp` b/c it makes unintentional copy. Update XPM and PNG images using Tenacity assets Update ICO images using Tenacity assets. Fix Windows resource script that improperly used `winuser.h` import. Add `*.aps` to gitignore to prevent IDE RC pre-load file from being committed. Add default values for pre-processor constants in `tenacity.rc`. Make changes needed for `Tenacity.exe` binary Add 8x8 PNG to Windows ICO files Replace project name in various CMake and CPack file. Replace project name in various directory structures. Replace project name in various OS-specific build files. Replace project name in various documentation files. Update the PO and POT files using the script. Fix places where a `.desktop` file was used on Linux. Replace title of project windows. Make splash screen click through to `tenacityaudio.org`. Remove ® from `AboutDialog.cpp` Modify copyright message in `AboutDialog.cpp` Signed-off-by: Emily Mabrey <emilymabrey93@gmail.com>
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
/**********************************************************************
|
|
|
|
Tenacity
|
|
|
|
ProjectWindowBase.cpp
|
|
|
|
Paul Licameli split from ProjectWindow.cpp
|
|
|
|
**********************************************************************/
|
|
|
|
#include "ProjectWindowBase.h"
|
|
|
|
#include "Project.h"
|
|
|
|
ProjectWindowBase::ProjectWindowBase(wxWindow * parent, wxWindowID id,
|
|
const wxPoint & pos,
|
|
const wxSize & size, AudacityProject &project)
|
|
: wxFrame(parent, id, _TS("Tenacity"), pos, size)
|
|
, mProject{ project }
|
|
{
|
|
project.SetFrame( this );
|
|
};
|
|
|
|
ProjectWindowBase::~ProjectWindowBase()
|
|
{
|
|
}
|
|
|
|
namespace {
|
|
|
|
ProjectWindowBase *FindProjectWindow( wxWindow *pWindow )
|
|
{
|
|
while ( pWindow && pWindow->GetParent() )
|
|
pWindow = pWindow->GetParent();
|
|
return dynamic_cast< ProjectWindowBase* >( pWindow );
|
|
}
|
|
|
|
}
|
|
|
|
AudacityProject *FindProjectFromWindow( wxWindow *pWindow )
|
|
{
|
|
auto pProjectWindow = FindProjectWindow( pWindow );
|
|
return pProjectWindow ? &pProjectWindow->GetProject() : nullptr;
|
|
}
|
|
|
|
const AudacityProject *FindProjectFromWindow( const wxWindow *pWindow )
|
|
{
|
|
return FindProjectFromWindow( const_cast< wxWindow* >( pWindow ) );
|
|
}
|
|
|