Giter Site home page Giter Site logo

Comments (7)

owenca avatar owenca commented on June 8, 2024

I need to learn how to implement an icon button first. What documentation and existing code should I look at?

from filer.

humdingerb avatar humdingerb commented on June 8, 2024

Never done it myself, but it looks quite straight forward, see BButton's SetIcon().
How to get to the icon data from the ressources, see GetIcon() of Filer's HelpTab.

Apps like BePDF and Koder use this I-O-M file. Filer should too, to fit it.

from filer.

owenca avatar owenca commented on June 8, 2024

Thanks! I thought there was an undocumented class BIconButton derived from BButton because the icon buttons are much smaller than a regular button.

So pretty much implement a button like the "Add..." button in the AutoFiler tab and then set the icon to the .iom icon file?

from filer.

humdingerb avatar humdingerb commented on June 8, 2024

Yes, I think so. I expect you can use a smaller button, like you did with the +/- buttons in the rules window. Here's an example of SetIcon() in the Haiku source: http://xref.plausible.coop/source/xref/haiku/src/servers/print/ConfigWindow.cpp#351

from filer.

owenca avatar owenca commented on June 8, 2024

A 'Save' File dialog for:

  • Add to archive

I think it should be an Open file panel. A Save file panel has an extra text control for editing the name of the selected file and is often used for "Save as...".

from filer.

humdingerb avatar humdingerb commented on June 8, 2024

Indeed. That suggestion was from before we (or I...) realized that Filer always deals with single files and its file name determines the ZIP archive's name. So, Open panel it is.

from filer.

humdingerb avatar humdingerb commented on June 8, 2024

Merged!

from filer.

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.