From 5620f6bbb413aec38684e1fb5c27db6cea0fa4cb Mon Sep 17 00:00:00 2001 From: Epicalert Date: Sun, 4 Jul 2021 18:06:10 +0800 Subject: [PATCH] Add tooltips to fc2dconfig --- TODO.md | 1 - src/args.cpp | 4 ++-- src/fc2dconfig.cpp | 7 +++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index a9b3bf2..79e4298 100644 --- a/TODO.md +++ b/TODO.md @@ -9,7 +9,6 @@ ## config program - disable checkboxes by default in fc2dconfig -- tooltips ## misc - README diff --git a/src/args.cpp b/src/args.cpp index 58b20bc..3a5f06f 100644 --- a/src/args.cpp +++ b/src/args.cpp @@ -13,14 +13,14 @@ const char* argp_program_version = const struct argp_option options[] = { //name, key, arg, flags, doc, group {"haar-cascade", 0x00, 0, 0, "Use Haar Cascades for faster (but less accurate) face detection.", 0}, - {"show-camera", 0x01, 0, 0, "Show the camera feed in another window", 0}, + {"show-camera", 0x01, 0, 0, "Show the camera feed in another window.", 0}, {"no-eyes", 0x02, 0, 0, "Disable eye tracking for better performance.", 0}, {"model", 'm', "model", 0, "Name of the model file to use. (not including '.fma')", 0}, // this option actually selects the minimum camera id to use, // i.e. instead of trying video0, video1, ... it will try // starting from 'c'. // e.g. -c6 is passed, so the program will try video6, video7, etc. - {"camera", 'c', "id", 0, "ID number of camera to use (e.g. /dev/videoXX where XX is the ID)", 0}, + {"camera", 'c', "id", 0, "ID number of camera to use. (e.g. /dev/videoXX where XX is the ID)", 0}, {0} }; diff --git a/src/fc2dconfig.cpp b/src/fc2dconfig.cpp index 19930c6..f2e14b9 100644 --- a/src/fc2dconfig.cpp +++ b/src/fc2dconfig.cpp @@ -71,6 +71,13 @@ ConfigurationFrame::ConfigurationFrame() : wxFrame(NULL, wxID_ANY, "Configure " cameraSizer->Add(cameraText, 0, wxALIGN_CENTER | wxALL, 5); cameraSizer->Add(cameraSpinCtrl, 0, wxLEFT, 20); + // define tooltips + useHaarCheckBox->SetToolTip("Use Haar Cascades for faster (but less accurate) face detection."); + showCameraCheckBox->SetToolTip("Show the camera feed in another window."); + noEyesCheckBox->SetToolTip("Disable eye tracking for better performance."); + modelNameText->SetToolTip("Name of model to use."); + cameraText->SetToolTip("ID number of camera to use. (e.g. /dev/videoXX where XX is the ID)"); + // General section wxStaticBoxSizer* generalBoxSizer = new wxStaticBoxSizer(new wxStaticBox(panel, wxID_ANY, "General"), wxVERTICAL);