summaryrefslogtreecommitdiffstats
path: root/src/kdesvnview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kdesvnview.h')
-rw-r--r--src/kdesvnview.h142
1 files changed, 142 insertions, 0 deletions
diff --git a/src/kdesvnview.h b/src/kdesvnview.h
new file mode 100644
index 0000000..d8799d0
--- /dev/null
+++ b/src/kdesvnview.h
@@ -0,0 +1,142 @@
+/***************************************************************************
+ * Copyright (C) 2005-2007 by Rajko Albrecht *
+ * *
+ * This program 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program 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 this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+ ***************************************************************************/
+
+
+#ifndef _KDESVNVIEW_H_
+#define _KDESVNVIEW_H_
+
+#include "src/svnqt/repositorylistener.hpp"
+#include <qwidget.h>
+#include <kparts/part.h>
+
+class QPainter;
+class KURL;
+class kdesvnfilelist;
+class KdeSvnDirList;
+class QVBoxLayout;
+class QHBoxLayout;
+class QGridLayout;
+class QSpacerItem;
+class QSplitter;
+class KActionCollection;
+class KTextBrowser;
+class KProgress;
+
+
+/**
+ * This is the main view class for kdesvn. Most of the non-menu,
+ * non-toolbar, and non-statusbar (e.g., non frame) GUI code should go
+ * here.
+ *
+ * @short Main view
+ * @author Rajko Albrecht <[email protected]>
+ * @version 0.1
+ */
+class kdesvnView : public QWidget,public svn::repository::RepositoryListener
+{
+ Q_OBJECT
+public:
+ /**
+ * Default constructor
+ */
+ kdesvnView(KActionCollection*,QWidget *parent,const char*name=0,bool full=false);
+
+ /**
+ * Destructor
+ */
+ virtual ~kdesvnView();
+
+ /**
+ * Random 'get' function
+ */
+ QString currentURL();
+
+ /**
+ * Random 'set' function accessed by DCOP
+ */
+ virtual bool openURL(QString url);
+
+ /**
+ * Random 'set' function
+ */
+ virtual bool openURL(const KURL& url);
+
+ /* repositorylistener methods */
+ virtual void sendWarning(const QString&);
+ virtual void sendError(const QString&);
+ virtual bool isCanceld();
+
+signals:
+ /**
+ * Use this signal to change the content of the statusbar
+ */
+ void signalChangeStatusbar(const QString&);
+
+ /**
+ * Use this signal to change the content of the caption
+ */
+ void signalChangeCaption(const QString&);
+
+ void sigShowPopup(const QString&,QWidget**);
+ void sigSwitchUrl(const KURL&);
+ void setWindowCaption(const QString&);
+ void sigUrlChanged(const QString&);
+ void sigMakeBaseDirs();
+
+ /* repositorylistener methods */
+ void tickProgress();
+ void waitShow(bool);
+
+public slots:
+ virtual void closeMe();
+ virtual void slotDispPopup(const QString&,QWidget**);
+ virtual void refreshCurrentTree();
+ virtual void slotSettingsChanged();
+ virtual void slotCreateRepo();
+ virtual void slotDumpRepo();
+ virtual void slotHotcopy();
+ virtual void slotLoaddump();
+
+ /* repositorylistener methods */
+ virtual void setCanceled(bool);
+ virtual void fillCacheStatus(Q_LONG,Q_LONG);
+
+protected slots:
+ virtual void slotOnURL(const QString& url);
+ virtual void slotSetTitle(const QString& title);
+ virtual void slotAppendLog(const QString& text);
+ virtual void slotUrlChanged(const QString&);
+
+protected:
+ kdesvnfilelist*m_flist;
+ KActionCollection*m_Collection;
+
+ QSplitter *m_Splitter,*m_infoSplitter;
+ QString m_currentURL;
+ KTextBrowser*m_LogWindow;
+ QVBoxLayout*m_topLayout;
+ KProgress*m_CacheProgressBar;
+
+protected:
+ virtual void setupActions();
+ bool m_ReposCancel;
+};
+
+#endif // _KDESVNVIEW_H_