mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-18 00:47:43 +02:00
Drop C prefix on Windows
This commit is contained in:
parent
e5e0a3b653
commit
9fd11da578
48 changed files with 555 additions and 555 deletions
|
@ -30,10 +30,10 @@
|
|||
#include "base/EventTypes.h"
|
||||
|
||||
//
|
||||
// CMSWindowsPortableTaskBarReceiver
|
||||
// MSWindowsPortableTaskBarReceiver
|
||||
//
|
||||
|
||||
const UINT CMSWindowsPortableTaskBarReceiver::s_stateToIconID[kMaxState] =
|
||||
const UINT MSWindowsPortableTaskBarReceiver::s_stateToIconID[kMaxState] =
|
||||
{
|
||||
IDI_TASKBAR_NOT_RUNNING,
|
||||
IDI_TASKBAR_NOT_WORKING,
|
||||
|
@ -41,7 +41,7 @@ const UINT CMSWindowsPortableTaskBarReceiver::s_stateToIconID[kMaxState] =
|
|||
IDI_TASKBAR_CONNECTED
|
||||
};
|
||||
|
||||
CMSWindowsPortableTaskBarReceiver::CMSWindowsPortableTaskBarReceiver(
|
||||
MSWindowsPortableTaskBarReceiver::MSWindowsPortableTaskBarReceiver(
|
||||
HINSTANCE appInstance, const BufferedLogOutputter* logBuffer, IEventQueue* events) :
|
||||
PortableTaskBarReceiver(events),
|
||||
m_events(events),
|
||||
|
@ -64,7 +64,7 @@ CMSWindowsPortableTaskBarReceiver::CMSWindowsPortableTaskBarReceiver(
|
|||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::cleanup()
|
||||
MSWindowsPortableTaskBarReceiver::cleanup()
|
||||
{
|
||||
ARCH->removeReceiver(this);
|
||||
for (UInt32 i = 0; i < kMaxState; ++i) {
|
||||
|
@ -74,13 +74,13 @@ CMSWindowsPortableTaskBarReceiver::cleanup()
|
|||
destroyWindow();
|
||||
}
|
||||
|
||||
CMSWindowsPortableTaskBarReceiver::~CMSWindowsPortableTaskBarReceiver()
|
||||
MSWindowsPortableTaskBarReceiver::~MSWindowsPortableTaskBarReceiver()
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::showStatus()
|
||||
MSWindowsPortableTaskBarReceiver::showStatus()
|
||||
{
|
||||
// create the window
|
||||
createWindow();
|
||||
|
@ -144,7 +144,7 @@ CMSWindowsPortableTaskBarReceiver::showStatus()
|
|||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::runMenu(int x, int y)
|
||||
MSWindowsPortableTaskBarReceiver::runMenu(int x, int y)
|
||||
{
|
||||
// do popup menu. we need a window to pass to TrackPopupMenu().
|
||||
// the SetForegroundWindow() and SendMessage() calls around
|
||||
|
@ -230,19 +230,19 @@ CMSWindowsPortableTaskBarReceiver::runMenu(int x, int y)
|
|||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::primaryAction()
|
||||
MSWindowsPortableTaskBarReceiver::primaryAction()
|
||||
{
|
||||
showStatus();
|
||||
}
|
||||
|
||||
const IArchTaskBarReceiver::Icon
|
||||
CMSWindowsPortableTaskBarReceiver::getIcon() const
|
||||
MSWindowsPortableTaskBarReceiver::getIcon() const
|
||||
{
|
||||
return reinterpret_cast<Icon>(m_icon[getStatus()]);
|
||||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::copyLog() const
|
||||
MSWindowsPortableTaskBarReceiver::copyLog() const
|
||||
{
|
||||
if (m_logBuffer != NULL) {
|
||||
// collect log buffer
|
||||
|
@ -255,7 +255,7 @@ CMSWindowsPortableTaskBarReceiver::copyLog() const
|
|||
|
||||
// copy log to clipboard
|
||||
if (!data.empty()) {
|
||||
CMSWindowsClipboard clipboard(m_window);
|
||||
MSWindowsClipboard clipboard(m_window);
|
||||
clipboard.open(0);
|
||||
clipboard.emptyUnowned();
|
||||
clipboard.add(IClipboard::kText, data);
|
||||
|
@ -265,7 +265,7 @@ CMSWindowsPortableTaskBarReceiver::copyLog() const
|
|||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::onStatusChanged()
|
||||
MSWindowsPortableTaskBarReceiver::onStatusChanged()
|
||||
{
|
||||
if (IsWindowVisible(m_window)) {
|
||||
showStatus();
|
||||
|
@ -273,7 +273,7 @@ CMSWindowsPortableTaskBarReceiver::onStatusChanged()
|
|||
}
|
||||
|
||||
HICON
|
||||
CMSWindowsPortableTaskBarReceiver::loadIcon(UINT id)
|
||||
MSWindowsPortableTaskBarReceiver::loadIcon(UINT id)
|
||||
{
|
||||
HANDLE icon = LoadImage(m_appInstance,
|
||||
MAKEINTRESOURCE(id),
|
||||
|
@ -284,7 +284,7 @@ CMSWindowsPortableTaskBarReceiver::loadIcon(UINT id)
|
|||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::deleteIcon(HICON icon)
|
||||
MSWindowsPortableTaskBarReceiver::deleteIcon(HICON icon)
|
||||
{
|
||||
if (icon != NULL) {
|
||||
DestroyIcon(icon);
|
||||
|
@ -292,7 +292,7 @@ CMSWindowsPortableTaskBarReceiver::deleteIcon(HICON icon)
|
|||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::createWindow()
|
||||
MSWindowsPortableTaskBarReceiver::createWindow()
|
||||
{
|
||||
// ignore if already created
|
||||
if (m_window != NULL) {
|
||||
|
@ -303,7 +303,7 @@ CMSWindowsPortableTaskBarReceiver::createWindow()
|
|||
m_window = CreateDialogParam(m_appInstance,
|
||||
MAKEINTRESOURCE(IDD_TASKBAR_STATUS),
|
||||
NULL,
|
||||
(DLGPROC)&CMSWindowsPortableTaskBarReceiver::staticDlgProc,
|
||||
(DLGPROC)&MSWindowsPortableTaskBarReceiver::staticDlgProc,
|
||||
reinterpret_cast<LPARAM>(
|
||||
reinterpret_cast<void*>(this)));
|
||||
|
||||
|
@ -318,7 +318,7 @@ CMSWindowsPortableTaskBarReceiver::createWindow()
|
|||
}
|
||||
|
||||
void
|
||||
CMSWindowsPortableTaskBarReceiver::destroyWindow()
|
||||
MSWindowsPortableTaskBarReceiver::destroyWindow()
|
||||
{
|
||||
if (m_window != NULL) {
|
||||
ArchTaskBarWindows::removeDialog(m_window);
|
||||
|
@ -328,7 +328,7 @@ CMSWindowsPortableTaskBarReceiver::destroyWindow()
|
|||
}
|
||||
|
||||
BOOL
|
||||
CMSWindowsPortableTaskBarReceiver::dlgProc(HWND hwnd,
|
||||
MSWindowsPortableTaskBarReceiver::dlgProc(HWND hwnd,
|
||||
UINT msg, WPARAM wParam, LPARAM)
|
||||
{
|
||||
switch (msg) {
|
||||
|
@ -347,14 +347,14 @@ CMSWindowsPortableTaskBarReceiver::dlgProc(HWND hwnd,
|
|||
}
|
||||
|
||||
BOOL CALLBACK
|
||||
CMSWindowsPortableTaskBarReceiver::staticDlgProc(HWND hwnd,
|
||||
MSWindowsPortableTaskBarReceiver::staticDlgProc(HWND hwnd,
|
||||
UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
// if msg is WM_INITDIALOG, extract the CMSWindowsPortableTaskBarReceiver*
|
||||
// if msg is WM_INITDIALOG, extract the MSWindowsPortableTaskBarReceiver*
|
||||
// and put it in the extra window data then forward the call.
|
||||
CMSWindowsPortableTaskBarReceiver* self = NULL;
|
||||
MSWindowsPortableTaskBarReceiver* self = NULL;
|
||||
if (msg == WM_INITDIALOG) {
|
||||
self = reinterpret_cast<CMSWindowsPortableTaskBarReceiver*>(
|
||||
self = reinterpret_cast<MSWindowsPortableTaskBarReceiver*>(
|
||||
reinterpret_cast<void*>(lParam));
|
||||
SetWindowLongPtr(hwnd, GWLP_USERDATA, lParam);
|
||||
}
|
||||
|
@ -362,7 +362,7 @@ CMSWindowsPortableTaskBarReceiver::staticDlgProc(HWND hwnd,
|
|||
// get the extra window data and forward the call
|
||||
LONG data = (LONG)GetWindowLongPtr(hwnd, GWLP_USERDATA);
|
||||
if (data != 0) {
|
||||
self = reinterpret_cast<CMSWindowsPortableTaskBarReceiver*>(
|
||||
self = reinterpret_cast<MSWindowsPortableTaskBarReceiver*>(
|
||||
reinterpret_cast<void*>(data));
|
||||
}
|
||||
}
|
||||
|
@ -389,6 +389,6 @@ createTaskBarReceiver(const BufferedLogOutputter* logBuffer, IEventQueue* events
|
|||
IMAGE_ICON,
|
||||
16, 16, LR_SHARED));
|
||||
|
||||
return new CMSWindowsPortableTaskBarReceiver(
|
||||
CMSWindowsScreen::getWindowInstance(), logBuffer, events);
|
||||
return new MSWindowsPortableTaskBarReceiver(
|
||||
MSWindowsScreen::getWindowInstance(), logBuffer, events);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue