[BUG_FIXED] Fix selecting all the text in doc map while clicking on doc map dialog caption.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@890 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
88ea280978
commit
0bc0a42ec0
@ -2928,7 +2928,8 @@ void Notepad_plus::docGotoAnotherEditView(FileTransferMode mode)
|
|||||||
|
|
||||||
//Open the view if it was hidden
|
//Open the view if it was hidden
|
||||||
int viewToOpen = (viewToGo == SUB_VIEW?WindowSubActive:WindowMainActive);
|
int viewToOpen = (viewToGo == SUB_VIEW?WindowSubActive:WindowMainActive);
|
||||||
if (!(_mainWindowStatus & viewToOpen)) {
|
if (!(_mainWindowStatus & viewToOpen))
|
||||||
|
{
|
||||||
showView(viewToGo);
|
showView(viewToGo);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2943,8 +2944,6 @@ void Notepad_plus::docGotoAnotherEditView(FileTransferMode mode)
|
|||||||
|
|
||||||
//Activate the other view since thats where the document went
|
//Activate the other view since thats where the document went
|
||||||
switchEditViewTo(viewToGo);
|
switchEditViewTo(viewToGo);
|
||||||
|
|
||||||
//_linkTriggered = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Notepad_plus::activateBuffer(BufferID id, int whichOne)
|
bool Notepad_plus::activateBuffer(BufferID id, int whichOne)
|
||||||
@ -4828,7 +4827,7 @@ struct Quote{
|
|||||||
const char *_quote;
|
const char *_quote;
|
||||||
};
|
};
|
||||||
|
|
||||||
const int nbQuote = 47;
|
const int nbQuote = 49;
|
||||||
Quote quotes[nbQuote] = {
|
Quote quotes[nbQuote] = {
|
||||||
{"Notepad++", "Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size.\nBy optimizing as many routines as possible without losing user friendliness, Notepad++ is trying to reduce the world carbon dioxide emissions. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment."},
|
{"Notepad++", "Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size.\nBy optimizing as many routines as possible without losing user friendliness, Notepad++ is trying to reduce the world carbon dioxide emissions. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment."},
|
||||||
{"Martin Golding", "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."},
|
{"Martin Golding", "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."},
|
||||||
@ -4849,7 +4848,8 @@ Quote quotes[nbQuote] = {
|
|||||||
{"Gavin Russell Baker", "C++ : Where friends have access to your private members."},
|
{"Gavin Russell Baker", "C++ : Where friends have access to your private members."},
|
||||||
{"Alanna", "Saying that Java is nice because it works on all OSes is like saying that anal sex is nice because it works on all genders."},
|
{"Alanna", "Saying that Java is nice because it works on all OSes is like saying that anal sex is nice because it works on all genders."},
|
||||||
{"Linus Torvalds", "Software is like sex: It's better when it's free."},
|
{"Linus Torvalds", "Software is like sex: It's better when it's free."},
|
||||||
//{"Thomer M. Gil", "Don't get me wrong: Emacs is a great operating system --- it lacks a good editor, though."},
|
{"Cult of vi", "Emacs is a great operating system, lacking only a decent editor."},
|
||||||
|
{"Church of Emacs", "vi has two modes – \"beep repeatedly\" and \"break everything\"."},
|
||||||
{"Steve Jobs", "The only problem with Microsoft is they just have no taste. They have absolutely no taste. And I don't mean that in a small way, I mean that in a big way, in the sense that they don't think of original ideas, and they don't bring much culture into their products."},
|
{"Steve Jobs", "The only problem with Microsoft is they just have no taste. They have absolutely no taste. And I don't mean that in a small way, I mean that in a big way, in the sense that they don't think of original ideas, and they don't bring much culture into their products."},
|
||||||
{"brotips #1001", "Do everything for greatness, not money. Money follows greatness."},
|
{"brotips #1001", "Do everything for greatness, not money. Money follows greatness."},
|
||||||
{"brotips #1212", "Cheating is like eating fast food: you do it, you enjoy it, and then you feel like shit."},
|
{"brotips #1212", "Cheating is like eating fast food: you do it, you enjoy it, and then you feel like shit."},
|
||||||
|
@ -55,7 +55,7 @@ typedef struct {
|
|||||||
// user modifications
|
// user modifications
|
||||||
UINT uMask; // mask params: look to above defines
|
UINT uMask; // mask params: look to above defines
|
||||||
HICON hIconTab; // icon for tabs
|
HICON hIconTab; // icon for tabs
|
||||||
TCHAR *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
|
RECT rcFloat; // floating position
|
||||||
|
@ -1428,7 +1428,12 @@ void DockingCont::focusClient()
|
|||||||
// set focus
|
// set focus
|
||||||
if (!tcItem.lParam)
|
if (!tcItem.lParam)
|
||||||
return;
|
return;
|
||||||
::SetFocus(((tTbData*)tcItem.lParam)->hClient);
|
|
||||||
|
tTbData *tbData = (tTbData *)tcItem.lParam;
|
||||||
|
if (tbData->pszAddInfo && lstrcmp(tbData->pszAddInfo, DM_NOFOCUSWHILECLICKINGCAPTION) == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
::SetFocus(tbData->hClient);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
#ifndef DOCKING_RESOURCE_H
|
#ifndef DOCKING_RESOURCE_H
|
||||||
#define DOCKING_RESOURCE_H
|
#define DOCKING_RESOURCE_H
|
||||||
|
|
||||||
|
#define DM_NOFOCUSWHILECLICKINGCAPTION TEXT("NOFOCUSWHILECLICKINGCAPTION")
|
||||||
|
|
||||||
#define IDD_PLUGIN_DLG 103
|
#define IDD_PLUGIN_DLG 103
|
||||||
#define IDC_EDIT1 1000
|
#define IDC_EDIT1 1000
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ void DocumentMap::reloadMap()
|
|||||||
if (_pScintillaEditView && _ppEditView)
|
if (_pScintillaEditView && _ppEditView)
|
||||||
{
|
{
|
||||||
Document currentDoc = (*_ppEditView)->execute(SCI_GETDOCPOINTER);
|
Document currentDoc = (*_ppEditView)->execute(SCI_GETDOCPOINTER);
|
||||||
::SendMessage(_pScintillaEditView->getHSelf(), SCI_SETDOCPOINTER, 0, (LPARAM)currentDoc);
|
_pScintillaEditView->execute(SCI_SETDOCPOINTER, 0, (LPARAM)currentDoc);
|
||||||
|
|
||||||
//
|
//
|
||||||
// sync with the current document
|
// sync with the current document
|
||||||
@ -42,7 +42,6 @@ void DocumentMap::reloadMap()
|
|||||||
// Wrapping
|
// Wrapping
|
||||||
if ((*_ppEditView)->isWrap() && needToRecomputeWith())
|
if ((*_ppEditView)->isWrap() && needToRecomputeWith())
|
||||||
{
|
{
|
||||||
//initWrapMap();
|
|
||||||
wrapMap();
|
wrapMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,12 +267,6 @@ BOOL CALLBACK DocumentMap::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPara
|
|||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
case WM_DESTROY:
|
|
||||||
{
|
|
||||||
//::SendMessage(_hParent, NPPM_DESTROYSCINTILLAHANDLE, 0, (LPARAM)_pScintillaEditView->getHSelf());
|
|
||||||
//printStr(TEXT("fw"));
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
case WM_SIZE:
|
case WM_SIZE:
|
||||||
{
|
{
|
||||||
|
@ -82,9 +82,15 @@ private :
|
|||||||
|
|
||||||
class DocumentMap : public DockingDlgInterface {
|
class DocumentMap : public DockingDlgInterface {
|
||||||
public:
|
public:
|
||||||
DocumentMap(): DockingDlgInterface(IDD_DOCUMENTMAP), _ppEditView(NULL), _pScintillaEditView(NULL)
|
DocumentMap(): DockingDlgInterface(IDD_DOCUMENTMAP), _ppEditView(NULL),\
|
||||||
|
_pScintillaEditView(NULL), id4dockingCont(DM_NOFOCUSWHILECLICKINGCAPTION)
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
void create(tTbData * data, bool isRTL = false) {
|
||||||
|
DockingDlgInterface::create(data, isRTL);
|
||||||
|
data->pszAddInfo = id4dockingCont.c_str();
|
||||||
|
};
|
||||||
|
|
||||||
void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView) {
|
void init(HINSTANCE hInst, HWND hPere, ScintillaEditView **ppEditView) {
|
||||||
DockingDlgInterface::init(hInst, hPere);
|
DockingDlgInterface::init(hInst, hPere);
|
||||||
_ppEditView = ppEditView;
|
_ppEditView = ppEditView;
|
||||||
@ -121,6 +127,7 @@ private:
|
|||||||
// for needToRecomputeWith function
|
// for needToRecomputeWith function
|
||||||
int _displayZoom;
|
int _displayZoom;
|
||||||
int _displayWidth;
|
int _displayWidth;
|
||||||
|
generic_string id4dockingCont;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user