aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/squish/squishconstants.h
blob: cd495c6856269a69a2a61712db84b1885e20f0c6 (plain)
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
// Copyright (C) 2022 The Qt Company Ltd
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <QtGlobal>

namespace Squish::Constants {

const char SQUISH_ID[]                    = "SquishPlugin.Squish";
const char SQUISH_CONTEXT[]               = "Squish";
const char SQUISH_SETTINGS_CATEGORY[]     = "ZYY.Squish";

// MIME type defined by Squish plugin
const char SQUISH_OBJECTSMAP_MIMETYPE[] = "text/squish-objectsmap";
const char OBJECTSMAP_EDITOR_ID[]       = "Squish.ObjectsMapEditor";

} // namespace Squish::Constants

namespace Squish::Internal {

// SquishProcess related enums
enum SquishProcessState { Idle, Starting, Started, StartFailed, Stopped, StopFailed };

enum class RunnerState {
    None,
    Starting,
    Running,
    RunRequested,
    Interrupted,
    InterruptRequested,
    CancelRequested,
    CancelRequestedWhileInterrupted,
    Canceled,
    Finished
};

enum class StepMode { Continue, StepIn, StepOver, StepOut };

} // namespace Squish::Internal