void drawConfigChanged() { // recalculate registration bool bRegistration = (g_DrawConfig.Streams.ScreenArrangement == OVERLAY) && (g_DrawConfig.Streams.Color.Coloring != COLOR_OFF) && (g_DrawConfig.Streams.Depth.Coloring != DEPTH_OFF || g_DrawConfig.Streams.Color.Coloring == DEPTH_MASKED_COLOR); changeRegistration(bRegistration); }
void glutKeyboard (unsigned char key, int /*x*/, int /*y*/) { switch (key) { case 27: CleanupExit(); case 'b': // Draw background? g_bDrawBackground = !g_bDrawBackground; break; case 'x': // Draw pixels at all? g_bDrawPixels = !g_bDrawPixels; break; case 'l': // Print ID & state as label, or only ID? g_bPrintState = !g_bPrintState; break; case 'f': // Print FrameID g_bPrintFrameID = !g_bPrintFrameID; break; case'p': g_bPause = !g_bPause; break; case 'P': print_COM(COM_tracker); break; case 'B': print_Box_Pos(Bounding_Box); break; case '1': Show_Image = FALSE; changeRegistration(0); break; case '2': Show_Image = TRUE; changeRegistration(1); break; } }
RIdentityForm::RIdentityForm(QWidget *parent, const char *name, QObject *reg) : QDialog(parent) { Q_UNUSED(name); ui.setupUi(this); ui.fullname->setAttribute(Qt::WA_MacShowFocusRect, false); ui.username->setAttribute(Qt::WA_MacShowFocusRect, false); ui.hostname->setAttribute(Qt::WA_MacShowFocusRect, false); ui.sipProxy->setAttribute(Qt::WA_MacShowFocusRect, false); ui.sipProxyUsername->setAttribute(Qt::WA_MacShowFocusRect, false); ui.password->setAttribute(Qt::WA_MacShowFocusRect, false); connect( ui.buttonRegister, SIGNAL( clicked() ), reg, SLOT( changeRegistration() ) ); }