void CtrlrPanelUtilities::visibilityChanged() { if (isVisible()) { reloadContent(); } }
//[MiscUserCode] You can add your own definitions of your custom methods or any other code here... void CtrlrPanelUtilities::changeListenerCallback (ChangeBroadcaster* source) { if (owner.getSelection() == nullptr || !isVisible()) return; if (owner.getSelection()->getNumSelected() == 0) return; reloadContent(); }
void LocalMapLayer::setLayerContent(const QString &overlayFile, qreal resolution, const GeoDataCoordinates ¢er, qreal rotation, QPointF origin) { QFileInfo info(overlayFile); if (!info.exists() || !info.isFile() || !info.isReadable()) { qWarning("LocalMapLayer received file path that does not match a readable file!"); return; } mLocalMapLogic->setOverlay(overlayFile, resolution, center, rotation, origin); mHasContent = true; reloadContent(); emit localMapHasContent(); }
LocalMapLayer::LocalMapLayer(MarbleModel *model, MarbleMap *map) : mLocalMapLogic(new LocalMapLogic(model, map)), mModel(model), mMap(map), mVisible(false), mHasContent(false), mManualGeolocalization(false) { mOverlay = new GeoDataGroundOverlay(); mMainLocalMapDocument.append(mOverlay); mModel->treeModel()->addDocument(&mMainLocalMapDocument); connect(mLocalMapLogic.data(), SIGNAL(requiresUpdate()), this, SLOT(reloadContent())); }
FileEditor::FileEditor(const QString &filename, QMdiSubWindow *parent, const QString &baseDir) : mFilename(filename), mdiWindow(parent), mBaseDir(baseDir) { mFocusRecursion = mChanged = mOmitReloadChecks = false; mCurrentBreakpoint = -1; // Update GUI and content reloadContent(); setupEditor(); updateLexer(); updateWindowTitle(); HilecInterface* hilec = HilecSingleton::hilec(); if(hilec) { QList<int> breakpoints = hilec->breakpoints(mFilename); foreach(int line, breakpoints){ toggleBreakpoint(line-1); } }
void LocalMapLayer::setVisible(bool visible) { mVisible = visible; reloadContent(); emit localMapVisibilityChanged(visible); }
void TrackActionButton::init() { reloadContent( size() ); }