本文整理汇总了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;
}
}
示例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();
}
示例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();
}
示例4:
bool
DesktopSettingsView::IsDefaultable() const
{
TrackerSettings settings;
return settings.ShowDisksIcon() != false
|| settings.MountVolumesOntoDesktop() != true
|| settings.MountSharedVolumesOntoDesktop() != true
|| settings.EjectWhenUnmounting() != true;
}
示例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();
}
示例6: read
void read(const cv::FileNode& node, TrackerSettings& settings,
const TrackerSettings& default_settings)
{
if(node.empty())
settings = default_settings;
else
settings.read(node);
}