Artifact 39912de184076017c47da90aa61d1d5c921b67c343389b58b6fd6136d481029f:

  • File src/KraView.hxx — part of check-in [b015bb1dee] at 2017-04-25 09:34:12 on branch trunk — Remove duplicated prev/next buttons. (user: fifr size: 1267)

/*
 * Copyright (c) 2017 Frank Fischer
 *
 * This file is part of KraView.
 *
 * KraView is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * KraView is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with KraView.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef KRAVIEW_HXX
#define KRAVIEW_HXX

#include <KXmlGuiWindow>

#include <memory>

class KraView : public KXmlGuiWindow
{
    Q_OBJECT

public:
    KraView();
    ~KraView();

public slots:
    void loadGraph(const QUrl& url);

private:
    void setupActions();

private slots:
    void updateSlider(int value);

    void openFile();
    void graphLoaded();

    void goFirst();
    void goPrev();
    void goNext();
    void goLast();

public:
    struct Data;
    struct NetseqItem;

private:
    std::unique_ptr<Data> d;
};

#endif // KRAVIEW_HXX