Here is a shot of the new dialog:

The spin control allows the user to change the number of grade needed and the grid will automatically resize when the number is changed.
This blog chronicles the development of the Linux gradebook program GradeL.

#!/bin/shinstall.sh:
# This shell script compiles and archives GradeL using Gambas2.
# The result is the binary archive gradel, which can be run
# by typing ./gradel from the source directory or installed
# using sudo sh ./install.sh.
echo ""
echo "GradeL Compile Script"
echo "----------------------------------------"
echo "Checking for compiled components..."
if [ -d .gambas ]
then
echo "Removing old files..."
cd .gambas
rm *
cd ..
rmdir .gambas
fi
if [ -f gradel ]
then
rm gradel
fi
echo ""
echo "Compiling GradeL with gbc2 -p -a ..."
# It is important to include the -p and -a flags
gbc2 -p -a
echo "Creating executable archive \"gradel\" with gba2 ..."
gba2
# Rename executable archive
mv gradel-0.9.1.gambas gradel
echo "Done!"
echo ""
echo "To run gradel type: ./gradel"
echo "or"
echo "sudo \"sh ./install.sh\" to install on Ubuntu."
echo ""
#!/bin/shuninstall.sh:
# This shell script installs GradeL to the system.
# Be sure to run compile.sh first.
# Gradel can be removed from the system with uninstall.sh.
echo ""
echo "GradeL Install Script"
echo "------------------------------------------------"
# GradeL binary installs in the /usr/bin directory
echo " Copying GradeL program to /usr/bin"
cp gradel /usr/bin
# Gradel icon installs in /usr/share/gradel directory
if [ -d /usr/share/gradel ]
then
echo " Copying GradeL icon to /usr/share/gradel"
cp images/gradel.png /usr/share/gradel
else
mkdir /usr/share/gradel
echo " Copying GradeL icon to /usr/share/gradel"
cp images/gradel.png /usr/share/gradel
fi
# INSTALL, README, ChangeLog and COPYING install in /usr/share/doc/gradel
if [ -d /usr/share/doc/gradel ]
then
echo " Copying INSTALL, README, COPYING, and ChangeLog to /usr/share/doc/gradel"
cp COPYING /usr/share/doc/gradel
cp INSTALL /usr/share/doc/gradel
cp README /usr/share/doc/gradel
cp ChangeLog /usr/share/doc/gradel
else
mkdir /usr/share/doc/gradel
echo " Copying INSTALL, README, COPYING, and ChangeLog to /usr/share/doc/gradel"
cp COPYING /usr/share/doc/gradel
cp INSTALL /usr/share/doc/gradel
cp README /usr/share/doc/gradel
cp ChangeLog /usr/share/doc/gradel
fi
# Done
echo "Done! To run type gradel. Enjoy the program."
echo ""
#!/bin/shKeep the bug reports and questions coming!
# This shell script removes GradeL to the system.
echo ""
echo "GradeL Uninstall Script"
echo "------------------------------------------------"
# Remove binary
echo " Removing binary."
if [ -f /usr/bin/gradel ]
then
rm /usr/bin/gradel
fi
# Remove icon
echo " Removing icon."
if [ -s /usr/share/gradel ]
then
rm /usr/share/gradel/*.*
#rm /usr/share/gradel/*
rmdir /usr/share/gradel
fi
# Remove docs
echo " Removing documents."
if [ -s /usr/share/doc/gradel ]
then
#rm /usr/share/doc/gradel/*.*
rm /usr/share/doc/gradel/*
rmdir /usr/share/doc/gradel
fi
# Done
echo " GradeL has been removed from your system."
echo ""
GradeL, Gradebook for Linux, (rhymes with "cradle") is a gradebook program for teachers. Written in Gambas2 (2.7+), this program includes some features I felt were important in a gradebook program.
GradeL is still under development and you may encounter bugs. Please report any issues in the forum or via email. These reports are an essential part of the development of GradeL.