summaryrefslogtreecommitdiff
path: root/plugins/Scriver/chat/main.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-23 13:03:18 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-23 13:03:18 +0000
commit60338d55bb73d0c45b6e092703c4bb88a3c49755 (patch)
tree30305d6576617177f237046d95474173ba6ab194 /plugins/Scriver/chat/main.cpp
parent201ace762530e0bec270301fd23f039af3872875 (diff)
Rate, RecentContacts, Scriver: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1121 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/chat/main.cpp')
-rw-r--r--plugins/Scriver/chat/main.cpp110
1 files changed, 0 insertions, 110 deletions
diff --git a/plugins/Scriver/chat/main.cpp b/plugins/Scriver/chat/main.cpp
deleted file mode 100644
index 4ff0eef47d..0000000000
--- a/plugins/Scriver/chat/main.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
-Chat module plugin for Miranda IM
-
-Copyright (C) 2003 Jörgen Persson
-Copyright 2003-2009 Miranda ICQ/IM project,
-
-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.
-*/
-
-#include "../commonheaders.h"
-#include "chat.h"
-
-void RegisterChatFonts( void );
-
-extern struct GlobalMessageData *g_dat;
-extern CRITICAL_SECTION cs;
-//globals
-HMENU g_hMenu = NULL;
-HANDLE hJoinMenuItem, hLeaveMenuItem;
-
-FONTINFO aFonts[OPTIONS_FONTCOUNT];
-HBRUSH hListBkgBrush = NULL;
-HBRUSH hListSelectedBkgBrush = NULL;
-
-TCHAR* pszActiveWndID = 0;
-char* pszActiveWndModule = 0;
-
-struct GlobalLogSettings_t g_Settings;
-
-int Chat_Load()
-{
- InitializeCriticalSection(&cs);
- g_hMenu = LoadMenu(g_hInst, MAKEINTRESOURCE(IDR_MENU));
- TranslateMenu(g_hMenu);
- HookEvents();
- CreateServiceFunctions();
- CreateHookableEvents();
- return 0;
-}
-
-int Chat_Unload(void)
-{
- DBWriteContactSettingWord(NULL, "Chat", "SplitterX", (WORD)g_Settings.iSplitterX);
-
- CList_SetAllOffline(TRUE, NULL);
-
- mir_free( pszActiveWndID );
- mir_free( pszActiveWndModule );
-
- DestroyHookableEvents();
-
- DestroyMenu(g_hMenu);
- FreeIcons();
- OptionsUnInit();
- DeleteCriticalSection(&cs);
- return 0;
-}
-
-int Chat_ModulesLoaded(WPARAM wParam,LPARAM lParam)
-{
- char* mods[3] = { "Chat", "ChatFonts" };
- CallService( "DBEditorpp/RegisterModule", (WPARAM)mods, 2 );
- RegisterChatFonts();
- OptionsInit();
- LoadIcons();
- {
- CLISTMENUITEM mi = { 0 };
- mi.cbSize = sizeof(mi);
- mi.position = -2000090001;
- mi.flags = CMIF_DEFAULT | CMIF_ICONFROMICOLIB;
- mi.icolibItem = LoadSkinnedIconHandle( SKINICON_CHAT_JOIN );
- mi.pszName = LPGEN("&Join");
- mi.pszService = "GChat/JoinChat";
- hJoinMenuItem = Menu_AddContactMenuItem(&mi);
-
- mi.position = -2000090000;
- mi.flags = CMIF_NOTOFFLINE | CMIF_ICONFROMICOLIB;
- mi.icolibItem = LoadSkinnedIconHandle( SKINICON_CHAT_LEAVE );
- mi.pszName = LPGEN("&Leave");
- mi.pszService = "GChat/LeaveChat";
- hLeaveMenuItem = Menu_AddContactMenuItem(&mi);
- }
- CList_SetAllOffline(TRUE, NULL);
- return 0;
-}
-
-
-void LoadIcons(void)
-{
- LoadMsgLogBitmaps();
- return ;
-}
-
-void FreeIcons(void)
-{
- FreeMsgLogBitmaps();
- return;
-}