Tag Archives: SVG

KAppTemplate updates

If you want to develop a KDE project (Plasma applet, runner, GUI app, Akonadi resource, Qt only app, …) you can use KAppTemplate to generate a basic template for such a project. KDevelop also uses those templates and provides you with a full IDE while after generating the template with KAppTemplate you are left with using your terminal and editor (Kate does both by the way 😉

Recently I added 2 new projects templates: a Plasma QML based applet and a Qt5 – QtQuick2 application. Here are previews of those new additions:

This is the Plasma QML applet, displaying a SVG image (from Pairs, the kids love this pic) with a Plasma label below. From there you can start adding stuff and develop your own plasmoid!

This is the Qt5 and QtQuick2 application which is also fun to get you started with QtQuick 2 new classes. When you right click the background becomes green and when you left click the app quits.

Those templates are only a few lines of code but they should compile and run and when you achieved that you’re all set for serious development!
Hope you’ll have fun with those ready-made little projects which can become very big! This is how I started developing for KDE, some years ago, and did it become addictive!!!

From: http://annma.blogspot.com/2013/04/kapptemplate-updates.html

KDE Games gets QtQuick support!

Since my last year’s GSoC with porting KBreakout to QtQuick, I have been working on adding support for QtQuick to KDE Games libraries. After a few months efforts and careful reviews by David, Albert and Ian (thanks to them!) it has been finally pushed to master.

What’s new

With the QtQuick support, libkdegames has two crucial additions for QML:
  1. A declarative view (KgDeclarativeView) with added bindings to KDE‘s convenience functions (eg, i18n() etc.) and register KDE specific paths to QML plugins; this is done with help of KDeclarative in kdelibs.
  2. A QML component for showing game’s UI elements from the its SVG files, similar to what KGameRenderer provides. Just do a “import org.kde.games.core 0.1 as KgCore” and KgCore.KgItem component can be used to display elements from SVGs.
One important thing to remember here is that only the central game areas are shown in QML, rest of the parts like the main window, toolbars, menus, status bars, etc. remain as it is.

The insides

KgDeclarativeView is simply a wrapper over QDeclarativeView with support for what KDeclarative provides. There is absolutely nothing more that has been written in its code, so it can be treated just like an usual QDeclarativeView.
For rendering of theme SVGs and retrieving a given element from it, we have KgImageProvider, which is a subclass of QDeclarativeImageProvider. The game UI elements are requested via the QML Image element (KgCore.KgItem acts as a wrapper for this), which in turn uses KgImageProvider as its image provider, triggering rendering requests when theme changes, size of the game window changes, etc. KgImageProvider is supplied the game’s KgThemeProvider objects (one image provider for each theme provider (yes we can haz multiple theme providers!)). The image provider uses this theme provider to discover path to the SVG file for currently selected game theme and render the requested element from it, and return the QImage. One advantage here is we get rid of KGameRenderer altogether as asynchronous loading and caching capabilities are already provided by QDeclarativeImageProvider!

One challenge with showing elements from SVG was, the image element goes invisible once new rendering request is triggered and becomes visible when rendering is complete, showing the newly rendered image. This caused a little noticeable flickers when window was re-sized or the theme was changed. This was tackled by having two image elements, one of them always invisible for triggering rendering requests, while the other is always visible. Whenever the invisible image’s rendering request is complete (indicated by the status property of QML image element) the visible image is updated with the newly rendered image. This way we have no flicker at all, images are updated only when their rendering is complete.

Hack away!

So how do we use the QtQuick support in our games?
In mainwindow.cpp, we create KgThemeProvider objects (as usual):
m_provider1 = new KgThemeProvider;
m_provider1->discoverThemes(…);
m_provider2 = new KgThemeProvider;
m_provider2->discoverThemes(…);
m_canvas = new KgDeclarativeView;
m_provider1->setDeclarativeEngine(“provider1”, m_canvas->engine());

Kips Bay Medical Provides FDA Update & Reports Fourth Quarter and Full Year 2012 Results

By Business Wirevia The Motley Fool

Filed under:

Kips Bay Medical Provides FDA Update & Reports Fourth Quarter and Full Year 2012 Results

MINNEAPOLIS–(BUSINESS WIRE)– Kips Bay Medical, Inc. (NAS: KIPS) along with Manny Villafaña, its Founder, Chairman and CEO, today provided an update on its progress with the U.S. FDA and announced financial results for fourth quarter and year ended December 31, 2012.

FDA Update

Recent highlights:

  • Receipt of IDE approval with conditions from the U.S. FDA.
  • U.S. FDA approves enrollment expansion to 15 patients in the U.S.
  • First eSVS Mesh Implants in the U.S.
  • U.S. FDA removes conditions from IDE approval.

Kips Bay is currently conducting a feasibility trial in the United States and Europe. This trial is a multi-center, randomized study of external saphenous vein graft (“SVG“) support using the Company’s eSVS® Mesh in CABG Surgery and is titled the eMESH I clinical feasibility trial. The objective of this trial is to demonstrate the initial safety and performance of the Company’s eSVS Mesh for use as an external SVG support device during coronary artery bypass procedures. Kips Bay Medical expects to enroll up to 120 patients at eight European and four U.S. sites. Enrollments in the eMESH I trial commenced in late August 2012 at the Bern University Hospital, Bern, Switzerland. The primary safety endpoint is the rate of major adverse cardiac events (“MACE“) within 30 days of the procedure. The eSVS Mesh performance will be evaluated based upon the angiographic patency rate of the enrolled grafts, where patency is defined as less than 50% stenosis, or blockage, of the SVG at six months after surgery. As of March 1, 2013, six sites in Europe and the United States have received ethics committee approval and are actively recruiting patients. The Company expects to use the data from this study as the basis for the filing of a request for an Investigational Device Exemption (“IDE“) to perform a pivotal trial in the United States and Europe.

On November 8, 2012, Kips Bay announced that the U.S. Food and Drug Administration (“FDA“) had approved with conditions our application for an IDE to include four U.S. …read more
Source: FULL ARTICLE at DailyFinance

Veusz 1.17 (KDE Scientific)

Thumbnail

Veusz 1.17
(KDE Scientific)
Veusz is a scientific plotting package, designed to create publication-ready Postscript or PDF output. It can create line graphs, XY plots, histograms, shapes, images and contour plots. It features GUI, command-line, and scripting interfaces. Graphs are constructed from components, allowing complex layouts to be designed.

changelog:
Changes in 1.17:
* Add new broken axis widget with gaps in the numerical sequence
* Grid lines are plotted always under (or over) the data
* Shift+Scroll wheel scrolls left/right (thanks to Dave Hughes)
* Polar plots can have a “minimum” radius and log axes
* Many more LaTeX symbols added
* Add SAMP/VoTable support (thanks to Graham Bell)
* New shifted-points xy line mode, which plots a stepped line with the points shifted to lie between the coordinates given
* Points can be picked to console and/or clipboard (thanks to Valerio Mussi)
* Allow reversed ternary plot

Bug fixes:
* Fix unicode characters for circ and odot
* Fix for data type of pickable points
* Fix sort by group crash bug
* Many crashes fixed
* Fix width of key when using long titles/and or multiple columns
* Fix bold and italic output in SVG output

[read more]

job recommendations:

Sales Engineer full time employee
ownCloud Inc. United States of America, Boston more about this offer

[more jobs]
…read more
Source: FULL ARTICLE at KDE Apps

launchSwitch 0.1 (Plasmoid Script)

Thumbnail

launchSwitch 0.1
(Plasmoid Script)
This simple plasmoid can be used as a switch to launch alternatively two programs or two commands.
Personnaly i use it as a proxy switcher between my company proxy and home connexion without proxy.
The programs or commands to be launched can be configured.
This is a pure source plasmoid, nothing has to be build.
This development reuse one of the example provided with qt.
It needs KDE 4.9 as a minimum.

For the first version the SVG images are not resizable.

[read more]

job recommendations:

Sales Engineer full time employee
ownCloud Inc. United States of America, Boston more about this offer

[more jobs]
…read more
Source: FULL ARTICLE at KDE Apps

Converseen 0.5.3 (KDE Graphic Tool)

Thumbnail

Converseen 0.5.3
(KDE Graphic Tool)
Converseen is an open source project written in C++ with the powerful Qt4 libraries.
Thanks to the Magick++ image libraries it supports more than 100 image formats.
You can convert an unlimited number of images and / or create thumbnails
to any of the most popular formats: DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF.
With Converseen you can save your time because it allows you to process more than one image with a mouse click!
Converseen is very simple: it features a very simple user interface without strange options.

With converseen you can:
Carry out a single or a multiple conversion.
Resize one or more images.
Compress images for your web pages.

Converseen depends on Qt4 and Magick++ libraries.

If you appreciate this work and would like to support the project, you are welcome to donate money via Paypal: http://converseen.sourceforge.net/#donations

Converseen is available for the following platforms:

  • Archlinux
  • Chakra Linux
  • Fedora
  • Mageia
  • Opensuse
  • Ubuntu
  • Windows XP/Vista/7
  • changelog:
    0.5.3 – 2013-02-12
    – Now it works with ImageMagick >= 6.8.0
    – Added russian translation

    0.5.2 – 2012-11-12
    – Fixed a bug with the overwrite option on Windows
    – Updated the german translation

    0.5.1 – 2012-07-02
    – Fixed a bug with density/resolution settings
    – Updated translations (Hungarian, Czech, French, Brazilian Portuguese, Spanish)

    0.5 – 2012-06-05
    – New and highly optimized graphical user interface
    – Improved thumbnail generation
    – Possibility to resize different image formats without changing the destination formats
    – Possibility to choose a background color when converting images to formats that don’t support alpha channel like jpeg files.
    – Possibility to override transparency with an arbitrary color
    – Improved conversion process
    – Now, at the end of the conversion process, the destination folder(s) can be opened with a click
    – All the interface attributes are automatically saved
    – Fixed the bug with dotted filenames
    – Both tif and tiff formats can be opened
    – Other GUI improvements
    – Various bug fixed

    0.4.9 – 2012-01-31
    – Fixed a bug with special characters

    0.4.8 – 2012-01-10
    – Fixed a bug in picture previewer

    0.4.7 – 2011-12-01
    – Optimized GUI for small screen resolutions (netbooks)
    – Fixed overwriting with upper suffixes
    – Now the window geometry is saved

    0.4.6 – 2011-09-13
    – Fixed a bug with the overwriting option

    0.4.5 – 2011-09-12
    – Modified the code to work in Windows
    Added Turkish translation
    – Added support for Cmake

    0.4.3 – 2011-08-03
    – Added service menu for Kde
    – Fixed overwriting with upper suffixes
    – Added Spanish (Chile) translation

    0.4.2 – 2011-06-28
    – Fixed overwriting dialog when the renaming option is enabled.

    0.4.1 – 2011-03-10
    – Improved picture previewer
    – If the output folder doesn’t exists it will be created

    0.4 – 2011-02-11
    – Added thread support to image conversions.
    – Added a progress …read more
    Source: FULL ARTICLE at KDE Apps

    Stuart Langridge: Simple SVG sparklines

    Jeremy Keith calls out for “a lightweight SVG solution for sparklines”, which seems like it would be a nice thing to have.

    Like this, kinda:

    Just grab http://www.kryogenix.org/random/sparkline.svg and then use it in your pages* like this:

    This works by having the SVG itself contain JavaScript which parses its own querystring. Therefore, you need to use , not , because embedded script doesn’t run in SVGs used as images.

    Source: Planet Ubuntu