Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Stellarium script language IDE

Feedback
2012-02-18
2012-10-09
  • Dear Stellarium developers:

    I'm a grateful user of Stellarium for many years. It's the best and
    pretty application I have ever seen. I wish I could have made it .

    My idea is to propose a complementary IDE for the
    Stellarium script language as final project of a PhD courses subject. It would
    be
    an external and stand-alone executable and cross-platform C++ object
    oriented application using wxWidgets as GUI library.

    The main potential features for the editor are:

    • Multiple windows tabs
    • Syntax highlighting
    • Copy / Paste / Undo
    • Search / Replace
    • Line and columns indicators
    • Load / Save
    • Print / Print preview
    • Stellarium's idiom support
    • Cross platform: Win32, Linux64, Mac Os
    • Help
    • Licensed as GPLv3.0

    If everything's ok this project will be complete by july.

    I hope you can consider my proposal.

    Thank you in advance,
    ioxepsilon

     
  • Alexander Wolf
    Alexander Wolf
    2012-02-19

    Hi, ioxepsilon!

    You have very nice proposal, but I have some questions about it.

    1. How do you plan to teach your IDE set of Stellarium's API functions?

    2. How do you plan development your IDE when Stellarium's API's changed?

    3. Why wxWidgets?

     
  • Matthew Gates
    Matthew Gates
    2012-02-20

    Hi ioxepsilon,

    This sounds like an interesting project. Alex raises some important points.
    With respect to changes to the scripting API, it would be possible to write a
    script which parses Stellarium source code and generates a list of available
    public slots for some named set of classes - this is how the API is built up.

    Unless you are closely tied to wxWidgets, I would recommend QT - I feel is a
    better API for this sort of program. Moreover, if I were to approach this
    problem, I would consider implementation as a module for something like QT
    Creator or KDevelop, or to enhance the script console feature of Stellarium
    itself, rather than making a whole new IDE.

    Having said all this, I don't want you to feel like I'm putting constraints on
    what you do - this is just me thinking out loud. Whatever you decide to do,
    one part of your project which would really benefit Stellarium directly would
    be to enhance the documentation of the scripting API. Please do submit patches
    for the Stellarium code for documentation improvements.

    M

     
  • Hi matthew,

    "...it would be possible to writea script which parses Stellarium source code
    and generates a list of available
    public slots for some named set of classes..."

    It sounds nice, but could you be more specific or write an example for this
    sentence? I really don't understand what this issue means. The question is I
    have to implement a final project for a PhD Ruby's subject that processes
    source code and generates and output. Would you have any proposal or "to do"
    project in Stellarium to use Ruby inside/outside Stellarium source code
    appliaction or plugin?

    iox

     
  • Matthew Gates
    Matthew Gates
    2012-02-20

    Well, the scripting API is something which any decent IDE needs to be aware of
    - for implementing code completion, syntax highlighting and such... so
    somehow, you need to tell your IDE program what keywords are relevant to
    Stellarium scripting. How can you get a list? Well.. you can parse the source
    code.

    The scripting API is made up of the public slots for some specific list of
    objects in the program... one for each "module", and a few others too.

    What I would propose is actually to use QT's moc command line tool and parse
    the output of that tool. The reason for this is that "slots" are a QT-specific
    thing. This is a reason why I would recommend to use QT instead of
    wxWidgets... only with some small understanding of QT can you know what I'm
    talking about. :-)

    M

     
  • Matthew Gates
    Matthew Gates
    2012-02-20

    Just saw you in there in the history. If you don't use my full name, I don't
    get a notification that you talked to me, so please do prefix messages
    addressed to me with my full nick (matthewg42).

    M

     
  • qam1
    qam1
    2012-02-25

    Sounds like a great idea!

    The new scripting engine has so much more potential than the older
    Stratoscript

    The only thing holding it back is it is much more complicated and not as user
    friendly for the casual programmer

    Anything that helps would be welcome

    I like this "Line and columns indicators"

    One frustrating thing with the script is errors, you miss a comma or a bracket
    somewhere and get those parse errors and there's no way to find where your
    error is except to search dozens or even hundreds lines of code.

    As as for Help, Remember the KISS principle, which is unfortunately lacking in
    the current manual

    Anyhow, best of luck to you, I look forward to seeing what you come up with

     


Anonymous


Cancel   Add attachments