Ticket #78 (closed Enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

Local file management

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.1
Component: DeepaMehta Standard Distribution Version: 4.0.3
Keywords: Cc: JuergeN
Complexity: 8 Area:
Module: deepamehta-files

Description

Basically the functionality the "Files" and "File Manager" plugins provide for DM3 v0.4.5

These plugins must be adapted for use with DM4

Change History

comment:1 Changed 9 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Jörg Richter

Begin of feature "Local file management" (#78)

Adapt "Files" plugin to DM4 (begin).
Proxy feature functional.

Merged Trailblazer branch.
The Trailblazer feature is switched off.
Use the TRAILBLAZER_FEATURE switch to activate it.
See webpage_renderer.js of module deepamehta-webbrowser.

See ticket 78.

comment:3 Changed 9 years ago by Jörg Richter

Files module: basically functional (#78)

Functionality like in DM3: Drop a bunch of files and folders from your filebrowser to the DM canvas. They are now represented as topics (of type "File" resp. "Folder").

There are 2 features:

1) to open the file in its original application doubleclick the file topic.

2) to display the file contents right in DM's content panel click the file topic.
This is currently supported for:

  • Plain text
  • Images
  • Audio
  • Video
  • PDF

It should work with Firefox and Safari (Chrome not yet supported).
Audio/Video?/PDF capabilities rely on your browser plugins. Certainly there is e.g. a Firefox PDF plugin for your OS available on the net.

IMPORTANT for Firefox: for the DM file handling capability to work you must set one particular preference. Type about:config in the Firefox address bar, then double-click the signed.applets.codebase_principal_support preference to set it to true (no Firefox restart required). Later on, when you drop a file to the canvas Firefox will ask you for permission to read the file. Click "Allow".
(If you not set the particular preference, or if you click "Deny", Firefox has no access to your local files for security reasons.)
This is only a workaround. Later versions of DM will not require this setting.

With Safari no extra setup is required.

See ticket 78.

comment:4 Changed 9 years ago by Jörg Richter

  • Status changed from accepted to closed
  • Resolution set to fixed

Core/Webclient?: assign user icons to types (#49).

Assign an icon to a topic type (and thus to all of its instances):
1) Reveal the type
2) Navigate to its "View Configuration" topic. You see the currently assigned icon at the top of the content panel.
3) Press "Edit". You enter the view config's form. At the top you see the current icon.
4) Press the "Choose" button besides the icon. You see the iconpicker dialog with a variety of icons.
5) Pick one icon by clicking it. The iconpicker dialog closes. The picked icon appears in the form.
6) Press "Save". Now the picked icon is assigned to the topic type and all instances are rendererd with the new icon.

Add your own icons to the iconpicker:
1) Drag'n'Drop an image file from your OS's file browser to the DM canvas. It appears as a "File" topic.
2) Retype the file topic to "Icon" by choosing "Retype" from its context menu. The "Retype Topic" dialog box appears.
3) Choose "Icon" from the menu and press "Retype". The dialog box closes and the topic is now an "Icon". From that moment it appears in the iconpicker dialog and can be used as described above.

IMPORTANT: to use the file drag'n'drop feature in Firefox see here:
https://trac.deepamehta.de/ticket/78#comment:3

You must reset your DB.

Furthermore in the core (for developers): add hook PRE_UPDATE_TOPIC.

Close #49, #78, #82, #84, #85

comment:5 Changed 9 years ago by Jörg Richter

Core/Webclient?: assign user icons to types (#49).

Assign an icon to a topic type (and thus to all of its instances):
1) Reveal the type
2) Navigate to its "View Configuration" topic. You see the currently assigned icon at the top of the content panel.
3) Press "Edit". You enter the view config's form. At the top you see the current icon.
4) Press the "Choose" button besides the icon. You see the iconpicker dialog with a variety of icons.
5) Pick one icon by clicking it. The iconpicker dialog closes. The picked icon appears in the form.
6) Press "Save". Now the picked icon is assigned to the topic type and all instances are rendererd with the new icon.

Add your own icons to the iconpicker:
1) Drag'n'Drop an image file from your OS's file browser to the DM canvas. It appears as a "File" topic.
2) Retype the file topic to "Icon" by choosing "Retype" from its context menu. The "Retype Topic" dialog box appears.
3) Choose "Icon" from the menu and press "Retype". The dialog box closes and the topic is now an "Icon". From that moment it appears in the iconpicker dialog and can be used as described above.

IMPORTANT: to use the file drag'n'drop feature in Firefox see here:
https://trac.deepamehta.de/ticket/78#comment:3

You must reset your DB.

Furthermore in the core (for developers): add hook PRE_UPDATE_TOPIC.

Close #49, #78, #82, #84, #85

Note: See TracTickets for help on using tickets.