Esempio n. 1
0
void CtrlrPanelUtilities::visibilityChanged()
{
    if (isVisible())
    {
        reloadContent();
    }
}
Esempio n. 2
0
//[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();
}
Esempio n. 3
0
    void LocalMapLayer::setLayerContent(const QString &overlayFile, qreal resolution,
                                        const GeoDataCoordinates &center, 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();
    }
Esempio n. 4
0
    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()));
    }
Esempio n. 5
0
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);
        }
    }
Esempio n. 6
0
 void LocalMapLayer::setVisible(bool visible)
 {
     mVisible = visible;
     reloadContent();
     emit localMapVisibilityChanged(visible);
 }
Esempio n. 7
0
void TrackActionButton::init()
{
    reloadContent( size() );
}