void CComponentType::setNecessity( int necessity ) { this->necessity = necessity; // Update the components of this component type updateComponents(); }
void CComponentType::setTime( int time ) { this->time = time; // Update the components of this component type updateComponents(); }
void CComponentType::setFrequency( int frequency ) { this->frequency = frequency; // Update the components of this component type updateComponents(); }
//TODO create multiple constructors for passing default values dekq::formal::controls::Button::Button() { this->setWidth(80); //TODO make this more efficient(cause every set in here will trigger updateComponents) this->setHeight(18); this->setX(10); this->setY(10); listeners.mouse_enter = events.MouseEnter.operator+=([this](int i) { std::cout << "mouse enter" << std::endl; this->states.hover = true; }); listeners.mouse_leave = events.MouseLeave.operator+=([this](int i) { std::cout << "mouse leave" << std::endl; this->states.hover = false; }); listeners.pressed = events.Pressed.operator+=([this](int i) { std::cout << "pressed" << std::endl; this->states.pressed = true; }); listeners.released = events.Released.operator+=([this](int i) { std::cout << "released" << std::endl; this->states.pressed = false; }); updateComponents(); }
void CComponentType::removeEdgeConnector( CEdgeConnector& edgeConnector ) { // Search for the given edge connector list<CEdgeConnector*>::iterator itEdgeConnector; for( itEdgeConnector = edgeConnectors.begin(); itEdgeConnector != edgeConnectors.end(); itEdgeConnector++ ) { // If found, remove it and disconnect it if( (*itEdgeConnector) == (&edgeConnector) ) { edgeConnector.pComponentType = NULL; edgeConnectors.erase( itEdgeConnector ); break; } } // If the connection was complete... if( &(edgeConnector.getLinkedConnector().getComponentType()) != NULL ) { // Update the components of this component type updateComponents(); // And update the connected component type's components too const_cast<CComponentType&>( edgeConnector.getLinkedConnector().getComponentType() ).updateComponents(); } }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); updateComponents(); }
void PMixInterpolationSpaceLayout::changeListenerCallback (ChangeBroadcaster* source) { if (source == &selectedItems) { } else updateComponents(); repaint(); }
GeneneralConf::GeneneralConf(QWidget *parent) : QWidget(parent) { m_layout = new QVBoxLayout(this); m_layout->setAlignment(Qt::AlignTop); initShowHelp(); initShowDesktopNotification(); initShowTrayIcon(); initAutostart(); // this has to be at the end initConfingButtons(); updateComponents(); }
UIcolorEditor::UIcolorEditor(QWidget *parent) : QGroupBox(parent) { setTitle(tr("UI Color Editor")); setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); m_hLayout = new QHBoxLayout; m_vLayout = new QVBoxLayout; m_hLayout->addItem(new QSpacerItem(10, 10, QSizePolicy::Expanding)); m_vLayout->setAlignment(Qt::AlignVCenter); initButtons(); initColorWheel(); m_vLayout->addSpacing(10); m_hLayout->addLayout(m_vLayout); m_hLayout->addItem(new QSpacerItem(10, 10, QSizePolicy::Expanding)); setLayout(m_hLayout); updateComponents(); }
void PMixInterpolationSpaceLayout::deleteSelection() { for (int i = 0; i < selectedItems.getNumSelected(); i++) { Component* c = selectedItems.getSelectedItem(i); InterpolationSpacePreset* p = dynamic_cast<InterpolationSpacePreset*>(c); if (p) { audioEngine.getDoc().removePreset(p->nodeID, p->presetId); } } selectedItems.deselectAll(); updateComponents(); }
void CComponentType::addEdgeConnector( CEdgeConnector& edgeConnector ) { // Set this component type as owner edgeConnector.pComponentType = this; // Add to edge connectors edgeConnectors.push_back( &edgeConnector ); // If the connection is complete... if( &(edgeConnector.getLinkedConnector().getComponentType()) != NULL ) { // Update the components of this component type updateComponents(); // And update the connected component type's components too const_cast<CComponentType&>( edgeConnector.getLinkedConnector().getComponentType() ).updateComponents(); } }
void MainWindow::on_pushButton_NextStep_clicked() { ui->fibHeapView->nextStep(); updateComponents(); }
void dekq::formal::controls::Button::style_setFont(std::shared_ptr<sf::Font> font) { style.font = font; updateComponents(); }
void GameState::moveBox(unsigned int boxNum, point pos){ this->set(boxes[boxNum],1); this->boxes[boxNum] = pos; this->set(pos,0); updateComponents(); }
void Vector::setDirection(float gdir){ direction = gdir; updateComponents(); }
void GraphEditorPanel::changeListenerCallback (ChangeBroadcaster*) { updateComponents(); }
void dekq::formal::controls::Button::style_setColor(sf::Color color) { style.color = color; updateComponents(); }
void dekq::formal::controls::Button::style_setBorderColor(sf::Color borderColor) { style.borderColor = borderColor; updateComponents(); }
Vector::Vector(){ id = COMPONENT_VECTOR; magnitude = 0.0; direction = 0.0; updateComponents(); }
void MainWindow::on_pushButton_Union_clicked() { ui->fibHeapView->unionOperation(); updateComponents(); }
void DataModel::updateAll() { updateComponents(); updateFeatures(); updateOrthogonalTable(); }
void visibleAreaChanged (int x, int, int, int) { const bool hasScrolledSideways = (x != lastX); lastX = x; updateComponents (hasScrolledSideways); }
void dekq::formal::controls::Button::setDisplayText(std::string displayText) { properties.displayText = displayText; updateComponents(); }
Vector::Vector(float gmag, float gdir){ id = COMPONENT_VECTOR; magnitude = gmag; direction = gdir; updateComponents(); }
void dekq::formal::controls::Button::style_setBorderWidth(int borderWidth) { style.borderWidth = borderWidth; updateComponents(); }
Vector::Vector(float gmag, float gdir, int gid){ id = gid; magnitude = gmag; direction = gdir; updateComponents(); }
void dekq::formal::controls::Button::style_setBackgroundColor(sf::Color backgroundColor) { style.backgroundColor = backgroundColor; updateComponents(); }
void Vector::setMagnitude(float gmag){ magnitude = gmag; updateComponents(); }
void dekq::formal::controls::Button::style_setFontSize(unsigned int fontSize) { style.fontSize = fontSize; updateComponents(); }
void GraphEditorPanel::resized() { updateComponents(); }