Changeset View
Changeset View
Standalone View
Standalone View
git/fileviewgitplugin.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 49 | private slots: | |||
---|---|---|---|---|---|
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(); | 59 | void log(); | ||
60 | void showDiff(const QUrl &link); | 60 | void showDiff(const QUrl &link); | ||
61 | void merge(); | ||||
61 | 62 | | |||
62 | void slotOperationCompleted(int exitCode, QProcess::ExitStatus exitStatus); | 63 | void slotOperationCompleted(int exitCode, QProcess::ExitStatus exitStatus); | ||
63 | void slotOperationError(); | 64 | void slotOperationError(); | ||
64 | private: | 65 | private: | ||
65 | QList<QAction*> contextMenuFilesActions(const KFileItemList& items) const; | 66 | QList<QAction*> contextMenuFilesActions(const KFileItemList& items) const; | ||
66 | QList<QAction*> contextMenuDirectoryActions(const QString& directory) const; | 67 | QList<QAction*> contextMenuDirectoryActions(const QString& directory) const; | ||
67 | /** | 68 | /** | ||
68 | * Reads into buffer from device until we reach the next \0 or maxChars have been read. | 69 | * Reads into buffer from device until we reach the next \0 or maxChars have been read. | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 101 | private: | |||
110 | QAction* m_showLocalChangesAction; | 111 | QAction* m_showLocalChangesAction; | ||
111 | QAction* m_removeAction; | 112 | QAction* m_removeAction; | ||
112 | QAction* m_checkoutAction; | 113 | QAction* m_checkoutAction; | ||
113 | QAction* m_commitAction; | 114 | QAction* m_commitAction; | ||
114 | QAction* m_tagAction; | 115 | QAction* m_tagAction; | ||
115 | QAction* m_pushAction; | 116 | QAction* m_pushAction; | ||
116 | QAction* m_pullAction; | 117 | QAction* m_pullAction; | ||
117 | QAction* m_logAction; | 118 | QAction* m_logAction; | ||
119 | QAction* m_mergeAction; | ||||
118 | 120 | | |||
119 | QString m_currentDir; | 121 | QString m_currentDir; | ||
120 | QProcess m_process; | 122 | QProcess m_process; | ||
121 | QString m_command; | 123 | QString m_command; | ||
122 | QStringList m_arguments; | 124 | QStringList m_arguments; | ||
123 | QString m_operationCompletedMsg; | 125 | QString m_operationCompletedMsg; | ||
124 | QString m_errorMsg; | 126 | QString m_errorMsg; | ||
125 | 127 | | |||
126 | //Current targets. m_contextItems is used if and only if m_contextDir is empty. | 128 | //Current targets. m_contextItems is used if and only if m_contextDir is empty. | ||
127 | mutable QString m_contextDir; | 129 | mutable QString m_contextDir; | ||
128 | mutable KFileItemList m_contextItems; | 130 | mutable KFileItemList m_contextItems; | ||
129 | }; | 131 | }; | ||
130 | #endif // FILEVIEWGITPLUGIN_H | 132 | #endif // FILEVIEWGITPLUGIN_H | ||
131 | 133 | |