Page 3 of 9 FirstFirst 12345 ... LastLast
Results 41 to 60 of 179

Thread: wwWidgets

  1. #41
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: wwWidgets

    Great collection wysota! Thanks
    I have suggestions for new widgets. What do you think ?
    • A dialog/widget to edit gradients (all - linear, radiant and conical)
    • A dialog/widget to set pen and brush properties (including cap, milter joints..)
    • Finally a combo of the above


    If you are interested in above probably you can have two modes, one "Lesser mode" which shows only basic properties.
    The "More mode" could show each and every property described above.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  2. #42
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    Quote Originally Posted by Gopala Krishna View Post
    Great collection wysota! Thanks
    Thank you.
    I have suggestions for new widgets. What do you think ?
    • A dialog/widget to edit gradients (all - linear, radiant and conical)
    • A dialog/widget to set pen and brush properties (including cap, milter joints..)
    • Finally a combo of the above
    I have the first one in plans. I didn't think about the second one, but it might be a good idea to make a widget to handle that. The third one is a simple composition of the first two, so one can use two separate widgets.

    If you are interested in above probably you can have two modes, one "Lesser mode" which shows only basic properties.
    The "More mode" could show each and every property described above.
    Yeah, maybe. I'm trying to be implementing widgets and not dialogs as they are more robust and can handle more use cases, so probably this will be the case here as well.

    Thanks for your suggestions. 0.9 should be available soon, so it probably won't go into the set until 1.0. That in turn will freeze development of new widgets in the stable branch, so if those widgets don't make it into 1.0, they probably won't be available until 1.2.

    If you have suggestions how the gradient editor should look like, feel free to drop me a line either here or by email. I've seen gradient editors from KDE, Trolltech and Corel applications but I'm not sure I like any of them.

  3. #43
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: wwWidgets

    Quote Originally Posted by wysota View Post
    If you have suggestions how the gradient editor should look like, feel free to drop me a line either here or by email. I've seen gradient editors from KDE, Trolltech and Corel applications but I'm not sure I like any of them.
    I haven't seen any of them Any links ? Googling didn't help me.
    Actually i wanted to do myself a simple gradient editor widget and didn't find any pointer to this.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  4. #44
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    If you open stylesheet editor in Designer 4.4, there is an option to edit a gradient. KDE4 has its gradient editor as well (sorry, no link now). Corel has a very simple linear gradient editor where you can define "stops" and colours for them and there is a bar that shows the result live. Other gradients in Corel DRAW are made interactively by dragging the mouse over the drawing sheet and/or choosing the parameters from comboboxes or spinboxes.

  5. #45
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: wwWidgets

    Corel has a very simple linear gradient editor where you can define "stops" and colours for them and there is a bar that shows the result live. Other gradients in Corel DRAW are made interactively by dragging the mouse over the drawing sheet and/or choosing the parameters from comboboxes or spinboxes.
    Phtotshop, Illustrator and InDesign, all have a similar way of defining gradients. So does PaintShopPro and many other design programs.

    Probably the users prefer this way...

  6. #46
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    If you mean the bar, then it only allows one to edit a linear gradient.

  7. #47
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: wwWidgets

    No, I meant the entire gradient palette, with all the options. You can also change the gradient style from there - linear, radial, etc.

    Although, the pdf spec defines a few "exotic" gradient types, such as Coon's patch gradients, which are all supported(read-only) by all Adobe products but I haven't yet found a way to create one with them.
    I believe Qt, when printing to pdf, saves all gradients as coon patch.

  8. #48
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    Quote Originally Posted by marcel View Post
    No, I meant the entire gradient palette, with all the options. You can also change the gradient style from there - linear, radial, etc.
    Yes, but you won't be seeing the final effect in action - the gradient will still be visualized as a linear gradient. I like the gradient editor from Qt Designer way way more.

  9. #49
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: wwWidgets

    While trying to use your classes i felt the following addition to QwwRichTextEdit would rock it more!

    • Toolbuttons to control the subscript and superscript of text.
    • An intelligent toHtml() method which isn't bloated as is that of QTextEdit
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  10. #50
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    Quote Originally Posted by Gopala Krishna View Post
    Toolbuttons to control the subscript and superscript of text.
    They will be available in the upcoming release.
    An intelligent toHtml() method which isn't bloated as is that of QTextEdit
    That's more complicated. The problem is within QTextDocument and not QTextEdit so it should be solved there - a class exporting QTextDocument to proper html would be needed as a general purpose solution. It's not that hard to implement - you can traverse nodes of the document easily and create output of your choice.

  11. #51
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: wwWidgets

    If i remember correctly, i read on planet kde that someone has written a script to reduce the richtext's html generated by designer. Googling didn't help me.

    Anyway's i will try to write one if i can't find the script.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  12. #52
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    Quote Originally Posted by Gopala Krishna View Post
    If i remember correctly, i read on planet kde that someone has written a script to reduce the richtext's html generated by designer.
    In my opinion this is not the way to go. You double the work this way - first QTextDocument generates its html representation and then the script simplifies it into another html. It's better to generate a clean html in the first place and its easily achievable - all that it takes is a bit of brainstorming how to avoid pitfalls that may arise and then apply those developed rules during document traversal.

    I'm thinking of developing an output generator for the MediaWiki syntax. Currently I don't have time to do it, but maybe in the near future I will.

  13. #53
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: wwWidgets

    Someone is working on a MediaWiki "rich text editor" control for Qt., again, look in the KDE planet.

    About editing HTML: has anyone tried use the webkit editor control...? I know it can display HTML (it's pretty good at it), but how about editing, anyone tested?

  14. #54
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: wwWidgets

    Quote Originally Posted by wysota View Post
    In my opinion this is not the way to go. You double the work this way - first QTextDocument generates its html representation and then the script simplifies it into another html. It's better to generate a clean html in the first place and its easily achievable - all that it takes is a bit of brainstorming how to avoid pitfalls that may arise and then apply those developed rules during document traversal.

    I'm thinking of developing an output generator for the MediaWiki syntax. Currently I don't have time to do it, but maybe in the near future I will.
    I agree but as you won't be fetching the tidied rich text very often(other than saving and for copying the text), it shouldn't cause much difference though there is double work.

    Anyway i am looking forward for your output generator.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  15. #55
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Thanks
    43
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: wwWidgets

    Attached is a simple extension to QwwRichTextEdit that adds a "link" button, allowing user to add hyperlinks. Also two new signals are emited: anchorHovered(QString) and anchorClicked(QString).

    (Wysota, feel free to use this code or modify it as you like.)
    Attached Files Attached Files

  16. #56
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    Thanks. I'll include it in the next release of the widget set. It should be out today or tomorrow.

  17. #57
    Join Date
    Feb 2008
    Posts
    157
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: wwWidgets

    Do you except feature requests?

    I require something which could be called doubleExponentialSpinBox. That should be a SpinBox that excepts double values but displays them as "1234.0234 e -123".
    The Buttons should then increase either the value or the exponential depending on the position of the cursor.
    I require this very often since I am a physicist and deal with high exponential values quite often. However it is not possible to display these in any standard spinbox.

    Matthias

  18. #58
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    Quote Originally Posted by pospiech View Post
    Do you except feature requests?
    Sure, why not.

    I require something which could be called doubleExponentialSpinBox. That should be a SpinBox that excepts double values but displays them as "1234.0234 e -123".
    This can be done with the regular double spinbox by reimplementing two methods.

    The Buttons should then increase either the value or the exponential depending on the position of the cursor.
    Ah.. I see... seems nice, I'll look into it.

  19. #59
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: wwWidgets

    Hi,

    i build wwWidgets on Win XP (Qt 4.4.1 and MinGW) without any problem. But when I do 'make install' I get this error
    Qt Code:
    1. mingw32-make[1]: Leaving directory `C:/Dokumente und Einstellungen/Kathi/Desktop/wwWidgets-0.8/wwwidgets/plugin'
    2. copy /y c:\Dokumente und Einstellungen\Kathi\Desktop\wwWidgets-0.8\wwwidgets\widgets\wwglobal.h c:\Qt\4.4.1\include\wwWidgets
    3. Das System kann die angegebene Datei nicht finden.
    4. mingw32-make: [install_flat_headers] Error 1 (ignored)
    5. copy /y c:\Dokumente und Einstellungen\Kathi\Desktop\wwWidgets-0.8\wwwidgets\widgets\qwwcolorbutton\qwwcolorbutton.h c:\Qt\4.4.1\include\wwWidgets
    6. Das System kann die angegebene Datei nicht finden.
    7. mingw32-make: [install_flat_headers] Error 1 (ignored)
    To copy to clipboard, switch view to plain text mode 

    It means 'The system can't find the file' ...
    The folders in Qt/include/wwwidgets etc. are created but the files are not copied. Any idea? thx

  20. #60
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: wwWidgets

    I'd say this is a problem with whitespaces in your path. Try using a path without spaces and see if the problem persists.

Similar Threads

  1. wwWidgets
    By mickey in forum Qt Programming
    Replies: 22
    Last Post: 17th July 2006, 16:20

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.