Giter VIP home page Giter VIP logo

cuis-smalltalk-styledtexteditor's People

Contributors

bpieber avatar hhzl avatar jvuletich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cuis-smalltalk-styledtexteditor's Issues

Include font exporter for Pharo

The Pharo code which can be used to export TrueType fonts for importing them into Cuis should be included in the repository. It should be packaged as a Monticello package which can be installed in Pharo 1.4.

Height of style drop down lists

In Cuis 4.2 the style drop down lists are higher than in Cuis 4.0. This has the effect that the label and the style name baselines are not aligned anymore. Furthermore the drop down button is bigger than the scroll bar buttons.

Before in Cuis 4.0:
cuis4 0

Now in Cuis 4.2:
cuis4 2

This may also be the reason for the initially wrong scrolling of the drop down list. See the first line. Note that no scroll bar is visible:
dropdown

Shortcut keys for window cycling

Currently Cuis uses cmd-< and cmd-> to cycle windows. This works (for example) on a Mac with US defaults, where the Finder shortcuts for doing that (cycling the windows of the same app) are cmd-and cmd-shift-. But it doesn't work on a Mac with German defaults, where cmd-< and cmd-> are the Finder (OS) shortcut; because the Squeak VM doesn't get these keystrokes.

What we want is pretty different. We'd like to use the same keystrokes as Finder. We need a way to tell OS-X that we want to handle the "next window in same app" and "previous window in same app" events ourselves, and react to them. Most likely this requires some VM level work.

In addition, think about (and implement) reasonable behaviors for other OSs, like Windows and Linux, that most likely don't have keystrokes for this behavior.

Pasting images introduces spaces and changes styles

To reproduce:

  1. Copy an image outside Cuis.
  2. Open a StyledTextEditor.
  3. Switch the paragraph style to Heading 1.
  4. Paste it.
  5. The paragraph style switches to Normal. Before and after the images are spaces. Move the caret with the cursor keys left and right. Note that the character style switches back and forth from "-none-" to "-none- (n)"

Port to Pharo

Beautiful work!!! I really want this in Pharo and I noticed it's on your todo list. How can I help?

Font sizes on Screen

A 12 point font doesn't display with the same size in StyledTextEditor as on a Mac text editor like TextEdit. This has to do with the Mac assuming a 96 dpi display while other platforms (Windows, Linux) assume 72 dpi display. Maye make this platform dependent, or a user preference. Check in detail. Make any change consistent for Cuis and STE.

Don't align methods in .pck files

Currently spaces are inserted before methods in .pck files so that they are aligned. This leads to unneeded changes in DVCS diffs.

MNU during install in Cuis4.1-1663

When I follow the installation instructions a debugger pops up with a MessageNotUnderstood: UndefinedObject>>verticalGradient:topColor:bottomColor:.

It happens during opening of the Styled Text Editor documentation.

--- The full stack ---
UndefinedObject(Object)>>doesNotUnderstand: #verticalGradient:topColor:bottomColor:
PluggableStyledTextMorph class>>withModel:in:
SystemWindow class>>editFancierStyledText:label:
StyledTextInstaller>>open:
StyledTextInstaller>>openStyledTextEditorDocumentation
StyledTextInstaller>>openExamples
StyledTextInstaller>>install

Set StyledTextModel fileName on read

When a StyledTextModel is saved, then renamed and/or moved to a different directory and read again, the file name should set correctly so that when you save the file is saved where it was last loaded from.

It seems cleanest to avoid serializing the fileName and setting it on load.

STEditor font not proportional to environment font

Hi,

I am new to Smalltalk, I started my explorations with Squeak.

Today I installed Cuis to see your StyledTextEditor, which is a terrific idea IMO, it may be extremely useful to write wonderful documentation, maybe near methods!

I installed Cuis and STE, all fine, but there is a problem, the font is way toooo small when compared to the Workspace default font. I tried to tune it a bit without much success, I need the font considerablly larger. Is it possible?

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.