本文整理汇总了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));
}
示例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);
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例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);
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例13: BuildSignature
void GetAllMenuCommandsType::BuildSignature(CommandSignature &signature)
{
BoolValidator *showStatusValidator = new BoolValidator();
signature.AddParameter(wxT("ShowStatus"), 0, showStatusValidator);
}
示例14: BuildSignature
void ExecMenuCommandType::BuildSignature(CommandSignature &signature)
{
Validator *menuCommandValidator(new DefaultValidator());
signature.AddParameter(wxT("CommandName"), wxT(""), menuCommandValidator);
}
示例15: BuildSignature
void HelpCommandType::BuildSignature(CommandSignature &signature)
{
Validator *commandNameValidator = new DefaultValidator();
signature.AddParameter(wxT("CommandName"), wxT(""), commandNameValidator);
}