Skip to content

Commit

Permalink
Add traditional menu and toolbar, remove bottom button-bar from defau…
Browse files Browse the repository at this point in the history
…lt interface, accept command-line option '-b' to turn bottom bar on and '-t' to disable toolbar and add img/gtksolver.png icon for 'About' dialog.
  • Loading branch information
David C. Rankin committed Apr 9, 2019
1 parent 164a5f8 commit 41cdf4b
Show file tree
Hide file tree
Showing 3 changed files with 520 additions and 71 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ Taking the contents of the second example above as the contents of the textview

(where the formatted solution vector is simply written back to the same GtkTextBuffer and displayed in the textview below the coefficent matrix)

### Interface Command Line Options

The button bar on the bottom has been removed from the default interface and replace with a standard menu and toolbar. If you liked the old button bar you can enable it simply by passing the `'-b'` option on the command line to turn the bottom button bar on. If you don't like the new toolbar, you can turn the toolbar off by passing the `'-t'` option on the command line. The static label across the top basically duplicating the titlebar text.

### Compiling

For Linux, all that is needed is `gcc/make/pkg-config` and `Gtk+2`. (note: some distributions package the headers and development files in separate packages, for instance `Gtk+2-dev`). You may want to create an out-of-source directory for building to prevent cluttering your sources with the object and executable files. Simply create a separate directory (e.g. `gtksolver.build`) and then symlink the `Makefile`, `src` and `include` directories within your build directory. All that is needed then is to change to the build directory and type:
Expand All @@ -78,6 +82,10 @@ TDM-MinGW is often installed as part of the Code::Blocks IDE. The only addition

$ mingw32-make CC=mingw32-gcc os=windows

### Installation

There is nothing required for the solver to run other than invoking the executable. The solver and interface is fully funciton without more. However, for it to find and display the GtkSolver icon, currently the `img/` directory must be installed below the current working path for the executable. The `LICENSE` file should be in the working directory. Eventually there will be additions to determine the system and user paths and to set a standard install location for the image and license files when gtksolver is packaged for the various distributions.

### Development Status

As mentioned at the beginning, this project is basically a quick GtkTextView wrapper around a linear system solver. The Gtk+2 interface and forwarding of the textview contents to the solver has minimal validations. This basically grew out of finding a convenient way to help students with physics and engineering problems. The acceptable input format is flexible enough to allow pasting of a `.csv` (*comma separated values* file) into the editor window or any other delimited set of numbers that make up the coefficent matrix for a system of equations. The underlying solver and parsing code is much more robust.
Expand Down
Binary file added img/gtksolver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 41cdf4b

Please sign in to comment.