This repository was archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRepositoryModule.h
More file actions
77 lines (61 loc) · 1.75 KB
/
RepositoryModule.h
File metadata and controls
77 lines (61 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* MacGitver
* Copyright (C) 2012-2013 The MacGitver-Developers <dev@macgitver.org>
*
* (C) Sascha Cunz <sascha@macgitver.org>
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU General Public License (Version 2) as published by the Free Software Foundation.
*
* 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, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef MGV_MODULE_REPOSITORY_H
#define MGV_MODULE_REPOSITORY_H
#include "libMacGitverCore/MacGitver/Module.h"
#include "libMacGitverCore/Config/ConfigUser.h"
#include "hic_RepositoryModule.h"
namespace RM
{
class Repo;
}
class RepositoryModule
: public Module
, public RepositoryActions
, private ConfigUser
{
Q_OBJECT
Q_PLUGIN_METADATA(
IID "org.macgitver.Module/0.1"
FILE "Module.json"
)
Q_INTERFACES(
Module
)
public:
RepositoryModule();
~RepositoryModule();
public:
void setupConfigPages( ConfigDialog* dlg );
void initialize();
void deinitialize();
private slots:
void onRepositoryCreate();
void onRepositoryClone();
void onRepositoryOpen();
void onRepositoryClose();
void onRecentRepositoryOpen( const QVariant& path );
void onRepositoryOpenHelper();
void onCoreRepoOpen(RM::Repo* repo);
private:
void updateMostRecentlyUsedMenu();
private:
QStringList mMostRecentlyUsed;
Git::Repository mRepo;
};
#endif