mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
... The "Set" prompt for checkboxes; Strings in Choice controls, which had been declared translatable with XO, but the translations not yet used. This can be tested in Ukrainian locale now, for editing parameters of commands like Select or Drag, but be aware that even uk.po is not up to date for all recent changes in the Manage Macros dialog itself.
67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
/**********************************************************************
|
|
|
|
Audacity - A Digital Audio Editor
|
|
Copyright 1999-2009 Audacity Team
|
|
License: wxwidgets
|
|
|
|
Dan Horgan
|
|
Marty Goddard
|
|
******************************************************************//**
|
|
|
|
\file GetTrackInfoCommand.cpp
|
|
\brief Definitions for GetTrackInfoCommand and GetTrackInfoCommandType classes
|
|
|
|
\class GetTrackInfoCommand
|
|
\brief Obsolete. GetInfo now does it.
|
|
|
|
*//*******************************************************************/
|
|
|
|
#include "../Audacity.h"
|
|
#include "GetTrackInfoCommand.h"
|
|
#include "../Project.h"
|
|
#include "../Track.h"
|
|
#include "../TrackPanel.h"
|
|
#include "../WaveTrack.h"
|
|
#include "../ShuttleGui.h"
|
|
#include "CommandContext.h"
|
|
|
|
const int nTypes =3;
|
|
static const wxString kTypes[nTypes] =
|
|
{
|
|
XO("Tracks"),
|
|
XO("Clips"),
|
|
XO("Labels")
|
|
};
|
|
|
|
|
|
GetTrackInfoCommand::GetTrackInfoCommand()
|
|
{
|
|
mInfoType = 0;
|
|
}
|
|
|
|
bool GetTrackInfoCommand::DefineParams( ShuttleParams & S ){
|
|
wxArrayString types( nTypes, kTypes );
|
|
S.DefineEnum( mInfoType, wxT("Type"), 0, types );
|
|
|
|
return true;
|
|
}
|
|
|
|
void GetTrackInfoCommand::PopulateOrExchange(ShuttleGui & S)
|
|
{
|
|
auto types = LocalizedStrings( kTypes, nTypes );
|
|
S.AddSpace(0, 5);
|
|
|
|
S.StartMultiColumn(2, wxALIGN_CENTER);
|
|
{
|
|
S.TieChoice( _("Types:"), mInfoType, &types);
|
|
}
|
|
S.EndMultiColumn();
|
|
}
|
|
|
|
|
|
|
|
bool GetTrackInfoCommand::Apply(const CommandContext &context)
|
|
{
|
|
return false;
|
|
}
|