Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philipp Erhardt
katarakt
Commits
da6076aa
Commit
da6076aa
authored
Oct 09, 2015
by
Philipp Erhardt
Browse files
Add "presenter" as possible default_layout
parent
ad212f78
Changes
3
Show whitespace changes
Inline
Side-by-side
doc/katarakt.txt
View file @
da6076aa
...
@@ -140,7 +140,7 @@ VARIABLES
...
@@ -140,7 +140,7 @@ VARIABLES
'string' *background_color_fullscreen* ::
'string' *background_color_fullscreen* ::
0xFF000000: Fullscreen background color in ARGB Format.
0xFF000000: Fullscreen background color in ARGB Format.
'string' *default_layout* ::
'string' *default_layout* ::
presentation: The layout on startup. Possible values: 'presentation', 'grid'.
presentation: The layout on startup. Possible values: 'presentation', 'grid'
, 'presenter'
.
'int' *mouse_wheel_factor* ::
'int' *mouse_wheel_factor* ::
120: QT delta for turning the mouse wheel 1 click.
120: QT delta for turning the mouse wheel 1 click.
'int' *smooth_scroll_delta* ::
'int' *smooth_scroll_delta* ::
...
...
share/katarakt.ini
View file @
da6076aa
...
@@ -27,6 +27,7 @@ single_instance_per_file=false
...
@@ -27,6 +27,7 @@ single_instance_per_file=false
[Keys]
[Keys]
set_presentation_layout
=
1
set_presentation_layout
=
1
set_grid_layout
=
2
set_grid_layout
=
2
set_presenter_layout
=
3
page_up
=
PgUp
page_up
=
PgUp
page_down
=
PgDown
page_down
=
PgDown
page_first
=
Home, G
page_first
=
Home, G
...
...
src/canvas.cpp
View file @
da6076aa
...
@@ -88,6 +88,8 @@ Canvas::Canvas(Viewer *v, QWidget *parent) :
...
@@ -88,6 +88,8 @@ Canvas::Canvas(Viewer *v, QWidget *parent) :
QString
default_layout
=
config
->
get_value
(
"default_layout"
).
toString
();
QString
default_layout
=
config
->
get_value
(
"default_layout"
).
toString
();
if
(
default_layout
==
"grid"
)
{
if
(
default_layout
==
"grid"
)
{
cur_layout
=
grid_layout
;
cur_layout
=
grid_layout
;
}
else
if
(
default_layout
==
"presenter"
)
{
cur_layout
=
presenter_layout
;
}
else
{
// "presentation" and everything else
}
else
{
// "presentation" and everything else
cur_layout
=
presentation_layout
;
cur_layout
=
presentation_layout
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment