Giter Club home page Giter Club logo

Comments (20)

circular17 avatar circular17 commented on May 18, 2024

Fixed on dev-vectorial branch, I will merge it soon with dev-bgrabitmap
(to solve it locally, simply add static keyword after the called method definition)

from lazpaint.

lainz avatar lainz commented on May 18, 2024

Hi, I switched to dev-vectorial and still not working.
I added static to the end of the method TFMultiImage.ShowAndChoose and says that static is not allowed here.

from lazpaint.

lainz avatar lainz commented on May 18, 2024

Sorry I found the problem was I switched only to dev-vectorial of lazpaint and not to dev-vectorial of bgrabitmap.

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

Hmmm I am surprised I believe there is nothing in dev-vectorial of bgrabitmap. In fact I did not intend to create this branch. I created it from LazPaint and from some reason it was added in bgrabitmap too.

And the method TFMultiImage.ShowAndChoose is not meant to be static.

from lazpaint.

lainz avatar lainz commented on May 18, 2024

Still not compiling but for another reasons not static, maybe there are files missing?

What combination of branches should I use to test?

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

What error do you get?

from lazpaint.

lainz avatar lainz commented on May 18, 2024

Using dev-vectorial in both sources I get:
ustatetype.pas(1058,19) Error: Identifier idents no member "SaveOriginalToStream"
ustatetype.pas(1075,72) Error: Wrong number of parameters specified for call to "AddOriginalFromStream"
bgralayers.pas(1262,29) Error: Found declaration: AddOriginalFromStream(TStream):LongInt;
ustatetype.pas(1084,65) Error: Identifier idents no member "OriginalGuid"
ustatetype.pas(1102,72) Error: Wrong number of parameters specified for call to "AddOriginalFromStream"
bgralayers.pas(1262,29) Error: Found declaration: AddOriginalFromStream(TStream):LongInt;
ustatetype.pas(1105,64) Error: Identifier idents no member "OriginalGuid"
ustatetype.pas(1112,64) Error: Identifier idents no member "OriginalGuid"

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

Hmm try setting branch to dev-bgrabitmap and pull the last changes

from lazpaint.

lainz avatar lainz commented on May 18, 2024

If I switch back to dev branch I get the original problem of static. Even pulling all new stuff.

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

Ok. What error do you get ?

from lazpaint.

lainz avatar lainz commented on May 18, 2024

umultiimage.pas(74,30) Error: Only static methods and static variables can be referenced through an object type

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

Ok. When you CTRL-Click to get the definition of Empty, what do you have?

from lazpaint.

lainz avatar lainz commented on May 18, 2024

Oh I see, I fixed it adding static into 2 class functions.
class function Empty: TImageEntry; static;
class function NewFrameIndex: integer; static;

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

Those are already on the latest dev-vectorial branch of LazPaint.

from lazpaint.

lainz avatar lainz commented on May 18, 2024

Ok thanks for adding it. Seems that I had missing the 2 latest commits.

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

Ok. Sorry for the confusion, I don't know why there is a dev-vectorial on bgrabitmap.

from lazpaint.

lainz avatar lainz commented on May 18, 2024

Ok, no problem. You can easily delete it from the web gui. But check if there is nothing inside that can be lost.

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

Yeah I don't want to loose my changes. Maybe I will wait after I merge LazPaint branch to be sure.

from lazpaint.

circular17 avatar circular17 commented on May 18, 2024

So in this dev-vectorial, I am making LazPaint compatible with the vector layers. Not adding yet the vectorial tools. Just that if you load something that contains an original, it will preserve it. For example something from vectoredit or the file generated by test/layeroriginal.

from lazpaint.

lainz avatar lainz commented on May 18, 2024

Cool =)

from lazpaint.

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.