コード例 #1
0
ファイル: setscr.c プロジェクト: Azarien/open-watcom-v2
static void dlgDataToGlobal( void )
{
    UtilUpdateBoolean( EditFlags.JumpyScroll, dlgData.JumpyScroll, "jumpyscroll" );
    UtilUpdateBoolean( EditFlags.LineBased, dlgData.LineBased, "linebased" );
    UtilUpdateBoolean( EditFlags.SavePosition, dlgData.SavePosition, "saveposition" );
    UtilUpdateBoolean( EditFlags.AutoMessageClear, dlgData.AutoMessageClear, "automessageclear" );
    UtilUpdateInt( EditVars.PageLinesExposed, dlgData.PageLinesExposed, "pagelinesexposed" );
    UtilUpdateStr( EditVars.FileEndString, dlgData.FileEndString, "fileendstring" );
}
コード例 #2
0
ファイル: setgen.c プロジェクト: ABratovic/open-watcom-v2
static void dlgDataToGlobal( void )
{
    UtilUpdateStr( EditVars.WordDefn, dlgData.Word, "word" );
    UtilUpdateStr( EditVars.WordAltDefn, dlgData.WordAlt, "wordalt" );
    UtilUpdateBoolean( EditFlags.Undo, dlgData.Undo, "undo" );
    if( dlgData.AutoSave ) {
        UtilUpdateInt( EditVars.AutoSaveInterval, dlgData.AutoSaveInterval, "autosaveinterval" );
    } else {
        UtilUpdateInt( EditVars.AutoSaveInterval, 0, "autosaveinterval" );
    }
    UtilUpdateBoolean( EditFlags.LastEOL, dlgData.LastEOL, "lasteol" );
    // UtilUpdateInt( MaxLine, dlgData.MaxLineLen, "maxlinelen" );
    UtilUpdateBoolean( EditFlags.SaveConfig, dlgData.SaveConfig, "saveconfig" );
    UtilUpdateBoolean( EditFlags.SaveOnBuild, dlgData.SaveOnBuild, "saveonbuild" );
    UtilUpdateBoolean( EditFlags.BeepFlag, dlgData.BeepFlag, "beepflag" );
    UtilUpdateBoolean( EditFlags.QuitMovesForward, dlgData.QuitMovesForward, "quitmovesforward" );
    UtilUpdateBoolean( EditFlags.SameFileCheck, dlgData.SameFileCheck, "samefilecheck" );
    UtilUpdateBoolean( EditFlags.Modeless, !dlgData.Modal, "modeless" );
    UtilUpdateBoolean( EditFlags.CaseIgnore, dlgData.CaseIgnore, "caseignore" );
    UtilUpdateBoolean( EditFlags.SearchWrap, dlgData.SearchWrap, "searchwrap" );
    UtilUpdateStr( EditVars.TmpDir, dlgData.TmpDir, "tmpdir" );
    UtilUpdateStr( EditVars.HistoryFile, dlgData.HistoryFile, "historyfile" );
}