void CDoc::SaveOnServer(const URLData& url) { delete fDocIO; fDocIO = new CFtpDocIO(this, url); Save(); NameChanged(); }
void GDevice::ReName( QString val ) { if(val == "" || val == objectName()) return; setObjectName(val); emit NameChanged(objectName()); }
void CDestination::ReadChunk( CIFFReader &reader) { ASSERT(IsWriteLocked()); switch (reader.ChunkID()) { case DESTINATION_HEADER_CHUNK: { reader >> m_id; reader >> m_latency; reader >> m_flags; reader >> m_color; ColorChanged(m_color); break; } case DESTINATION_NAME_CHUNK: { reader.MustRead(m_name, MIN((size_t)reader.ChunkLength(), DESTINATION_NAME_LENGTH)); NameChanged(m_name); break; } default: { CSerializable::ReadChunk(reader); } } }
void CDoc::SetDocIO( CDocIO* docIO) { StopWatchingFile(); delete fDocIO; fDocIO = docIO; StartWatchingFile(); NameChanged(); }
void CDoc::SetEntryRef(const entry_ref *ref) { StopWatchingFile(); if (fDocIO) fDocIO->SetEntryRef(ref); StartWatchingFile(); NameChanged(); }
//--------------------------------------------------------------------------------------- void tAlarmSmartCraft::SetLocation( const QString& location ) { if (location != m_Location) { m_Location = location; emit NameChanged( tCoreAlarmPtr(this) ); } }
void MixerEffect::SetName(QString name) { if (this->_name != name) { this->_name = name; emit NameChanged(this->_name); } }
//--------------------------------------------------------------------------------------- void tAlarmSmartCraft::SetText( const QString& brief, const QString& desc, const QString& action, const QString& failureMode ) { m_HasText = true; m_TextBrief = brief; m_TextDescription = desc; m_TextAction = action.trimmed(); m_TextFailureMode = failureMode; emit NameChanged( tCoreAlarmPtr(this) ); }
void BaseMaterialEditorWidget::SetItem(MaterialData *item) { if (item == _item) { return; } if (_item) { disconnect(_item, SIGNAL(Changed()), this, SLOT(Changed ())); disconnect (_item, SIGNAL(NameChanged()), this, SLOT(NameChanged())); } _item = item; Changed (); connect (_item, SIGNAL(Changed()), this, SLOT(Changed())); connect (_item, SIGNAL(NameChanged()), this, SLOT(Changed())); }
void CDoc::SaveRequested(entry_ref& directory, const char *name) { try { BDirectory dir(&directory); gCWD = dir; BEntry e(&dir, name); FailOSErr(e.InitCheck()); if (e.Exists()) { entry_ref xr; e.GetRef(&xr); if (EntryRef() && xr == *EntryRef()) // its me, help!!! { BFile file; FailOSErr(file.SetTo(EntryRef(), B_READ_WRITE)); FailOSErr(file.SetSize(0)); } else e.Remove(); } fReadOnly = false; entry_ref eref; FailOSErr(e.GetRef(&eref)); fDocIO->SetEntryRef(&eref); if (!IsDirty()) SetDirty(true); Save(); NameChanged(); if (EntryRef()) { BPath p; FailOSErr(e.GetPath(&p)); AddRecent(p.Path()); } if (fSavePanel) { delete fSavePanel; fSavePanel = NULL; } } catch (HErr& e) { e.DoError(); } }
ScriptView::ScriptView( QWidget* p_parent /*= 0*/ ) : AbstractComponentView(p_parent) , m_name("Script") { ui.setupUi(this); ui.lineEdit_name->AddDropFilter("lua"); connect(ui.lineEdit_name, SIGNAL(editingFinished()), this, SLOT(NameChanged())); connect(ui.toolButton, SIGNAL(clicked()), this, SLOT(BrowseScript())); }
//----------------------------------------------------------------------------- //! Edit name handler (SLOT) //----------------------------------------------------------------------------- void tTripHistoryDetails::OnEditName() { QString name = tInputDialog::GetText( this, tr( "Trip name" ), "", m_TripName.TitleText(), 20); if( (name.length() > 0) && (name.compare(m_InitialTripName) != 0 ) ) { m_TripName.SetTitleText(name); emit NameChanged(name); } //Update the trip data m_TripData.name = name; }
//--------------------------------------------------------------------------------------- void tAlarmSmartCraft::SetText( const QString& brief, const QString& desc, const QString& action ) { m_HasText = true; m_TextBrief = brief; m_TextDescription = desc; m_TextAction = action.trimmed(); /* if (action.isEmpty() == false) { ClearEventStrings(); AddEventString( action ); } */ emit NameChanged( tCoreAlarmPtr(this) ); }
// // World Events // HRESULT CThingTreeCtrl::HandleOnUIEvent(IThing* pthing, BSTR bstrEventName, VARIANT varArg, BOOL bFromClient) { static CComBSTR bstrNameChanged(VW_NAMECHANGED_EVENT_STR); static CComBSTR bstrOnEnter(VW_CONTENTENTER_EVENT_STR); static CComBSTR bstrOnLeave(VW_CONTENTLEAVE_EVENT_STR); CVWUIView::HandleOnUIEvent(pthing, bstrEventName, varArg, bFromClient); if (CompareElements(&bstrOnEnter, &bstrEventName)) return OnEnter(pthing, varArg); else if (CompareElements(&bstrOnLeave, &bstrEventName)) return OnLeave(pthing, varArg); else if (CompareElements(&bstrNameChanged, &bstrEventName)) return NameChanged(pthing); return S_OK; }
void PProjectWindow::SetupSizeAndLayout() { inherited::SetupSizeAndLayout(); ResizeTo(180, 400); SetSizeLimits(100, 100000, 100, 100000); BRect r(Bounds()); BMenuBar *mbar; AddChild(mbar = HResources::GetMenuBar(r, rid_Mbar_ProjectWin)); mbar->FindItem(msg_Quit)->SetTarget(be_app); r.bottom = r.top + kToolBarHeight; r.OffsetBy(0, mbar->Bounds().bottom + 1); AddChild(fToolBar = new PToolBar(r, "toolbar")); r.bottom -= 2; r.OffsetTo(0, 0); fToolBar->AddChild(fButtonBar = new HButtonBar(r, "buttonbar", rid_Tbar_ProjectWin, this)); r = Bounds(); r.top = r.bottom - B_H_SCROLL_BAR_HEIGHT + 1; r.right -= B_V_SCROLL_BAR_WIDTH; AddChild(fStatus = new PGroupStatus(r, fDocIO->EntryRef() ? fDocIO->EntryRef()->name : NULL)); r = Bounds(); r.top = fToolBar->Frame().bottom; r.right -= B_V_SCROLL_BAR_WIDTH; r.bottom -= B_H_SCROLL_BAR_HEIGHT; fList = new PTypeAHeadList(r, "group", fStatus); fList->SetInvocationMessage(new BMessage(msg_PProjectItemInvoked)); fList->SetSelectionMessage(new BMessage(msg_PProjectItemSelected)); AddChild(new BScrollView("scroller", fList, B_FOLLOW_ALL_SIDES, 0, false, true, B_NO_BORDER)); Read(); NameChanged(); SelectionChanged(); }
bool LayerCollection::AddLayer( Layer* layer, bool initializeCoordinate ) { if ( !layer->IsTypeOf( m_strType ) ) { std::cerr << "Can not add layer type of " << qPrintable(layer->GetEndType()) << " to layer collection type of " << qPrintable(m_strType) << "\n"; return false; } Layer* old_top = (m_layers.isEmpty() ? NULL : m_layers[0]); for ( int i = 0; i < m_layers.size(); i++ ) { if ( m_layers[i] == layer ) { return false; } } if ( initializeCoordinate) { layer->GetSlicePosition( m_dSlicePosition ); layer->GetWorldOrigin( m_dWorldOrigin ); layer->GetWorldSize( m_dWorldSize ); layer->GetWorldVoxelSize( m_dWorldVoxelSize ); } else { layer->SetSlicePosition( m_dSlicePosition ); } m_layers.insert( m_layers.begin(), layer ); connect( layer, SIGNAL(ActorUpdated()), this, SIGNAL(LayerActorUpdated()) ); connect( layer, SIGNAL(Transformed()), this, SIGNAL(LayerActorUpdated()) ); connect( layer, SIGNAL(ActorChanged()), this, SIGNAL(LayerActorChanged()) ); connect( layer, SIGNAL(NameChanged(QString)), this, SIGNAL(LayerNameChanged())); connect(layer, SIGNAL(Transformed()), this, SIGNAL(LayerTransformed())); if (layer->IsTypeOf("Editable")) connect( layer, SIGNAL(Modified()), this, SIGNAL(LayerModified())); if (layer->GetProperty()) { connect( layer->GetProperty(), SIGNAL(PropertyChanged()), this, SIGNAL(LayerPropertyChanged())); connect( layer->GetProperty(), SIGNAL(ShowInfoChanged(bool)), this, SIGNAL(LayerShowInfoChanged())); }
void ChocoboEditor::init_connections(void) { connect(combo_type,SIGNAL(currentIndexChanged(int)),this,SLOT(TypeChanged(int))); connect(combo_sex,SIGNAL(currentIndexChanged(int)),this,SLOT(SexChanged(int))); connect(combo_rating,SIGNAL(currentIndexChanged(int)),this,SLOT(RatingChanged(int))); connect(cb_cantMate,SIGNAL(toggled(bool)),this,SLOT(CantMateChanged(bool))); connect(line_name,SIGNAL(textChanged(QString)),this,SLOT(NameChanged(QString))); connect(sb_sprint,SIGNAL(valueChanged(int)),this,SLOT(SprintChanged(int))); connect(sb_mSprint,SIGNAL(valueChanged(int)),this,SLOT(MsprintChanged(int))); connect(sb_speed,SIGNAL(valueChanged(int)),this,SLOT(SpeedChanged(int))); connect(sb_mSpeed,SIGNAL(valueChanged(int)),this,SLOT(MspeedChanged(int))); connect(sb_stamina,SIGNAL(valueChanged(int)),this,SLOT(StaminaChanged(int))); connect(sb_accel,SIGNAL(valueChanged(int)),this,SLOT(AccelChanged(int))); connect(sb_coop,SIGNAL(valueChanged(int)),this,SLOT(CoopChanged(int))); connect(sb_intel,SIGNAL(valueChanged(int)),this,SLOT(IntelligenceChanged(int))); connect(sb_personality,SIGNAL(valueChanged(int)),this,SLOT(PersonalityChanged(int))); connect(sb_pCount,SIGNAL(valueChanged(int)),this,SLOT(PcountChanged(int))); connect(sb_wins,SIGNAL(valueChanged(int)),this,SLOT(WinsChanged(int))); }
void JNamedTreeNode::SetName ( const JCharacter* name ) { if (name != itsName) { itsName = name; NameChanged(); JTree* tree; if (GetTree(&tree)) { tree->BroadcastChange(this); } } }
GPxiBasicAnalogOutput::GPxiBasicAnalogOutput(QString uniqueIdentifierName, QObject* parentDevice) : GPxiChannel(uniqueIdentifierName, parentDevice) , m_SetPoint(DefaultShortName(), this) { m_SetPoint.SetTypicalStep(0.01); m_SetPoint.SetDisplayDecimals(3); m_SetPoint.SetHardLimits(DEFAULT_LIMIT_MIN, DEFAULT_LIMIT_MAX); CString name(uniqueIdentifierName.toAscii()); try { AOChannels.CreateVoltageChannel(name, "", DEFAULT_LIMIT_MIN, DEFAULT_LIMIT_MAX, DAQmxAOVoltageUnitsVolts); } catch (CNiDAQmxException *exception) { exception->ReportError(); exception->Delete(); } connect(&m_SetPoint, SIGNAL(ValueUpdated(double)), this, SLOT(ChangeSetPoint(double))); connect(this, SIGNAL(NameChanged(QString)), &m_SetPoint, SLOT(SetName(QString))); }
void CDestination::SetName( const char *name) { D_ACCESS(("CDestination::SetName(%s)\n", name)); ASSERT(IsWriteLocked()); if (strcmp(m_name, name) != 0) { strncpy(m_name, name, DESTINATION_NAME_LENGTH); NameChanged(name); Document()->SetModified(); CUpdateHint hint; hint.AddInt32("DestID", m_id); hint.AddInt32("DestAttrs", Update_Name); PostUpdate(&hint); } }
GParamLabel::GParamLabel(GParam* pTheParam, QWidget *parent ) : QLabel(pTheParam->Name(), parent) , m_pParam(pTheParam) { connect(pTheParam, SIGNAL(NameChanged(QString)), this, SLOT(setText(QString))); setContextMenuPolicy(Qt::ActionsContextMenu); // setTextInteractionFlags(Qt::TextSelectableByMouse); // highlighting the labels: connect(m_pParam, SIGNAL(MouseEnteredParamLabel()), this, SLOT(StartHighlight())); connect(m_pParam, SIGNAL(MouseExitedParamLabel()), this, SLOT(StopHighlight())); m_InititalPalette = palette(); #ifdef QT_DEBUG // setToolTip(m_pParam->UniqueSystemID()); setStatusTip(m_pParam->UniqueSystemID()); // setWhatsThis(m_pParam->UniqueSystemID()); #endif }
GPxiBasicAnalogInput::GPxiBasicAnalogInput(QString uniqueIdentifierName, QObject* parentDevice) : GPxiChannel(uniqueIdentifierName, parentDevice) , m_Value(DefaultShortName(), this, GParam::ReadOnly) { //2011-11-22 SetParamToControl(m_Value); //2011-11-22 m_pDataLogger = new GTimeDataLogger(Name(), &m_DummyWidgetToParentWidgets); //2011-11-22 m_pDataLogger->setWindowTitle(Name() + " : Data Logger"); //2011-11-22 connect(m_pDataLogger, SIGNAL(NeedRefreshment()), this, SLOT(UpdateFromPhysicalInput())); //2011-11-22 connect(this, SIGNAL(MeasuredValueChanged(double)), m_pDataLogger, SLOT(UpdateData(double))); connect(this, SIGNAL(NameChanged(QString)), &m_Value, SLOT(SetName(QString))); CString name(uniqueIdentifierName.toAscii()); try{ CNiDAQmxAIChannel chanAI = AIChannels.CreateVoltageChannel(name, "", DAQmxAITerminalConfigurationRse, -10.0, 10.0, DAQmxAIVoltageUnitsVolts); } catch (CNiDAQmxException *exception) { exception->ReportError(); exception->Delete(); } }