Commit Graph

7 Commits

Author SHA1 Message Date
Glen Whitney 2e0a3a480c Improve dialogs
Now in fteapot you can select any one of the buttons in a modal dialog
  with the cursor keys and hit enter and it will be selected.
  Fixes #17.
  In addition, I clarified that the block attribute options will either set
  every cell to bold (say), or unset every cell, or you can cancel to not
  actually go through with the block operation.

  These changes required adding a custom FLTK dialog, tpt_choose.{h,cxx}.
  Along the way, I reflowed fteapot.fl to make it more readable for further
  coding.
  Finally, there is a small amount of additional prep for color support
  that (unfortunately) got mixed in with these changes.
2019-08-02 20:31:48 -04:00
Glen Whitney 341b12ba04 Implement a relative reference robust to source and reference moving
The new function is X(SRC,REF), which briefly for a cell in the neighborhood
   of REF returns the corresponding cell in the neighborhood in SRC. For
   further details, see the updated documention.

   In developing and documenting this function, I refined some of the
   existing error messages (e.g. showing the coordinates when there is an
   attempt to obtain a cell with a negative coordinate) and improved the
   error propagation to increase the chance that the innermost error will
   percolate to the top level.
2019-07-30 15:07:54 -04:00
Glen Whitney 25bb787f08 Prepare for per-cell configurable colors
So far, this jst consists of initializing color in curses mode, and making
  the display start and end part of intializing and freeing a sheet (so that
  it can control allocating the palette, for example, where the data structure
  used depends on what kind of display it is.

  Next up will be to allocate and destroy the color palette, and set up the
  default colors for cells to use (0 for foreground,
  TEAPOT_WHITE for background.) The outline beyond that is to allow setting of
  the cell colors, then actually display those colors, and finally edit the
  palette.
2019-07-29 11:35:10 -04:00
Glen Whitney 2a4071f8dc Prevent some near-startup coredumps.
Fixes #38.
2019-07-27 23:54:16 -04:00
Glen Whitney 39c12c08e0 Implement a fill-with menu item
This new option fills the entire marked region with copies of the current cell.
  Implements #35.
2019-07-27 04:08:42 -04:00
Glen Whitney 8b95dec96d Factor Cell into its own file
THis will make adding other Cell operations easier.
2019-07-27 03:00:03 -04:00
Glen Whitney ea230efc23 Move source code into subdirectory
Also removed a stray copy of the automatically generated config.h which
  had somehow gotten into the distribution. Closes #36.
2019-07-27 01:35:44 -04:00