Polyphase Game Engine
Loading...
Searching...
No Matches
GitSyncBranchDialog.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 GitSyncBranchDialog
11{
12public:
13 void Open(const std::string& branchName);
14 void Draw();
15
16private:
17 bool mIsOpen = false;
18 bool mJustOpened = false;
19
20 std::string mTargetBranch;
21 std::string mCurrentBranch;
22
23 // Commit selector
24 std::vector<GitCommitInfo> mCommits;
25 int32_t mSelectedCommitIndex = 0;
26
27 bool mCheckoutAfter = false;
28 bool mNoFastForward = false;
29
30 // Operation state
31 bool mRunning = false;
32 bool mDone = false;
33 std::string mResultMessage;
34 int32_t mResultLevel = 0; // 0=success, 1=warning, 2=error
35};
36
37GitSyncBranchDialog* GetGitSyncBranchDialog();
38
39#endif