summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgutils.h
blob: ff0bdfd815d8b0ac7764f666c5dbb0279190c857 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/////////////////////////////////////////////////////////////////////////////////////////
// Miranda NG: the free IM client for Microsoft* Windows*
//
// Copyright (ñ) 2012-15 Miranda NG project,
// Copyright (c) 2000-09 Miranda ICQ/IM project,
// all portions of this codebase are copyrighted to the people
// listed in contributors.txt.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// you should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
// part of tabSRMM messaging plugin for Miranda.
//
// (C) 2005-2010 by silvercircle _at_ gmail _dot_ com and contributors

#ifndef _MSGDLGUTILS_H
#define _MSGDLGUTILS_H

#define WANT_IEVIEW_LOG 1
#define WANT_HPP_LOG 2

void   TSAPI CalcDynamicAvatarSize(TWindowData *dat, BITMAP *bminfo);
char*  TSAPI GetCurrentMetaContactProto(TWindowData *dat);
int    TSAPI MsgWindowUpdateMenu(TWindowData *dat, HMENU submenu, int menuID);
int    TSAPI MsgWindowMenuHandler(TWindowData *dat, int selection, int menuId);
bool   TSAPI GetAvatarVisibility(HWND hwndDlg, TWindowData *dat);
void   TSAPI ProcessAvatarChange(HWND hwnd, LPARAM lParam);
void   TSAPI UpdateStatusBar(const TWindowData *dat);
int    TSAPI CheckValidSmileyPack(const char *szProto, MCONTACT hContact);
TCHAR* TSAPI QuoteText(const TCHAR *text, int charsPerLine, int removeExistingQuotes);
void   TSAPI UpdateReadChars(const TWindowData *dat);
void   TSAPI ShowPicture(TWindowData *dat, BOOL showNewPic);
void   TSAPI AdjustBottomAvatarDisplay(TWindowData *dat);
void   TSAPI SetDialogToType(HWND hwndDlg);
void   TSAPI FlashOnClist(HWND hwndDlg, TWindowData *dat, HANDLE hEvent, DBEVENTINFO *dbei);
char*  TSAPI Message_GetFromStream(HWND hwndDlg, const TWindowData *dat, DWORD dwPassedFlags);
BOOL   TSAPI DoRtfToTags(TCHAR * pszText, const TWindowData *dat);
void   TSAPI GetMYUIN(TWindowData *dat);
void   TSAPI SetMessageLog(TWindowData *dat);
void   TSAPI SwitchMessageLog(TWindowData *dat, int iMode);
UINT   TSAPI GetIEViewMode(MCONTACT hContact);
void   TSAPI FindFirstEvent(TWindowData *dat);
void   TSAPI SaveSplitter(TWindowData *dat);
void   TSAPI LoadSplitter(TWindowData *dat);
void   TSAPI PlayIncomingSound(const TWindowData *dat);
void   TSAPI GetSendFormat(TWindowData *dat, int mode);
void   TSAPI GetLocaleID(TWindowData *dat, const TCHAR *szKLName);
void   TSAPI LoadOwnAvatar(TWindowData *dat);
void   TSAPI LoadContactAvatar(TWindowData *dat);
void   TSAPI LoadTimeZone(TWindowData *dat);
void   TSAPI HandlePasteAndSend(const TWindowData *dat);
int    TSAPI MsgWindowDrawHandler(WPARAM wParam, LPARAM lParam, TWindowData *dat);
void   TSAPI LoadOverrideTheme(TContainerData *pContainer);
void   TSAPI LoadThemeDefaults(TContainerData *pContainer);
void   TSAPI ConfigureSmileyButton(TWindowData *dat);
int    TSAPI CutContactName(const TCHAR *szold, TCHAR *sznew, unsigned int size);
void   TSAPI SendNudge(const TWindowData *dat);
void   TSAPI EnableSendButton(const TWindowData *dat, int iMode);
LRESULT TSAPI GetSendButtonState(HWND hwnd);
HICON  TSAPI GetXStatusIcon(const TWindowData *dat);
void   TSAPI FlashTab(TWindowData *dat, HWND hwndTab, int iTabindex, BOOL *bState, BOOL mode, HICON origImage);
void   TSAPI GetClientIcon(TWindowData *dat);
void   TSAPI RearrangeTab(HWND hwndDlg, const TWindowData *dat, int iMode, BOOL fSavePos);
void   TSAPI GetCachedStatusMsg(TWindowData *dat);
bool   TSAPI IsStatusEvent(int eventType);
bool   TSAPI IsCustomEvent(int eventType);
void   TSAPI GetMyNick(TWindowData *dat);
HICON  TSAPI MY_GetContactIcon(const TWindowData *dat, LPCSTR szSetting);
void   TSAPI CheckAndDestroyIEView(TWindowData *dat);
void   TSAPI KbdState(TWindowData *dat, BOOL& isShift, BOOL& isControl, BOOL& isAlt);
void   TSAPI ClearLog(TWindowData *dat);
bool   TSAPI IsAutoSplitEnabled(const TWindowData *dat);
LONG   TSAPI GetDefaultMinimumInputHeight(const TWindowData *dat);
void   TSAPI DetermineMinHeight(TWindowData *dat);

void	 TSAPI CleanTempFiles();
void 	 TSAPI SendHBitmapAsFile(const TWindowData *dat, HBITMAP hbmp);

extern INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
extern INT_PTR CALLBACK DlgProcContainerOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);

#endif