forked from nulled666/nppqcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNppQCP.h
More file actions
63 lines (40 loc) · 1.72 KB
/
Copy pathNppQCP.h
File metadata and controls
63 lines (40 loc) · 1.72 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
#ifndef PLUGINDEFINITION_H
#define PLUGINDEFINITION_H
#include "PluginInterface.h"
const TCHAR NPP_PLUGIN_NAME[] = TEXT("Quick Color Picker +");
const TCHAR NPP_PLUGIN_VER[] = TEXT("1.0");
const int _command_count = 4;
void AttachDll(HANDLE module);
void PluginInit();
void PluginCleanUp();
void LoadConfig();
void SaveConfig();
void InitCommandMenu();
void commandMenuCleanUp();
bool setCommand(size_t index, TCHAR *cmdName, PFUNCPLUGINCMD pFunc, ShortcutKey *sk = NULL, bool check0nInit = false);
////////////////////////////////////////////
void ToggleQCP();
void ToggleColorHighlight();
void VisitWebsite();
HWND GetScintilla();
void CreateMessageWindow();
void DestroyMessageWindow();
LRESULT CALLBACK MessageWindowWinproc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
void AddNppSubclass();
void RemoveNppSubclass();
LRESULT CALLBACK NppSubclassProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData);
void CreateColorPicker();
bool ShowColorPicker();
void HideColorPicker();
bool HasSelection();
bool CheckForHexColor(const HWND h_scintilla, const int start, const int end);
bool CheckForRgbColor(const HWND h_scintilla, const int start, const int end);
void WriteColor(COLORREF color);
void LoadRecentColor();
void SaveRecentColor();
void HighlightColorCode();
void RemoveColorHighlight();
void HighlightHexColor(const HWND h_scintilla, const int start_position, const int end_position);
void HighlightRgbColor(const HWND h_scintilla, const int start_position, const int end_position);
bool HighlightCode(const HWND h_scintilla, const COLORREF color, const int start, const int end);
#endif //PLUGINDEFINITION_H