Qoopershare

Sample

 

Picoopery Script

Picoopery is a sample Cooperscript app which maintains a database of images of people. Many images include a specific person, having a first and last name.

Metadata

Each user has a corresponding SQL database stored in the root image folder. Every record in that database contains the following fields:

  • id
  • nextid
  • parid
  • childid
  • width
  • height
  • status
  • filename
  • firstname
  • lastname
  • description

Status of a folder is either normal, hidden, or restricted. Hidden folders and all sub-folders are not shared. Restricted folders and all sub-folders are NSFW (not displayed by default).

Qunit Folders

A qunit is a queue of image files contained in a folder, and qunit folders can contain other qunit folders recursively. Newly added image files go to the head of the queue in each qunit. Every qunit contains a special queue which is a subset of the main queue of images. Both the main and the special queues support image reordering commands: head, tail, move left, move right. The head of the queue is the leftmost image in the queue.

Commands

  • Enter - down a level
  • Up Arrow - up a level
  • Left/Right Arrow - previous/next
    • qunit/screen/image/slide
  • Down Arrow - toggle main/special
  • Ctrl+Down Arrow - toggle slide mode
  • 1 - first
  • 0 - last
  • Shift+Up Arrow - move to top
  • Shift+Left Arrow - move left
  • Shift+Right Arrow - move right
  • Shift+Down Arrow - move to bottom
  • L - like image: make it special
  • U - undo L command
  • I - insert image/qunit
  • D - delete (slide mode)
  • Ctrl+D - delete image/qunit
  • Ctrl+Z - undo
  • Ctrl+X - cut qunit
  • Ctrl+C - copy qunit
  • Ctrl+V - paste qunit
  • Ctrl+N - new qunit
  • Ctrl+R - rename qunit
  • J - justify (left, center, right)
  • B - bookmark qunit/access bookmarks
  • H - hidden qunit on/off
  • X - restricted qunit on/off
  • Y - sync qunit
  • R - go to random screen
  • S - search
  • Q - quit
  • F1 - cycle: menu/help/normal
  • F11 - fill screen
  • [x] - close menu bar

Qunits Mode

Displays parent qunit name followed by an indented list of qunit names. Current qunit is highlighted (enclosed in square brackets). Qunit properties: name, description, img-flag. If img-flag is false, qunit contains no images, only other qunits. By convention, images stored in non-image qunits reside in a sub-qunit called "$".

Tiles Mode

Whenever the user is in Qunits Mode and presses Enter when an image qunit is highlighted, the current mode becomes Tiles Mode. The display is divided into 3 rows of equal height (or n rows where n > 1). Each row contains images. All portrait-mode images are of equal height but of varying widths. Every landscape-mode image is the same width as the height of the row which contains that image. All images are separated by a white, one-pixel gap (user may increase pixel count of gap, globally). Clicking on an image will display it in Image Mode. Pressing Up Arrow makes the current mode become Qunits Mode.

Image Mode

Single image is displayed, expanded by the maximum amount available on the user's display. Pressing L or U modifies special flag if needed and the current mode becomes Tiles Mode. Pressing Up Arrow makes the current mode become Tiles Mode. Pressing Enter enables editing of caption, and/or toggling display of image captions, and/or toggling the filtering out of images which lack captions. The image-view count of the user who is the image owner is incremented, if different from the user viewing the image.

Slide Mode

Press Ctrl+Down Arrow to toggle between Tiles Mode and Slide Mode. Slide Mode displays between 1 and 3 images per slide. Each slide tries to fill the entire display. Click on an image in slide mode to enter image mode, then press D to delete the image from the slide. In slide mode, press I to insert an image. The next time the I command is used in image mode, the image is inserted into the slide. Various image arrangements (side-by-side, stacked, or some combination) are used automatically, depending on the aspect ratios of the images on the slide. New slides can only be inserted at the head of the slide list. One of the panels on a given slide (which contains 1 to 3 panels) can contain plain text or Coopertags code instead of an image.

Bookmark/Insert Commands

The Insert command displays the select-user web page. After selecting a user, the Local mode switch is off. Further Insert commands insert images/qunits into the current local qunit, and allow the user to change the current local qunit. The Quit command sets the Local mode switch back to on. The Bookmark command bookmarks the current qunit when Local mode is off (enabling bookmark parent list selection), and accesses the bookmark tree when Local mode is on.

[ Back to Top ]