Polyphase Game Engine
Loading...
Searching...
No Matches
GitMergeDialog.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include "../GitTypes.h"
6#include <string>
7#include <vector>
8#include <cstdint>
9
10class GitMergeDialog
11{
12public:
13 void Open();
14 void Open(const std::string& commitOid, const std::string& commitSummary);
15 void Draw();
16
17private:
18 bool mIsOpen = false;
19 bool mJustOpened = false;
20
21 // Mode: 0 = merge branch, 1 = merge specific commit
22 int32_t mMode = 0;
23
24 // Branch mode
25 std::vector<std::string> mBranchNames;
26 int32_t mSelectedSourceBranch = 0;
27
28 // Commit mode
29 std::string mTargetCommitOid;
30 std::string mTargetCommitSummary;
31
32 std::string mCurrentBranch;
33 bool mNoFastForward = false;
34
35 bool mMergeInProgress = false;
36 bool mMergeDone = false;
37 std::string mMergeResult;
38 int32_t mMergeResultLevel = 0; // 0=success, 1=warning, 2=error
39};
40
41GitMergeDialog* GetGitMergeDialog();
42
43#endif