Diff of /src/SciTEBase.cxx [ae4cfb] .. [45deb4]  Maximize  Restore

Switch to unified view

a/src/SciTEBase.cxx b/src/SciTEBase.cxx
...
...
145
    dialogsOnScreen = 0;
145
    dialogsOnScreen = 0;
146
    topMost = false;
146
    topMost = false;
147
    wrap = false;
147
    wrap = false;
148
    wrapOutput = false;
148
    wrapOutput = false;
149
    wrapStyle = SC_WRAP_WORD;
149
    wrapStyle = SC_WRAP_WORD;
150
  isReadOnly = false;
151
    openFilesHere = false;
150
    openFilesHere = false;
152
    fullScreen = false;
151
    fullScreen = false;
153
152
154
    heightOutput = 0;
153
    heightOutput = 0;
155
    heightOutputStartDrag = 0;
154
    heightOutputStartDrag = 0;
...
...
2333
2332
2334
    const int TEMP_LEN = 100;
2333
    const int TEMP_LEN = 100;
2335
    char temp[TEMP_LEN];
2334
    char temp[TEMP_LEN];
2336
2335
2337
    std::string ro = GUI::UTF8FromString(localiser.Text("READ"));
2336
    std::string ro = GUI::UTF8FromString(localiser.Text("READ"));
2338
    ps.Set("ReadOnly", isReadOnly ? ro.c_str() : "");
2337
    ps.Set("ReadOnly", CurrentBuffer()->isReadOnly ? ro.c_str() : "");
2339
2338
2340
    int eolMode = wEditor.Call(SCI_GETEOLMODE);
2339
    int eolMode = wEditor.Call(SCI_GETEOLMODE);
2341
    ps.Set("EOLMode", eolMode == SC_EOL_CRLF ? "CR+LF" : (eolMode == SC_EOL_LF ? "LF" : "CR"));
2340
    ps.Set("EOLMode", eolMode == SC_EOL_CRLF ? "CR+LF" : (eolMode == SC_EOL_LF ? "LF" : "CR"));
2342
2341
2343
    sprintf(temp, "%d", LengthDocument());
2342
    sprintf(temp, "%d", LengthDocument());
...
...
3432
        wOutput.Call(SCI_SETWRAPMODE, wrapOutput ? wrapStyle : SC_WRAP_NONE);
3431
        wOutput.Call(SCI_SETWRAPMODE, wrapOutput ? wrapStyle : SC_WRAP_NONE);
3433
        CheckMenus();
3432
        CheckMenus();
3434
        break;
3433
        break;
3435
3434
3436
    case IDM_READONLY:
3435
    case IDM_READONLY:
3437
      isReadOnly = !isReadOnly;
3438
        CurrentBuffer()->isReadOnly = isReadOnly;
3436
        CurrentBuffer()->isReadOnly = !CurrentBuffer()->isReadOnly;
3439
        wEditor.Call(SCI_SETREADONLY, isReadOnly);
3437
        wEditor.Call(SCI_SETREADONLY, CurrentBuffer()->isReadOnly);
3440
        UpdateStatusBar(true);
3438
        UpdateStatusBar(true);
3441
        CheckMenus();
3439
        CheckMenus();
3442
        break;
3440
        break;
3443
3441
3444
    case IDM_VIEWTABBAR:
3442
    case IDM_VIEWTABBAR:
...
...
4079
4077
4080
void SciTEBase::CheckMenus() {
4078
void SciTEBase::CheckMenus() {
4081
    CheckMenusClipboard();
4079
    CheckMenusClipboard();
4082
    EnableAMenuItem(IDM_UNDO, CallFocusedElseDefault(true, SCI_CANUNDO));
4080
    EnableAMenuItem(IDM_UNDO, CallFocusedElseDefault(true, SCI_CANUNDO));
4083
    EnableAMenuItem(IDM_REDO, CallFocusedElseDefault(true, SCI_CANREDO));
4081
    EnableAMenuItem(IDM_REDO, CallFocusedElseDefault(true, SCI_CANREDO));
4084
    EnableAMenuItem(IDM_DUPLICATE, !isReadOnly);
4082
    EnableAMenuItem(IDM_DUPLICATE, CurrentBuffer()->isReadOnly);
4085
    EnableAMenuItem(IDM_SHOWCALLTIP, apis != 0);
4083
    EnableAMenuItem(IDM_SHOWCALLTIP, apis != 0);
4086
    EnableAMenuItem(IDM_COMPLETE, apis != 0);
4084
    EnableAMenuItem(IDM_COMPLETE, apis != 0);
4087
    CheckAMenuItem(IDM_SPLITVERTICAL, splitVertical);
4085
    CheckAMenuItem(IDM_SPLITVERTICAL, splitVertical);
4088
    EnableAMenuItem(IDM_OPENFILESHERE, props.GetInt("check.if.already.open") != 0);
4086
    EnableAMenuItem(IDM_OPENFILESHERE, props.GetInt("check.if.already.open") != 0);
4089
    CheckAMenuItem(IDM_OPENFILESHERE, openFilesHere);
4087
    CheckAMenuItem(IDM_OPENFILESHERE, openFilesHere);
4090
    CheckAMenuItem(IDM_WRAP, wrap);
4088
    CheckAMenuItem(IDM_WRAP, wrap);
4091
    CheckAMenuItem(IDM_WRAPOUTPUT, wrapOutput);
4089
    CheckAMenuItem(IDM_WRAPOUTPUT, wrapOutput);
4092
    CheckAMenuItem(IDM_READONLY, isReadOnly);
4090
    CheckAMenuItem(IDM_READONLY, CurrentBuffer()->isReadOnly);
4093
    CheckAMenuItem(IDM_FULLSCREEN, fullScreen);
4091
    CheckAMenuItem(IDM_FULLSCREEN, fullScreen);
4094
    CheckAMenuItem(IDM_VIEWTOOLBAR, tbVisible);
4092
    CheckAMenuItem(IDM_VIEWTOOLBAR, tbVisible);
4095
    CheckAMenuItem(IDM_VIEWTABBAR, tabVisible);
4093
    CheckAMenuItem(IDM_VIEWTABBAR, tabVisible);
4096
    CheckAMenuItem(IDM_VIEWSTATUSBAR, sbVisible);
4094
    CheckAMenuItem(IDM_VIEWSTATUSBAR, sbVisible);
4097
    CheckAMenuItem(IDM_VIEWEOL, wEditor.Call(SCI_GETVIEWEOL));
4095
    CheckAMenuItem(IDM_VIEWEOL, wEditor.Call(SCI_GETVIEWEOL));

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks