Changeset View
Changeset View
Standalone View
Standalone View
git/fileviewgitplugin.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 49 | private slots: | |||
---|---|---|---|---|---|
51 | void revertFiles(); | 51 | void revertFiles(); | ||
52 | void showLocalChanges(); | 52 | void showLocalChanges(); | ||
53 | void removeFiles(); | 53 | void removeFiles(); | ||
54 | void checkout(); | 54 | void checkout(); | ||
55 | void commit(); | 55 | void commit(); | ||
56 | void createTag(); | 56 | void createTag(); | ||
57 | void push(); | 57 | void push(); | ||
58 | void pull(); | 58 | void pull(); | ||
59 | void log(); | ||||
60 | void showDiff(const QUrl &link); | ||||
59 | 61 | | |||
60 | void slotOperationCompleted(int exitCode, QProcess::ExitStatus exitStatus); | 62 | void slotOperationCompleted(int exitCode, QProcess::ExitStatus exitStatus); | ||
61 | void slotOperationError(); | 63 | void slotOperationError(); | ||
62 | private: | 64 | private: | ||
63 | QList<QAction*> contextMenuFilesActions(const KFileItemList& items) const; | 65 | QList<QAction*> contextMenuFilesActions(const KFileItemList& items) const; | ||
64 | QList<QAction*> contextMenuDirectoryActions(const QString& directory) const; | 66 | QList<QAction*> contextMenuDirectoryActions(const QString& directory) const; | ||
65 | /** | 67 | /** | ||
66 | * Reads into buffer from device until we reach the next \0 or maxChars have been read. | 68 | * Reads into buffer from device until we reach the next \0 or maxChars have been read. | ||
Show All 40 Lines | 100 | private: | |||
107 | QAction* m_revertAction; | 109 | QAction* m_revertAction; | ||
108 | QAction* m_showLocalChangesAction; | 110 | QAction* m_showLocalChangesAction; | ||
109 | QAction* m_removeAction; | 111 | QAction* m_removeAction; | ||
110 | QAction* m_checkoutAction; | 112 | QAction* m_checkoutAction; | ||
111 | QAction* m_commitAction; | 113 | QAction* m_commitAction; | ||
112 | QAction* m_tagAction; | 114 | QAction* m_tagAction; | ||
113 | QAction* m_pushAction; | 115 | QAction* m_pushAction; | ||
114 | QAction* m_pullAction; | 116 | QAction* m_pullAction; | ||
117 | QAction* m_logAction; | ||||
115 | 118 | | |||
116 | QString m_currentDir; | 119 | QString m_currentDir; | ||
117 | QProcess m_process; | 120 | QProcess m_process; | ||
118 | QString m_command; | 121 | QString m_command; | ||
119 | QStringList m_arguments; | 122 | QStringList m_arguments; | ||
120 | QString m_operationCompletedMsg; | 123 | QString m_operationCompletedMsg; | ||
121 | QString m_errorMsg; | 124 | QString m_errorMsg; | ||
122 | 125 | | |||
123 | //Current targets. m_contextItems is used if and only if m_contextDir is empty. | 126 | //Current targets. m_contextItems is used if and only if m_contextDir is empty. | ||
124 | mutable QString m_contextDir; | 127 | mutable QString m_contextDir; | ||
125 | mutable KFileItemList m_contextItems; | 128 | mutable KFileItemList m_contextItems; | ||
126 | }; | 129 | }; | ||
127 | #endif // FILEVIEWGITPLUGIN_H | 130 | #endif // FILEVIEWGITPLUGIN_H | ||
128 | 131 | |