about summary refs log tree commit diff stats
path: root/src/config
Commit message (Collapse)AuthorAgeFilesLines
* Added receipt.sent theme settingJames Booth2015-03-152-62/+67
|
* Added basic delivery receiptsJames Booth2015-03-112-1/+5
|
* Added /time statusbar preferenceJames Booth2015-03-103-0/+7
|
* Merge remote-tracking branch 'oliverlemoal/xep-0280' into xep-0280James Booth2015-03-082-0/+4
|\
| * Add XEP-0280 supportOlivier LE MOAL2015-02-102-0/+4
| |
* | Upgrade otr warn preference, added UI theme settingsJames Booth2015-02-252-31/+17
| |
* | Updated default preferencesJames Booth2015-02-241-4/+13
| |
* | Fixed spelling.Christian Storm2015-02-171-1/+1
| |
* | Changed default inpblock delay to 1 secondJames Booth2015-02-101-1/+1
| |
* | Updated copyrightJames Booth2015-02-108-8/+8
|/
* Free theme list after useJames Booth2015-02-091-1/+3
|
* Renamed command group presence->presences to avoid clashJames Booth2015-01-281-1/+1
|
* Simplified autocompleters and command historyJames Booth2015-01-164-6/+6
|
* eval_password code is now in cmd_connect so that it can be changedWill Song2015-01-121-10/+0
| | | | | without clearing it. eval_password errors are also now ignored, along with pclosing the popened eval_password.
* Removed unused include, free eval_passwordJames Booth2015-01-132-1/+1
|
* Merge remote-tracking branch 'peterlvilim/keyring'James Booth2015-01-134-5/+46
|\
| * fgets: buffer sizePeter Vilim2015-01-071-3/+6
| |
| * fix for fgetsPeter Vilim2015-01-071-1/+1
| |
| * mergePeter Vilim2015-01-071-0/+2
| |\
| | * Add support for evaluated passwordPeter Vilim2015-01-074-5/+42
| | |
| * | iofixedPeter Vilim2015-01-072-2/+14
| | |
| * | Add support for evaluated passwordPeter Vilim2015-01-064-5/+29
| |/
* | adding preference option for dynamic input blockingSimon Effenberg2015-01-122-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /inpblock is now having subcommands 'timeout' and 'dynamic' with: /inpblock timeout <milliseconds> and /inpblock dynamic <on|off> Defaults are: /inpblock timeout 500 /inpblock dynamic on To get the old behavior specify: /inpblock timeout 20 /inpblock dynamic off The dynamic mode will block incrementally after something should be written to the window or after a key was pressed. So pressing a key would set the timeout to 0ms and after 10 timeouts to the next bigger one. Example (with dynamic mode on): "/inpblock timeout 50" timeout series: 10x 0ms 10x 10ms (0ms + 10 times since last keypress) 10x 30ms (10ms + 20 times since last keypress) *x50ms until next key was pressed or
* | Merge remote-tracking branch 'incertia/exit-title'James Booth2015-01-122-0/+4
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: src/command/command.c src/config/preferences.c src/config/preferences.h
| * | add exit title preference to group and add command for setting the preferenceWill Song2015-01-081-0/+1
| | |
| * | add exit title preferenceWill Song2015-01-082-1/+5
| |/
* | Renamed titlebar preferenceJames Booth2015-01-122-4/+14
| |
* | Merge branch 'master' into chat-sessionsJames Booth2015-01-102-0/+12
|\ \
| * | Added comments to preferences moduleJames Booth2015-01-102-0/+12
| |/
* / Added preferences for showing resource in titlebar and messagesJames Booth2015-01-102-1/+9
|/
* Default title bar update to falseJames Booth2014-12-311-1/+0
|
* Merge remote-tracking branch 'incertia/connect-default'James Booth2014-12-292-0/+4
|\ | | | | | | | | Conflicts: CHANGELOG
| * add default account property and commands associated with themWill Song2014-11-272-0/+4
| |
* | Removed function pointersJames Booth2014-12-222-161/+115
| |
* | Added /inpblock commandJames Booth2014-12-212-0/+20
| |
* | Only overwrite preferences with theme when them loaded, not on startupJames Booth2014-11-301-3/+16
|/
* Merge remote-tracking branch 'incertia/account-remove'James Booth2014-11-242-0/+12
|\
| * implement account removalWill Song2014-11-232-0/+12
| |
* | Free string after setting theme ui preference, fixed valgrind warningJames Booth2014-11-241-0/+1
|/
* Added [ui] preferences to themesJames Booth2014-11-191-0/+56
|
* Tidied theme.cJames Booth2014-11-191-201/+62
|
* Added /theme colours commandJames Booth2014-11-172-46/+96
|
* Changed type to enum for presence colour attributesJames Booth2014-11-162-0/+19
|
* Added support for bold theme settingsJames Booth2014-11-162-55/+93
|
* Replaced colours with theme_item_tJames Booth2014-11-162-43/+101
|
* Added /time settingJames Booth2014-11-162-0/+6
|
* Added /roster size and /occupants size settingsJames Booth2014-11-152-0/+45
|
* Added /roster show|hide command, only show roster on connect successJames Booth2014-11-102-0/+18
|
* Added /wrap user preference for enabling/disabling word wrappingJames Booth2014-11-092-0/+5
|
* Added /presence command to show contacts presenceJames Booth2014-11-074-46/+93
|
n, env, render # run it assume-console [ press F4 ] event-loop screen, console, env, resources screen-should-contain [ . run (F4) . . . .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . .──────────────────────────────────────────────────. . . . . . . ] # click at right edge of 'copy' button (just before 'delete') assume-console [ left-click 3, 33 ] run [ event-loop screen, console, env, resources ] # it copies into editor screen-should-contain [ . run (F4) . .add 1, 1 . .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . .──────────────────────────────────────────────────. . . . . . . ] # cursor should be in the right place assume-console [ type [0] ] run [ event-loop screen, console, env, resources ] screen-should-contain [ . run (F4) . .0add 1, 1 . .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . .──────────────────────────────────────────────────. . . . . . . ] ] after <global-touch> [ # support 'copy' button { copy?:bool <- should-attempt-copy? click-row, click-column, env break-unless copy? copy?, env <- try-copy-sandbox click-row, env break-unless copy? screen <- render-sandbox-side screen, env, render screen <- update-cursor screen, current-sandbox, env loop +next-event } ] # some preconditions for attempting to copy a sandbox def should-attempt-copy? click-row:num, click-column:num, env:&:environment -> result:bool [ local-scope load-inputs # are we below the sandbox editor? click-sandbox-area?:bool <- click-on-sandbox-area? click-row, env return-unless click-sandbox-area?, false # narrower, is the click in the columns spanning the 'copy' button? first-sandbox:&:editor <- get *env, current-sandbox:offset assert first-sandbox, [!!] sandbox-left-margin:num <- get *first-sandbox, left:offset sandbox-right-margin:num <- get *first-sandbox, right:offset _, _, copy-button-left:num, copy-button-right:num, _ <- sandbox-menu-columns sandbox-left-margin, sandbox-right-margin copy-button-vertical-area?:bool <- within-range? click-column, copy-button-left, copy-button-right return-unless copy-button-vertical-area?, false # finally, is sandbox editor empty? current-sandbox:&:editor <- get *env, current-sandbox:offset result <- empty-editor? current-sandbox ] def try-copy-sandbox click-row:num, env:&:environment -> clicked-on-copy-button?:bool, env:&:environment [ local-scope load-inputs # identify the sandbox to copy, if the click was actually on the 'copy' button sandbox:&:sandbox <- find-sandbox env, click-row return-unless sandbox, false clicked-on-copy-button? <- copy true text:text <- get *sandbox, data:offset current-sandbox:&:editor <- get *env, current-sandbox:offset current-sandbox <- insert-text current-sandbox, text # reset scroll *env <- put *env, render-from:offset, -1 ] def find-sandbox env:&:environment, click-row:num -> result:&:sandbox [ local-scope load-inputs curr-sandbox:&:sandbox <- get *env, sandbox:offset { break-unless curr-sandbox start:num <- get *curr-sandbox, starting-row-on-screen:offset found?:bool <- equal click-row, start return-if found?, curr-sandbox curr-sandbox <- get *curr-sandbox, next-sandbox:offset loop } return null/not-found ] def click-on-sandbox-area? click-row:num, env:&:environment -> result:bool [ local-scope load-inputs first-sandbox:&:sandbox <- get *env, sandbox:offset return-unless first-sandbox, false first-sandbox-begins:num <- get *first-sandbox, starting-row-on-screen:offset result <- greater-or-equal click-row, first-sandbox-begins ] def empty-editor? editor:&:editor -> result:bool [ local-scope load-inputs head:&:duplex-list:char <- get *editor, data:offset first:&:duplex-list:char <- next head result <- not first ] def within-range? x:num, low:num, high:num -> result:bool [ local-scope load-inputs not-too-far-left?:bool <- greater-or-equal x, low not-too-far-right?:bool <- lesser-or-equal x, high result <- and not-too-far-left? not-too-far-right? ] scenario copy-fails-if-sandbox-editor-not-empty [ local-scope trace-until 50/app # trace too long assume-screen 50/width, 10/height # empty recipes assume-resources [ ] env:&:environment <- new-programming-environment resources, screen, [add 1, 1] # contents of sandbox editor render-all screen, env, render # run it assume-console [ press F4 ] event-loop screen, console, env, resources screen-should-contain [ . run (F4) . . . .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . .──────────────────────────────────────────────────. . . ] # type something into the sandbox editor, then click on the 'copy' button assume-console [ left-click 2, 20 # put cursor in sandbox editor type [0] # type something left-click 3, 20 # click 'copy' button ] run [ event-loop screen, console, env ] # copy doesn't happen screen-should-contain [ . run (F4) . .0 . .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . .──────────────────────────────────────────────────. . . ] # cursor should be in the right place assume-console [ type [1] ] run [ event-loop screen, console, env, resources ] screen-should-contain [ . run (F4) . .01 . .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . .──────────────────────────────────────────────────. . . ] ]