void TextControl::Transition(ControlTransitionEnum eTrans, Pos *pMousePos) { if (m_eCurrentState == CS_MouseOver && eTrans == CT_MouseLButtonUp) m_pParent->SendControlMessage(this, CM_Pressed); switch(eTrans) { case CT_MouseEnter: m_pParent->SendControlMessage(this, CM_MouseEnter); break; case CT_MouseLeave: m_pParent->SendControlMessage(this, CM_MouseLeave); break; case CT_MouseLButtonDoubleClick: m_pParent->SendControlMessage(this, CM_MouseDoubleClick); break; case CT_SetValue: TextChanged(); break; case CT_Timer: MarqueeText(); break; case CT_Show: TextChanged(); break; default: break; } }
AddStreamDialog::AddStreamDialog(QWidget* parent) : QDialog(parent), ui_(new Ui_AddStreamDialog), saved_radio_(nullptr) { ui_->setupUi(this); connect(ui_->url, SIGNAL(textChanged(QString)), SLOT(TextChanged(QString))); TextChanged(QString::null); // Restore settings QSettings s; s.beginGroup(kSettingsGroup); ui_->save->setChecked(s.value("save", true).toBool()); ui_->url->setText(s.value("url").toString()); ui_->name->setText(s.value("name").toString()); }
void TextAttachment::TextureResized( const TextureIdList& oldTextureIds, unsigned int newTextureId ) { bool matched( false ); // check if resized texture is the one we are using for( std::size_t i = 0, count = oldTextureIds.size(); i < count; ++i ) { if( oldTextureIds[i] == mTextureId ) { matched = true; break; } } DALI_LOG_INFO(Debug::Filter::gResource, Debug::General, "TextAttachment::TextureResized() Current texture: %d New texture: %d\n", mTextureId, newTextureId); if( newTextureId == mTextureId ) { // nothing has changed, we are using the new texture already return; } // the texture we're using has been replaced // re-request the text vertex information and update the texture id on the scene graph text attachment if( matched ) { mTextRequestHelper.TextureChanged( mTextureId, newTextureId ); mTextureId = newTextureId; mTextChanged = true; TextChanged(); return; } }
/** * GrowingTextEdit */ GrowingTextEdit::GrowingTextEdit(QWidget *parent) :QTextEdit(parent) { connect(this, SIGNAL(textChanged()), this, SLOT(TextChanged())); setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); }
SearchBoxWidget::SearchBoxWidget(InternetService* service) : service_(service), ui_(new Ui_SearchBoxWidget), menu_(new QMenu(tr("Display options"), this)) { ui_->setupUi(this); // Icons ui_->options->setIcon(IconLoader::Load("configure", IconLoader::Base)); // Options menu menu_->setIcon(ui_->options->icon()); ui_->options->setMenu(menu_); menu_->addAction(IconLoader::Load("configure", IconLoader::Base), tr("Configure %1...").arg(service_->name()), service_, SLOT(ShowConfig())); ui_->filter->setPlaceholderText( QString("Search on %1").arg(service_->name())); connect(ui_->filter, SIGNAL(textChanged(QString)), SIGNAL(TextChanged(QString))); did_you_mean_ = new DidYouMean(ui_->filter, this); connect(did_you_mean_, SIGNAL(Accepted(QString)), ui_->filter, SLOT(setText(QString))); }
void TextComponent::SetText(const QString& text) { mText = text; if(mLabel != nullptr) { mLabel->setCaption(Utils::ToStdString(mText)); mRefresh = true; } emit TextChanged(); }
void LinkedUnit::Create( IUnit *active, IUnit *inactive, bool isActiveLeft ) { left = isActiveLeft ? active : inactive; right = isActiveLeft ? inactive : active; this->active = active; setFocusProxy(active); splitter->addWidget(left); splitter->addWidget(right); splitter->setSizes(QList<int>() << width() << width()); layout->addWidget(splitter); left->show(); right->show(); connect(left, SIGNAL(FocusIn()), SLOT(LinkedUnitFocusIn())); connect(right, SIGNAL(FocusIn()), SLOT(LinkedUnitFocusIn())); connect(left, SIGNAL(TextChanged()), this, SIGNAL(TextChanged())); connect(right, SIGNAL(TextChanged()), this, SIGNAL(TextChanged())); }
void Unit_WebKit::Create( IUnit *createdFrom ) { if (IPanel *panel = dynamic_cast<IPanel *>(createdFrom)) { const FileInfo *const info = panel->GetCurrentFile(); text = info->name; path = info->path; emit TextChanged(); OpenFile(); } }
void UITextEditor::SetText(const QString &Text) { if (m_text != Text) { m_text = Text; if (m_textWidget) m_textWidget->SetText(m_text); emit TextChanged(); } UpdateCursor(); }
SpotifyService::SpotifyService(Application* app, InternetModel* parent) : InternetService(kServiceName, app, parent, parent), server_(nullptr), blob_process_(nullptr), root_(nullptr), search_(nullptr), starred_(nullptr), inbox_(nullptr), toplist_(nullptr), login_task_id_(0), context_menu_(nullptr), playlist_context_menu_(nullptr), song_context_menu_(nullptr), playlist_sync_action_(nullptr), get_url_to_share_playlist_(nullptr), remove_from_playlist_(nullptr), search_box_(new SearchBoxWidget(this)), search_delay_(new QTimer(this)), login_state_(LoginState_OtherError), bitrate_(pb::spotify::Bitrate320k), volume_normalisation_(false) { // Build the search path for the binary blob. // Look for one distributed alongside clementine first, then check in the // user's home directory for any that have been downloaded. #ifdef Q_OS_MAC system_blob_path_ = QCoreApplication::applicationDirPath() + "/../PlugIns/clementine-spotifyblob"; #else system_blob_path_ = QCoreApplication::applicationDirPath() + "/clementine-spotifyblob" CMAKE_EXECUTABLE_SUFFIX; #endif local_blob_version_ = QString("version%1-%2bit") .arg(SPOTIFY_BLOB_VERSION) .arg(sizeof(void*) * 8); local_blob_path_ = Utilities::GetConfigPath(Utilities::Path_LocalSpotifyBlob) + "/" + local_blob_version_ + "/blob"; qLog(Debug) << "Spotify system blob path:" << system_blob_path_; qLog(Debug) << "Spotify local blob path:" << local_blob_path_; app_->global_search()->AddProvider(new SpotifySearchProvider(app_, this)); search_delay_->setInterval(kSearchDelayMsec); search_delay_->setSingleShot(true); connect(search_delay_, SIGNAL(timeout()), SLOT(DoSearch())); connect(search_box_, SIGNAL(TextChanged(QString)), SLOT(Search(QString))); }
SoundCloudService::SoundCloudService(Application* app, InternetModel* parent) : InternetService(kServiceName, app, parent, parent), root_(nullptr), search_(nullptr), user_tracks_(nullptr), user_playlists_(nullptr), user_activities_(nullptr), network_(new NetworkAccessManager(this)), context_menu_(nullptr), search_box_(new SearchBoxWidget(this)), search_delay_(new QTimer(this)), next_pending_search_id_(0) { search_delay_->setInterval(kSearchDelayMsec); search_delay_->setSingleShot(true); connect(search_delay_, SIGNAL(timeout()), SLOT(DoSearch())); SoundCloudSearchProvider* search_provider = new SoundCloudSearchProvider(app_, this); search_provider->Init(this); app_->global_search()->AddProvider(search_provider); connect(search_box_, SIGNAL(TextChanged(QString)), SLOT(Search(QString))); }
void CBFunctionMenu::CBFunctionMenuX ( JXFileDocument* doc, const CBTextFileType type, JXTEBase* te ) { itsDoc = doc; itsFileType = kCBUnknownFT; itsLang = kCBOtherLang; itsTE = te; itsCaretItemIndex = 0; itsLineIndexList = jnew JArray<JIndex>(100); assert( itsLineIndexList != NULL ); SetEmptyMenuItems(); SetUpdateAction(kDisableNone); ListenTo(this); TextChanged(type, ""); }
void TextControl::Init(void) { TextChanged(); }
HRESULT __stdcall CEScriptDocument::OnTextDocumentDeletedText(long offset, long len) { TextChanged(); return S_OK; }
HRESULT __stdcall CEScriptDocument::OnTextDocumentContentChanged() { TextChanged(); return S_OK; }