Skip to content

Commit

Permalink
1.6.6b
Browse files Browse the repository at this point in the history
- #5: add a horizonal scrollbar (make Msg not "occupy remaining space")
-> allow a checkbox
  • Loading branch information
jtorjo committed Jan 6, 2016
1 parent 970b318 commit af5411d
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 35 deletions.
4 changes: 3 additions & 1 deletion src/docs/history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
quora


1.6.6b
- #5: add a horizonal scrollbar (make Msg not "occupy remaining space") -> allow a checkbox


1.6.6a
- #4 fix: line numbers -> allow turning off
- #4 : line numbers -> allow turning off


1.6.5b
Expand Down
1 change: 0 additions & 1 deletion src/docs/todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@



#5 - add a horizonal scrollbar (make Msg not "occupy remaining space") -> allow a checkbox

#6 - click to select a word -> allow turning this off

Expand Down
4 changes: 4 additions & 0 deletions src/lw_common/settings/app.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ public enum edit_mode_type {
// 1.5.18+ - first time we have a multi-line column, we show the details pane
public bool has_shown_details_pane = false;

// 1.6.6+ - allow showing a horizontal scrollbar in log-view
public bool show_horizontal_scrollbar = false;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// file-by-file
public bool bring_to_top_on_restart = false;
Expand Down Expand Up @@ -401,6 +404,7 @@ public enum edit_mode_type {
load_save(load, ref description_layout_idx_, "description_layout_idx", 0);

load_save(load, ref has_shown_details_pane, "has_shown_details_pane", false);
load_save(load, ref show_horizontal_scrollbar, "show_horizontal_scrollbar", false);
}

private string initials(string name) {
Expand Down
1 change: 1 addition & 0 deletions src/lw_common/ui/log_view/log_view.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public log_view(Form parent, string name)
list.ColumnRightClick += list_ColumnRightClick;
list.ColumnWidthChanged += List_on_column_width_changed;
list.ColumnWidthChanging += List_on_column_width_changing;
msgCol.FillsFreeSpace = !app.inst.show_horizontal_scrollbar;
}

private void List_on_column_width_changing(object sender, ColumnWidthChangingEventArgs e) {
Expand Down
65 changes: 32 additions & 33 deletions src/lw_common/ui/settings_form.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/lw_common/ui/settings_form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private class item {
showBetaUpdates.Checked = app.inst.show_beta_releases;
showVariableFontsAsWell.Checked = app.inst.show_variable_fonts_as_well;
showTips.Checked = app.inst.show_tips;
showHorizontalScrollbar.Checked = app.inst.show_horizontal_scrollbar;
}

private void save() {
Expand Down Expand Up @@ -231,6 +232,7 @@ private class item {
app.inst.show_beta_releases = showBetaUpdates.Checked;
app.inst.show_variable_fonts_as_well = showVariableFontsAsWell.Checked;
app.inst.show_tips = showTips.Checked;
app.inst.show_horizontal_scrollbar = showHorizontalScrollbar.Checked;

app.inst.save();
}
Expand Down

0 comments on commit af5411d

Please sign in to comment.