Skip to content

Commit

Permalink
- removed now unused libctiny -> also leading to bigger output dlls
Browse files Browse the repository at this point in the history
- updated notepad interface files with current versions
  • Loading branch information
chcg committed Sep 21, 2016
1 parent 7001d7a commit b7f2f92
Show file tree
Hide file tree
Showing 6 changed files with 1,091 additions and 263 deletions.
Binary file removed src/Libs/LIBCTINY.LIB
Binary file not shown.
92 changes: 48 additions & 44 deletions src/Notepad_specific/Docking.h
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
/*
This file is part of Notepad++ - interface defines
Copyright (C)2006 Jens Lorenz <[email protected]>
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/


#ifndef DOCKING_H
#define DOCKING_H


#include "windows.h"
// this file is part of Notepad++
// Copyright (C)2005 Jens Lorenz <[email protected]>
//
// 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.
//
// // Note that the GPL places important restrictions on "derived works", yet
// it does not provide a detailed definition of that term. To avoid
// misunderstandings, we consider an application to constitute a
// "derivative work" for the purpose of this license if it does any of the
// following:
// 1. Integrates source code from Notepad++.
// 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
// installer, such as those produced by InstallShield.
// 3. Links to a library or executes a program that does any of the above.
//
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.


#pragma once

#include <windows.h>

// ATTENTION : It's a part of interface header, so don't include the others header here

// styles for containers
#define CAPTION_TOP TRUE
#define CAPTION_BOTTOM FALSE

// defines for docking manager
#define CONT_LEFT 0
Expand All @@ -47,35 +59,27 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

typedef struct {
HWND hClient; // client Window Handle
char* pszName; // name of plugin (shown in window)
const TCHAR *pszName; // name of plugin (shown in window)
int dlgID; // a funcItem provides the function pointer to start a dialog. Please parse here these ID

/* user modifications */
// user modifications
UINT uMask; // mask params: look to above defines
HICON hIconTab; // icon for tabs
char* pszAddInfo; // for plugin to display additional informations
const TCHAR *pszAddInfo; // for plugin to display additional informations

/* internal data, do not use !!! */
// internal data, do not use !!!
RECT rcFloat; // floating position
int iPrevCont; // stores the privious container (toggling between float and dock)
const char* pszModuleName; // it's the plugin file name. It's used to identify the plugin
const TCHAR* pszModuleName; // it's the plugin file name. It's used to identify the plugin
} tTbData;



/* notifications of docking */
#define DMN_FIRST 1050
#define DMN_CLOSE (DMN_FIRST + 1)
//nmhdr.code = DWORD(DMN_CLOSE, 0));
//nmhdr.hwndFrom = hwndNpp;
//nmhdr.idFrom = ctrlIdNpp;

#define DMN_DOCK (DMN_FIRST + 2)
#define DMN_FLOAT (DMN_FIRST + 3)
//nmhdr.code = DWORD(DMN_XXX, int newContainer);
//nmhdr.hwndFrom = hwndNpp;
//nmhdr.idFrom = ctrlIdNpp;
typedef struct {
HWND hWnd; // the docking manager wnd
RECT rcRegion[DOCKCONT_MAX]; // position of docked dialogs
} tDockMgr;


#define HIT_TEST_THICKNESS 20
#define SPLITTER_WIDTH 4

#endif // DOCKING_H
Loading

0 comments on commit b7f2f92

Please sign in to comment.