Giter Site home page Giter Site logo

layout support? about finalcut HOT 7 CLOSED

user1095108 avatar user1095108 commented on August 24, 2024
layout support?

from finalcut.

Comments (7)

gansm avatar gansm commented on August 24, 2024

If you need a flexible layout, you can overload the adjustSize() method.
An example can be found in examples/ui.cpp.

Planned for the future is an FGrid widget container, which organizes its child widgets into rows and columns.

from finalcut.

user1095108 avatar user1095108 commented on August 24, 2024

The issue transcends adjusting the size to different screens. There exists a Turbo Vision port for Linux/Windows, that has implicit 80x25 assumptions. Nasty.

from finalcut.

gansm avatar gansm commented on August 24, 2024

I'm afraid I don't understand the question. I can't see your point.
If you have a flexible layout, then it also works in 80x25.

from finalcut.

user1095108 avatar user1095108 commented on August 24, 2024

That's the point. I wrote a tvision app once and once I ssh-ed to the shell and tried out the app, one could see there were some 80x25 assumptions in library code, as the phone terminal emulator had very strange dimensions, you could see artifacts stemming from the 80x25 assumptions.

from finalcut.

gansm avatar gansm commented on August 24, 2024

Unfortunately, I still don't understand your question.
Have you a problem with tvision or Final Cut?

Final Cut gets its resolution information via TIOCGWINSZ. If this doesn't work I use the environment variables COLUMNS and LINES. Otherwise I assume a standard xterm resolution of 80x24.

from finalcut.

user1095108 avatar user1095108 commented on August 24, 2024

I was merely making a philosophical observation. Not only do layouts provide flexibility are regards different screen resolutions, they also guard us from making potentially invalid assumptions (like the 80x25 assumption in tvision). As for me personally, I was looking for a TUI library, that would support something like the Qt's QScrollArea, but no luck :(

BTW: If you intend to implement signals/slots, take a look at:
https://github.com/user1095108/generic/blob/master/callback.hpp

Otherwise, you can close this issue.

from finalcut.

gansm avatar gansm commented on August 24, 2024

There is FScrollView that should be what you are looking for. For an example you can look into the examples/scrollview.cpp source code.

A callback functionality is already implemented. For example, you can use emitCallback("clicked") to generate a signal that can call a own routine via widget.addCallback("clicked", F_METHOD_CALLBACK (this, &classname::method)).

from finalcut.

Related Issues (20)

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.