void SwitchScheduler::initialize(SwitchSchedulerConfiguration* config)
{
    setAstronomyApiUrl(config->astronomyApiUrl);
    setAstronomyApiCheckTime(config->astronomyApiCheckTime);
    setIsEnabled(config->isEnabled);
    setHomeOnlyModeEnabled(config->homeOnlyModeEnabled);
}
Example #2
0
void SixenseManager::toggleSixense(bool shouldEnable) {
    if (shouldEnable && !isInitialized()) {
        initialize();
        setFilter(Menu::getInstance()->isOptionChecked(MenuOption::FilterSixense));
        setLowVelocityFilter(Menu::getInstance()->isOptionChecked(MenuOption::LowVelocityFilter));
    }
    setIsEnabled(shouldEnable);
}
Example #3
0
 MenuItemLabel::MenuItemLabel(Label *label, SELProtocol *target, SELECTOR_PTR selector)
 : MenuItem(target, selector)
 , m_originalScale(1)
 , m_colorBackup(fzWHITE)
 , m_disabledColor(fzGRAY)
 , p_label(NULL)
 {
     setLabel(label);
     setIsEnabled(true);
 }
Example #4
0
GLGameModel::GLGameModel(QObject *parent) : QObject(parent)
{
    created = false;

    displayListID = glGenLists(1);
    frameDisplayListID = glGenLists(1);

    pos    = QVector3D(0.0, 0.0, 0.0); 
    scale  = 1.0f;
    angleX = 0.0f;
    angleY = 0.0f;
    angleZ = 0.0f;

    color = Qt::gray;
    setIsLightingEnabled(true);
    setIsHighlighted(false);
    setIsSelectable(false);
    setIsVisible(true);
    setIsEnabled(true);
}