Skip to content

Commit

Permalink
got rid of player and added key navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
karwler committed May 20, 2018
1 parent 9849dcd commit f43567a
Show file tree
Hide file tree
Showing 48 changed files with 1,142 additions and 2,704 deletions.
13 changes: 1 addition & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ set(SRC_FILES
"src/prog/browser.cpp"
"src/prog/browser.h"
"src/prog/defaults.h"
"src/prog/player.cpp"
"src/prog/player.h"
"src/prog/playlistEditor.cpp"
"src/prog/playlistEditor.h"
"src/prog/program.cpp"
"src/prog/program.h"
"src/prog/progs.cpp"
Expand Down Expand Up @@ -55,20 +51,13 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")

link_directories(${LIB_DIR})
set(DLL_FILES
"libFLAC-8.dll"
"libfreetype-6.dll"
"libjpeg-9.dll"
"libmodplug-1.dll"
"libmpg123-0.dll"
"libogg-0.dll"
"libpng16-16.dll"
"libtiff-5.dll"
"libvorbis-0.dll"
"libvorbisfile-3.dll"
"libwebp-7.dll"
"SDL2.dll"
"SDL2_image.dll"
"SDL2_mixer.dll"
"SDL2_ttf.dll"
"zlib1.dll")
endif()
Expand All @@ -87,7 +76,7 @@ include_directories(${CMAKE_SOURCE_DIR}/src)
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
include_directories(${CMAKE_SOURCE_DIR}/lib/include)
endif()
target_link_libraries(VertiRead SDL2 SDL2_mixer SDL2_image SDL2_ttf)
target_link_libraries(VertiRead SDL2 SDL2_image SDL2_ttf)

# target path
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")
Expand Down
30 changes: 9 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,29 @@
# VertiRead
A simple manga reader and music player for Linux and Windows.
So far it's usable for reading, playing music and basic playlist editing.
It still has some bugs and untested parts.
A simple comic reader for Linux and Windows.

Used libraries are SDL2, SDL2_image, SDL2_ttf and SDL2_mixer.
The minimum required Cmake version is 3.1.0 and your compiler needs to support at least C++11.
Used libraries are SDL2, SDL2_image, SDL2_ttf and all that come with those three.
The minimum required Cmake version is 3.1.3 and your compiler needs to support at least C++11.

Note: When setting the output directory in Qt, don’t name it ‘build’, cause it might mess up the executable’s location.

## Linux
All dependencies need to be installed manually.
Installing the packages "libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev" should do the trick. (Assuming that all necessary dependencies for those are installed automatically in the process.)
Installing the packages "libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev" should do the trick. (Assuming that all necessary dependencies for those are installed automatically in the process.)
The default font is set to "Arial", so you probably need to install some kind of "ttf-ms-fonts" package.
If you don't want to install any new fonts, you can just change the default font in the "src/prog/defaults.h" file.
Settings files are being saved in "~/.vertiread".

There’s a pre-made launcher, which is copied to the build directory after compilation.
If you want a menu entry for the program, just set the executable’s and icon’s path in the .desktop file and move it to either "/usr/share/applications" or "~/.local/share/applications".

Settings files are being saved in "~/.vertiread".
Note: It's possible that the mouse wheel won't work properly under Linux and I have no idea why.

## Windows
All necessary libraries are already included in the project. However they're built for the MSVC. If you're using a different compiler, you'll need to replace the existing library files or link the new ones.
All necessary libraries are already included in the project. However they're built for MSVC. If you're using a different compiler, you'll need to replace the existing library files or link the new ones.
Settings files are being saved in "%AppData%\VertiRead".

## How to use it
The idea is that you have a library directory in which you have your manga. The location of this directory can be viewed and/or changed in the general settings menu.
It is advised (but not necessary) to sort the files and directories by things like chapters, volumes, etc.
The idea is that you have a library directory in which you have your comics saved in form of pictures. The location of this directory can be changed in the settings.
Left clicking on a book in the book list wil take you to the file explorer, while right clicking on a book will take you to the last viewed page.
Opening an image file opens the reader, which displays all images in the directory of the chosen file.
The reader has a hidden side pane on the left. The top two buttons are for switching between directories. (This doesn’t work recursively.)

You can create playlists and assign them to specific manga, using the editor. In the playlist editor you can add either single files or entire directories of songs to a playlist. The file browser can be a bit of a pain, so you can just use drag and drop instead.
All playlists are saved and looked up in the playlist directory, which can be viewed and/or changed in the general settings menu.
The reader has a hidden player at the bottom.

The program supports keyboard and controller bindings. DirectInput and XInput are handled separately. The key bindings can be viewed and/or edited in the controls settings menu.
The reader has a hidden side panel on the left.

The program supports keyboard and controller bindings. DirectInput and XInput are handled separately. The bindings can be changed in the settings.
To reset certain groups of settings, edit or delete the corresponding ini files in the settings directory.
Note: If the dead zone is set too low, lists might scroll on their own or the mouse cursor might move on its own.
1 change: 0 additions & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
advanced book adding
arrow keys/hats navigation
multiple scroll modes for reader
20 changes: 0 additions & 20 deletions lib/COPYING.SDL_mixer.txt

This file was deleted.

32 changes: 0 additions & 32 deletions lib/LICENSE.FLAC.txt

This file was deleted.

1 change: 0 additions & 1 deletion lib/LICENSE.modplug.txt

This file was deleted.

Loading

0 comments on commit f43567a

Please sign in to comment.