本文整理汇总了C++中TrackerSettings类的典型用法代码示例。如果您正苦于以下问题:C++ TrackerSettings类的具体用法?C++ TrackerSettings怎么用?C++ TrackerSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TrackerSettings类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1:
void
TrashSettingsView::MessageReceived(BMessage* message)
{
TTracker* tracker = dynamic_cast<TTracker*>(be_app);
if (!tracker)
return;
TrackerSettings settings;
switch (message->what) {
case kDontMoveFilesToTrashChanged:
settings.SetDontMoveFilesToTrash(
fDontMoveFilesToTrashCheckBox->Value() == 1);
tracker->SendNotices(kDontMoveFilesToTrashChanged);
Window()->PostMessage(kSettingsContentsModified);
break;
case kAskBeforeDeleteFileChanged:
settings.SetAskBeforeDeleteFile(
fAskBeforeDeleteFileCheckBox->Value() == 1);
tracker->SendNotices(kAskBeforeDeleteFileChanged);
Window()->PostMessage(kSettingsContentsModified);
break;
default:
_inherited::MessageReceived(message);
break;
}
}
开发者ID:RTOSkit,项目名称:haiku,代码行数:30,代码来源:SettingsViews.cpp
示例2:
void
TimeFormatSettingsView::ShowCurrentSettings()
{
TrackerSettings settings;
f24HrRadioButton->SetValue(settings.ClockIs24Hr());
f12HrRadioButton->SetValue(!settings.ClockIs24Hr());
switch (settings.DateOrderFormat()) {
case kYMDFormat:
fYMDRadioButton->SetValue(1);
break;
case kMDYFormat:
fMDYRadioButton->SetValue(1);
break;
default:
case kDMYFormat:
fDMYRadioButton->SetValue(1);
break;
}
FormatSeparator separator = settings.TimeFormatSeparator();
if (separator >= kNoSeparator && separator < kSeparatorsEnd)
fSeparatorMenuField->Menu()->ItemAt((int32)separator)->SetMarked(true);
_UpdateExamples();
}
开发者ID:mariuz,项目名称:haiku,代码行数:30,代码来源:SettingsViews.cpp
示例3: frame_count
//-----------------------------------------------------------------------------
Tracker::Tracker()
: frame_count(0), commands(0), video_widget(NULL), tracking_valid(false)
{
qDebug()<<"Tracker::Tracker";
TrackerSettings settings;
settings.load_ini();
apply(settings);
camera.start();
start();
}
开发者ID:kineticgar,项目名称:facetracknoir,代码行数:11,代码来源:ftnoir_tracker_pt.cpp
示例4:
bool
DesktopSettingsView::IsDefaultable() const
{
TrackerSettings settings;
return settings.ShowDisksIcon() != false
|| settings.MountVolumesOntoDesktop() != true
|| settings.MountSharedVolumesOntoDesktop() != true
|| settings.EjectWhenUnmounting() != true;
}
开发者ID:AmirAbrams,项目名称:haiku,代码行数:10,代码来源:SettingsViews.cpp
示例5: qDebug
//-----------------------------------------------------------------------------
// ITracker interface
void Tracker::Initialize(QFrame *video_frame)
{
qDebug("Tracker::Initialize");
// setup video frame
this->video_frame = video_frame;
video_frame->setAttribute(Qt::WA_NativeWindow);
video_frame->show();
update_show_video_widget();
TrackerSettings settings;
settings.load_ini();
camera.start();
apply(settings);
start();
}
开发者ID:FuraX49,项目名称:opentrack,代码行数:16,代码来源:ftnoir_tracker_pt.cpp
示例6: read
void read(const cv::FileNode& node, TrackerSettings& settings,
const TrackerSettings& default_settings)
{
if(node.empty())
settings = default_settings;
else
settings.read(node);
}
开发者ID:caomw,项目名称:PangaeaTracking,代码行数:8,代码来源:settings.cpp
注:本文中的TrackerSettings类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论