当前位置: 首页>>代码示例>>C++>>正文


C++ CommandSignature类代码示例

本文整理汇总了C++中CommandSignature的典型用法代码示例。如果您正苦于以下问题:C++ CommandSignature类的具体用法?C++ CommandSignature怎么用?C++ CommandSignature使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CommandSignature类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: BuildSignature

void SetPreferenceCommandType::BuildSignature(CommandSignature &signature)
{
   auto prefNameValidator = make_movable<DefaultValidator>();
   signature.AddParameter(wxT("PrefName"), wxT(""), std::move(prefNameValidator));
   auto prefValueValidator = make_movable<DefaultValidator>();
   signature.AddParameter(wxT("PrefValue"), wxT(""), std::move(prefValueValidator));
}
开发者ID:AthiVarathan,项目名称:audacity,代码行数:7,代码来源:PreferenceCommands.cpp

示例2: BuildSignature

void SetPreferenceCommandType::BuildSignature(CommandSignature &signature)
{
   Validator *prefNameValidator(new Validator());
   signature.AddParameter(wxT("PrefName"), wxT(""), prefNameValidator);
   Validator *prefValueValidator(new Validator());
   signature.AddParameter(wxT("PrefValue"), wxT(""), prefValueValidator);
}
开发者ID:JordanGraves,项目名称:TabMagic,代码行数:7,代码来源:PreferenceCommands.cpp

示例3: BuildSignature

void OpenProjectCommandType::BuildSignature(CommandSignature &signature)
{
   auto addToHistoryValidator = make_movable<BoolValidator>();
   signature.AddParameter(wxT("AddToHistory"), true, std::move(addToHistoryValidator));
   auto filenameValidator = make_movable<DefaultValidator>();
   signature.AddParameter(wxT("Filename"), wxT(""), std::move(filenameValidator));
}
开发者ID:AthiVarathan,项目名称:audacity,代码行数:7,代码来源:OpenSaveCommands.cpp

示例4: BuildSignature

void OpenProjectCommandType::BuildSignature(CommandSignature &signature)
{
   BoolValidator *addToHistoryValidator(new BoolValidator());
   signature.AddParameter(wxT("AddToHistory"), true, addToHistoryValidator);
   Validator *filenameValidator(new DefaultValidator());
   signature.AddParameter(wxT("Filename"), wxT(""), filenameValidator);
}
开发者ID:Avi2011class,项目名称:audacity,代码行数:7,代码来源:OpenSaveCommands.cpp

示例5: BuildSignature

void SetTrackInfoCommandType::BuildSignature(CommandSignature &signature)
{
   IntValidator *trackIndexValidator = new IntValidator();
   signature.AddParameter(wxT("TrackIndex"), 0, trackIndexValidator);

   OptionValidator *infoTypeValidator = new OptionValidator();
   infoTypeValidator->AddOption(wxT("Name"));
   signature.AddParameter(wxT("Type"), wxT("Name"), infoTypeValidator);
   Validator *nameValidator = new DefaultValidator();
   signature.AddParameter(wxT("Name"), wxT("Unnamed"), nameValidator);
}
开发者ID:Avi2011class,项目名称:audacity,代码行数:11,代码来源:SetTrackInfoCommand.cpp

示例6: BuildSignature

void SetProjectInfoCommandType::BuildSignature(CommandSignature &signature)
{
   OptionValidator *infoTypeValidator = new OptionValidator();
   infoTypeValidator->AddOption(wxT("SelectedTracks"));
   infoTypeValidator->AddOption(wxT("MuteTracks"));
   infoTypeValidator->AddOption(wxT("SoloTracks"));

   signature.AddParameter(wxT("Type"), wxT("Name"), infoTypeValidator);

   BoolArrayValidator *TracksSetValidator = new BoolArrayValidator();
   signature.AddParameter(wxT(kSetOfTracksStr), wxT("x"), TracksSetValidator);
}
开发者ID:Cactuslegs,项目名称:audacity-of-nope,代码行数:12,代码来源:SetProjectInfoCommand.cpp

示例7: BuildSignature

void ExportCommandType::BuildSignature(CommandSignature &signature)
{
   auto modeValidator = make_movable<OptionValidator>();
   modeValidator->AddOption(wxT("All"));
   modeValidator->AddOption(wxT("Selection"));
   signature.AddParameter(wxT("Mode"), wxT("All"), std::move(modeValidator));

   auto filenameValidator = make_movable<DefaultValidator>();
   signature.AddParameter(wxT("Filename"), wxT("exported.wav"), std::move(filenameValidator));

   auto channelsValidator = make_movable<IntValidator>();
   signature.AddParameter(wxT("Channels"), 1, std::move(channelsValidator));
}
开发者ID:RaphaelMarinier,项目名称:audacity,代码行数:13,代码来源:ImportExportCommands.cpp

示例8: BuildSignature

void GetTrackInfoCommandType::BuildSignature(CommandSignature &signature)
{
   IntValidator *trackIndexValidator = new IntValidator();
   signature.AddParameter(wxT("TrackIndex"), 0, trackIndexValidator);

   OptionValidator *infoTypeValidator = new OptionValidator();
   infoTypeValidator->AddOption(wxT("Name"));
   infoTypeValidator->AddOption(wxT("StartTime"));
   infoTypeValidator->AddOption(wxT("EndTime"));
   infoTypeValidator->AddOption(wxT("Pan"));
   infoTypeValidator->AddOption(wxT("Gain"));
   infoTypeValidator->AddOption(wxT("Selected"));
   infoTypeValidator->AddOption(wxT("Linked"));
   infoTypeValidator->AddOption(wxT("Solo"));
   infoTypeValidator->AddOption(wxT("Mute"));
   infoTypeValidator->AddOption(wxT("Focused"));

   signature.AddParameter(wxT("Type"), wxT("Name"), infoTypeValidator);
}
开发者ID:PhilSee,项目名称:audacity,代码行数:19,代码来源:GetTrackInfoCommand.cpp

示例9: BuildSignature

void GetProjectInfoCommandType::BuildSignature(CommandSignature &signature)
{
   auto infoTypeValidator = make_movable<OptionValidator>();
   infoTypeValidator->AddOption(wxT("Name"));
   infoTypeValidator->AddOption(wxT("NumberOfTracks"));
   infoTypeValidator->AddOption(wxT("SelectedTracks"));
   infoTypeValidator->AddOption(wxT("MuteTracks"));
   infoTypeValidator->AddOption(wxT("SoloTracks"));
   infoTypeValidator->AddOption(wxT("FocusedTrackID")); // returns the Track ID number of the track in focus

   signature.AddParameter(wxT("Type"), wxT("Name"), std::move(infoTypeValidator));
}
开发者ID:henricj,项目名称:audacity,代码行数:12,代码来源:GetProjectInfoCommand.cpp

示例10: BuildSignature

void GetProjectInfoCommandType::BuildSignature(CommandSignature &signature)
{
   OptionValidator *infoTypeValidator = new OptionValidator();
   infoTypeValidator->AddOption(wxT("Name"));
   infoTypeValidator->AddOption(wxT("NumberOfTracks"));
   infoTypeValidator->AddOption(wxT("SelectedTracks"));
   infoTypeValidator->AddOption(wxT("MuteTracks"));
   infoTypeValidator->AddOption(wxT("SoloTracks"));
   infoTypeValidator->AddOption(wxT("FocusedTrackID")); // returns the Track ID number of the track in focus

   signature.AddParameter(wxT("Type"), wxT("Name"), infoTypeValidator);
}
开发者ID:MartynShaw,项目名称:audacity,代码行数:12,代码来源:GetProjectInfoCommand.cpp

示例11: BuildSignature

void ScreenshotCommandType::BuildSignature(CommandSignature &signature)
{
   OptionValidator *captureModeValidator = new OptionValidator();
   captureModeValidator->AddOption(wxT("window"));
   captureModeValidator->AddOption(wxT("fullwindow"));
   captureModeValidator->AddOption(wxT("windowplus"));
   captureModeValidator->AddOption(wxT("fullscreen"));
   captureModeValidator->AddOption(wxT("toolbars"));
   captureModeValidator->AddOption(wxT("selectionbar"));
   captureModeValidator->AddOption(wxT("tools"));
   captureModeValidator->AddOption(wxT("control"));
   captureModeValidator->AddOption(wxT("mixer"));
   captureModeValidator->AddOption(wxT("meter"));
   captureModeValidator->AddOption(wxT("edit"));
   captureModeValidator->AddOption(wxT("device"));
   captureModeValidator->AddOption(wxT("transcription"));
   captureModeValidator->AddOption(wxT("trackpanel"));
   captureModeValidator->AddOption(wxT("ruler"));
   captureModeValidator->AddOption(wxT("tracks"));
   captureModeValidator->AddOption(wxT("firsttrack"));
   captureModeValidator->AddOption(wxT("secondtrack"));

   OptionValidator *backgroundValidator = new OptionValidator();
   backgroundValidator->AddOption(wxT("Blue"));
   backgroundValidator->AddOption(wxT("White"));
   backgroundValidator->AddOption(wxT("None"));

   Validator *filePathValidator = new Validator();

   signature.AddParameter(wxT("CaptureMode"),
                          wxT("fullscreen"),
                          captureModeValidator);
   signature.AddParameter(wxT("Background"),
                          wxT("None"),
                          backgroundValidator);
   signature.AddParameter(wxT("FilePath"), wxT(""), filePathValidator);
}
开发者ID:ruthmagnus,项目名称:audacity,代码行数:37,代码来源:ScreenshotCommand.cpp

示例12: BuildSignature

void SelectCommandType::BuildSignature(CommandSignature &signature)
{
    OptionValidator *modeValidator = new OptionValidator();
    modeValidator->AddOption(wxT("None"));
    modeValidator->AddOption(wxT("All"));
    modeValidator->AddOption(wxT("Range"));
    modeValidator->AddOption(wxT("Name"));
    signature.AddParameter(wxT("Mode"), wxT("All"), modeValidator);

    DoubleValidator *startTimeValidator = new DoubleValidator();
    signature.AddParameter(wxT("StartTime"), 0.0, startTimeValidator);
    DoubleValidator *endTimeValidator = new DoubleValidator();
    signature.AddParameter(wxT("EndTime"), 0.0, endTimeValidator);
    IntValidator *firstTrackValidator = new IntValidator();

    signature.AddParameter(wxT("FirstTrack"), 0, firstTrackValidator);
    IntValidator *lastTrackValidator = new IntValidator();
    signature.AddParameter(wxT("LastTrack"), 0, lastTrackValidator);

    Validator *trackNameValidator = new Validator();
    signature.AddParameter(wxT("TrackName"), 0, trackNameValidator);
}
开发者ID:nicklecoder,项目名称:Audacity,代码行数:22,代码来源:SelectCommand.cpp

示例13: BuildSignature

void GetAllMenuCommandsType::BuildSignature(CommandSignature &signature)
{
   BoolValidator *showStatusValidator = new BoolValidator();
   signature.AddParameter(wxT("ShowStatus"), 0, showStatusValidator);
}
开发者ID:LBoggino,项目名称:audacity,代码行数:5,代码来源:GetAllMenuCommands.cpp

示例14: BuildSignature

void ExecMenuCommandType::BuildSignature(CommandSignature &signature)
{
   Validator *menuCommandValidator(new DefaultValidator());
   signature.AddParameter(wxT("CommandName"), wxT(""), menuCommandValidator);
}
开发者ID:Avi2011class,项目名称:audacity,代码行数:5,代码来源:ExecMenuCommand.cpp

示例15: BuildSignature

void HelpCommandType::BuildSignature(CommandSignature &signature)
{
   Validator *commandNameValidator = new DefaultValidator();
   signature.AddParameter(wxT("CommandName"), wxT(""), commandNameValidator);
}
开发者ID:forssil,项目名称:thirdpartysource,代码行数:5,代码来源:HelpCommand.cpp


注:本文中的CommandSignature类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。