summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/tdesvnfilelist.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-16 16:05:53 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-16 16:05:53 -0600
commit2a84b711d4c9c28fd6e03457311fd05203318d24 (patch)
treec825e162ec40405187fd4892b08e8e036a5db308 /src/svnfrontend/tdesvnfilelist.h
parent6cd1f99df4d8a5385335e0148fb0d4e424631e6b (diff)
downloadtdesvn-2a84b711d4c9c28fd6e03457311fd05203318d24.tar.gz
tdesvn-2a84b711d4c9c28fd6e03457311fd05203318d24.zip
Finish rename from prior commit
Diffstat (limited to 'src/svnfrontend/tdesvnfilelist.h')
-rw-r--r--src/svnfrontend/tdesvnfilelist.h244
1 files changed, 244 insertions, 0 deletions
diff --git a/src/svnfrontend/tdesvnfilelist.h b/src/svnfrontend/tdesvnfilelist.h
new file mode 100644
index 0000000..d1a9f78
--- /dev/null
+++ b/src/svnfrontend/tdesvnfilelist.h
@@ -0,0 +1,244 @@
+/***************************************************************************
+ * Copyright (C) 2005-2007 by Rajko Albrecht *
+ * ral@alwins-world.de *
+ * *
+ * 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 KDESVNFILELIST_H
+#define KDESVNFILELIST_H
+
+#include "itemdisplay.h"
+#include "filelistviewitem.h"
+#include "src/svnqt/status.hpp"
+#include "src/svnqt/client.hpp"
+
+#include <klistview.h>
+#include <kurl.h>
+#include <ktrader.h>
+#include <tqmap.h>
+#include <tqptrlist.h>
+#include <tqevent.h>
+
+class KAction;
+class KActionMenu;
+class KActionCollection;
+class KDialog;
+class KDialogBase;
+class KdesvnFileListPrivate;
+class SvnActions;
+
+namespace KIO {
+ class Job;
+}
+
+namespace svn {
+ class Revision;
+}
+/**
+@author Rajko Albrecht
+*/
+class tdesvnfilelist : public KListView,public ItemDisplay
+{
+ Q_OBJECT
+ TQ_OBJECT
+ friend class FileListViewItem;
+public:
+ tdesvnfilelist(KActionCollection*,TQWidget *parent = 0, const char *name = 0);
+ virtual ~tdesvnfilelist();
+
+ virtual bool openURL( const KURL &url,bool noReinit=false );
+ virtual SvnItem*SelectedOrMain();
+ virtual SvnItem*Selected();
+ virtual void SelectionList(SvnItemList*target);
+
+ virtual TQWidget*realWidget();
+
+ KActionCollection*filesActions();
+ bool refreshItem(FileListViewItem*);
+
+protected:
+ const svn::Revision& remoteRevision()const;
+ bool m_deletePerfect;
+ TQMap<TQString,bool> m_Dirsread;
+
+ KActionCollection* m_filesAction;
+ KAction*m_BlameAction,*m_BlameRangeAction,*m_CatAction,*m_MkdirAction;
+ KAction*m_InfoAction,*m_commitAction,*m_UpdateHead,*m_UpdateRev;
+ KAction*m_AddCurrent,*m_DelCurrent,*m_CheckoutAction,*m_CheckoutCurrentAction,*m_RevertAction;
+ KAction*m_changeToRepository,*m_switchRepository,*m_ExportAction,*m_ExportCurrentAction;
+ KAction*m_CleanupAction,*m_ResolvedAction,*m_ImportDirsIntoCurrent,*m_RefreshViewAction,*m_MergeRevisionAction;
+ KAction*m_RenameAction,*m_CopyAction;
+ KAction*m_LockAction,*m_UnlockAction,*m_IgnoreAction;
+
+ SvnActions*m_SvnWrapper;
+
+ /* the parent entry must removed from list before */
+ void insertDirs(FileListViewItem * _parent,svn::StatusEntries&);
+ bool checkDirs(const TQString&,FileListViewItem * _parent);
+ void setupActions();
+ svn::Client*svnclient();
+
+
+ FileListViewItem* singleSelected();
+ FileListViewItemList* allSelected();
+
+ template<class T> KDialogBase* createDialog(T**ptr,
+ const TQString&_head,
+ bool OkCancel=false,
+ const char*name="dialog",
+ bool showHelp=false
+ );
+
+ FileListViewItemList* m_SelectedItems;
+ FileListViewItem* findEntryItem(const TQString&,FileListViewItem*startAt=0);
+
+ virtual bool refreshRecursive(FileListViewItem*,bool down=true);
+ virtual void updateParents(FileListViewItem*);
+ virtual void checkUnversionedDirs( FileListViewItem * _parent );
+
+ /**
+ * Overridden virtuals for TQt drag 'n drop (XDND)
+ */
+ virtual void contentsDragEnterEvent( TQDragEnterEvent* );
+ virtual void contentsDragLeaveEvent( TQDragLeaveEvent* );
+ virtual void contentsDragMoveEvent( TQDragMoveEvent* );
+ virtual void contentsDropEvent( TQDropEvent* );
+ virtual bool acceptDrag(TQDropEvent *event)const;
+ //virtual void startDrag();
+ virtual TQDragObject* dragObject();
+
+ void dispDummy();
+ void reinitItems(FileListViewItem*_item = 0);
+ KURL::List selectedUrls();
+
+ virtual void contentsMouseMoveEvent( TQMouseEvent *e );
+ virtual void contentsMousePressEvent(TQMouseEvent*e);
+ virtual void contentsMouseReleaseEvent(TQMouseEvent*e);
+ virtual void contentsWheelEvent( TQWheelEvent * e );
+ virtual void leaveEvent(TQEvent*e);
+ virtual void rescanIconsRec(FileListViewItem*_parent=0,bool checkNewer=false,bool no_update=false);
+
+ KTrader::OfferList offersList(SvnItem*item,bool execOnly=false);
+
+private:
+ KdesvnFileListPrivate*m_pList;
+ void cleanHighLighter();
+ bool validDropEvent(TQDropEvent*event,TQListViewItem*&item);
+ void copy_move(bool move);
+
+protected slots:
+ virtual void slotSelectBrowsingRevision();
+ virtual void slotItemRead(TQListViewItem*);
+ virtual void slotContextMenuRequested(TQListViewItem *, const TQPoint &, int);
+ virtual void slotSelectionChanged();
+ virtual void slotClientException(const TQString&);
+ virtual void slotNotifyMessage(const TQString&);
+ virtual void slotDirAdded(const TQString&,FileListViewItem*);
+ virtual void slotReinitItem(SvnItem*);
+ virtual void slotItemDoubleClicked(TQListViewItem*);
+ virtual void slotImportIntoCurrent(bool);
+ virtual void slotImportDirsIntoCurrent();
+ virtual void slotImportIntoDir(const KURL&,const TQString&,bool);
+
+ /* subversion slots */
+ virtual void slotChangeToRepository();
+ virtual void slotCleanupAction();
+ virtual void slotResolved();
+ virtual void slotTryResolve();
+ virtual void slotMergeRevisions();
+ virtual void slotMerge();
+ virtual void slotDropped(TQDropEvent *,TQListViewItem*);
+ virtual void viewportPaintEvent(TQPaintEvent *);
+ virtual void slotRename();
+ virtual void slotCopy();
+ virtual void slotCat();
+ virtual void slotDelete();
+ virtual void slotDisplayLastDiff();
+
+ /* callback slots */
+ virtual void slotCopyFinished( KIO::Job *);
+ virtual void slotDeleteFinished(KIO::Job*);
+ virtual void _openURL(const TQString&);
+ virtual void _dirwatchTimeout();
+ virtual void _propListTimeout();
+
+ /* internal slots */
+ virtual void readSupportData();
+ virtual void slotUpdateLogCache();
+
+ virtual void enableActions();
+
+signals:
+ void sigLogMessage(const TQString&);
+ void changeCaption(const TQString&);
+ void sigShowPopup(const TQString&,TQWidget**);
+ void sigUrlOpend(bool);
+ void sigSwitchUrl(const KURL&);
+ void sigUrlChanged(const TQString&);
+ void sigProplist(const svn::PathPropertiesMapListPtr&,bool,const TQString&);
+ void sigListError();
+ void sigCachetqStatus(TQ_LONG,TQ_LONG);
+
+public slots:
+ virtual void refreshCurrentTree();
+ virtual void refreshCurrent(SvnItem*);
+ virtual void closeMe();
+ virtual void slotMkdir();
+ virtual void slotMkBaseDirs();
+ virtual void slotSettingsChanged();
+ virtual void slotChangeProperties(const svn::PropertiesMap&,const TQValueList<TQString>&,const TQString&);
+
+
+protected slots:
+ virtual void slotLock();
+ virtual void slotUnlock();
+ virtual void slotIgnore();
+ virtual void slotBlame();
+ virtual void slotRangeBlame();
+ virtual void slotSimpleHeadDiff();
+ virtual void slotSimpleBaseDiff();
+
+ virtual void slotDiffRevisions();
+ virtual void slotDiffPathes();
+ virtual void slotRevisionCat();
+ virtual void slotCheckUpdates();
+ virtual void slotInfo();
+ virtual void slotDirItemCreated(const TQString&);
+ virtual void slotDirItemDirty(const TQString&);
+ virtual void slotDirItemDeleted(const TQString&);
+ virtual void slotRelocate();
+ virtual void slotRescanIcons(bool);
+ virtual void slotCheckNewItems();
+ virtual void slotMakeRangeLog();
+ virtual void slotMakeLog();
+ virtual void slotMakeTree();
+ virtual void slotMakePartTree();
+ virtual void slotInternalDrop();
+ virtual void slotOpenWith();
+ virtual void slotDisplayProperties();
+
+ virtual void slotUnfoldTree();
+ virtual void slotFoldTree();
+
+private slots:
+ void gotPreview( const KFileItem*, const TQPixmap& );
+ void gotPreviewResult();
+protected:
+ virtual bool uniqueTypeSelected();
+ virtual void dispProperties(bool);
+};
+
+#endif