Cirkuit

Science

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

7
Score 80.0%
Description:

Cirkuit is a KDE4 application to generate publication-ready figures. It was born as a KDE frontend for the Circuit macros by Dwight Aplevich, but it now supports different backends. Cirkuit builds a live preview of the source code and can export the resulting images in several formats (EPS, PDF, PNG, SVG, ...).

Circuit Macros is a set of macros for drawing high-quality line diagrams to include in TeX, LaTeX, or similar documents. Check this page by Alan Robert Clark to see some nice examples.

In addition to Circuit Macros, the TikZ and Gnuplot backends are currently supported. Some examples generated with TikZ can be found here. The CircuiTikz extension, which allows to draw electrical networks, is also supported (but it has to be installed separately).

Requirements
------------

To run this application you need to have the following applications installed:

* latex (with PSTricks, TikZ and preview packages)
* dpic
* m4
* gs
* dvips
* pdf2svg

On Debian-based systems (e.g. Ubuntu/Kubuntu) type the following command to install the required apps:

sudo apt-get install texlive-latex-base texlive-latex-recommended texlive-pstricks texlive-base-bin texlive-extra-utils preview-latex-style m4 ghostscript pdf2svg

At the moment, there is no package for dpic, so you will need to compile from source, or select gpic as the default pic interpreter in Cirkuit settings.

To build Cirkuit you need cmake and the KDE4 and Qt4 dev packages. To install them on Debian-based systems, type

sudo apt-get install cmake kdelibs5-dev libqt4-dev libpoppler-qt4-dev


To build the application, follow the usual KDE4/CMake procedure:

tar xzvf cirkuit-0.4.tar.gz
cd cirkuit-0.4
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
make
sudo make install

Visit the application homepage: http://wwwu.uni-klu.ac.at/magostin/cirkuit.html

The project is now hosted on git.kde.org: http://projects.kde.org/cirkuit

Please submit bugs/wishes to http://bugs.kde.org
Last changelog:

7 years ago

- 0.4.3
Compatible with KDE SC < 4.7
Improved notifications
Minor bugfixes

- 0.4.2
More informative messages
Fixed wrong reassignment of Save and Save as actions
Fixed bug in upload dialog

- 0.4.1
Include translations in the release
Fixed a crash that could occur on startup
Bugfixes by Laurent Montel (mainly memory leaks)
Other bugfixes

- 0.4
New backend system (heavily inspired by Cantor)
New template system with GHNS (Get Hot New Stuff) support
Added Get Hot New Stuff support
Configurable keyboard shortcuts and toolbars
Much improved preview widget with variable zoom levels
Manuals and examples of each backend can be accessed in the main interface
Improved multi-threading -> Cirkuit generates the previews faster
Improved parsing of log files and error handling
Increased usage of K* instead of Q* classes for a better
Improved integration with the KDE environment
Redesigned configuration dialog
Other bug fixes / improvements

- 0.3.2
Switch from QProcess to KProcess
Download of remote data the KDE way with KIO
Fixed a bug when opening the Circuit Macros manual and examples

- 0.3.1.1
Integration with bugs.kde.org

- 0.3.1
Added possiblity to export to TeX source
Can export to GIF
Fixed a bug that caused wrong syntax highlighting detection in Kate
Correct escaping of mathematical expressions in Gnuplot
Fixed a bug that prevented the user to overwrite an exported file even when the user has confirmed that he wants to overwrite it
Fixed compilation issues
Improved localization
Various minor bugfixes


- 0.3
A lot of new features, pointing out just the most important ones
Multi-thread support
Full Gnuplot support (Lua terminal needed)
Support for different pic interpreters
Support for custom document templates
Improved handling of mime types
Improved error handling
Added more options in the settings

- 0.2.2
Fixed failed configuration of Circuit Macros

- 0.2.1
Experimental support for Gnuplot epslatex terminal
Fixed bug in generation of TikZ previews
Should be compatible with KDE 4.2

- 0.2
Improved text editor, now based on the Kate part
Support for syntax highlighting
Preview generated directly from PDF with LibPoppler
Reworked preview generation
Improved handling of error messages
Added TikZ support
Added CircuiTikz support

- 0.1.2
Faster preview generation
Export to SVG
Line number visualization
Fixed cutting of figures when exporting to EPS/PDF
Fixed CMakeLists.txt
Various bug fixes

- 0.1.1
Fixed a bug which prevented the generation of the preview
Improved auto-configuration of the macros

- 0.1
Initial version

gondsman

9 years ago

Hello!
The link to the source code is broken...

Report

C

matteo81

9 years ago

Fixed!

Report

larusa

9 years ago

Hey there!

Really nice app matteo81 :D

When building, a new dependency arose that was not commented here, may be you want to update the dependencies section:

-- PKGCONFIG() indicates that poppler-qt4 is not installed (install the package which contains poppler-qt4.pc if you want to support this feature)

CMake Error at cmake_modules/FindPoppler.cmake:95 (message):
Could NOT find Poppler-Qt4

Call Stack (most recent call first):
src/CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!

I had libpoppler-qt4-3 already installed but was not enough. dev package is needed. In Debian it's:

libpoppler-qt4-dev

Cheers

Report

C

matteo81

9 years ago

Yes, you are right. Since version 0.2 I've introduced an additional dependency on libpoppler to render the preview. I have added it to the dependencies in the description. Thanks!

Report

diazona

9 years ago

This seems like the kind of thing that might integrate well with [url=http://kile.sourceforge.net]Kile[/url] as a preview component. But it's a nifty standalone app as well, nicely done ;-)

For what it's worth, I see myself using it mostly as a TikZ editor, not specifically for circuits.

Report

C

matteo81

9 years ago

Thanks for the nice comment! I've already thought about integrating with Kile but I chose to write a standalone app for several reasons:

- sometimes I don't want to put the pictures in a LaTeX document so I don't need Kile in that case

- my application automatically downloads and configures the latest Circuit Macros package from the website. That's one of the main reasons why I wrote this app (initially there was no TikZ support).

- there already is a Kile integration of Circuit Macros project: http://staff.ee.sun.ac.za/pjrandewijk/wiki/index.php/M4_Circuit_Macros_-_Kile_Integration. It should be easy to write something similar for TikZ.

Report

diazona

9 years ago

OK, I see. What I really like about Cirkuit is the live preview, and I was thinking it would be nice to have that as a KPart that could be integrated into Kile or used in a standalone app... but now that I think about it, I suppose that would be more complicated than just writing a KPart. I guess I'd have to ask the Kile developers about it.

Anyway, again, nicely done. Cirkuit is already coming in handy for making TikZ figures for my blog posts.

Report

TJSomething

10 years ago

Circuit macros includes support for logic diagrams, but that doesn't work with Cirkuit. Could that be fixed?

Report

C

matteo81

10 years ago

Cirkuit already supports the logic library. You have to include the library with this command (after cct_init):
include(HOMELIB_`'liblog.m4)

Then you should be able to use all the logic elements.

Report

epsilom

10 years ago

Hi Matteo

I can't compile new version:

[ 38%] Building CXX object src/CMakeFiles/cirkuit.dir/main.o
[ 42%] Building CXX object src/CMakeFiles/cirkuit.dir/mainwindow.o
In file included from /home/xavier/ArchBuild/Cirkuit/src/cirkuit-0.2/src/mainwindow.cpp:27:
/home/xavier/ArchBuild/Cirkuit/src/cirkuit-0.2/build/src/ui_cirkuit_general_settings.h: In member function ‘void Ui_CirkuitGeneralForm::setupUi(QWidget*)’:
/home/xavier/ArchBuild/Cirkuit/src/cirkuit-0.2/build/src/ui_cirkuit_general_settings.h:55: error: ‘class KIntNumInput’ no tiene un miembro llamado ‘setSingleStep’
make[2]: *** [src/CMakeFiles/cirkuit.dir/mainwindow.o] Error 1
make[1]: *** [src/CMakeFiles/cirkuit.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: Falló la compilación.
Abortando...

any idea?

regards

Report

C

matteo81

10 years ago

Which version of KDE are you using? It looks like the function setSingleStep has been introduced in 4.3 so it will not work with previous versions.

I will switch to a QSpinBox if this is the case...

Report

epsilom

10 years ago

ok Matteo, I use kde 4.2, then cirkuit need kde 4.3 libraries.
thanks

Report

C

matteo81

10 years ago

You should now be able to build the latest version (0.2.1) also with KDE 4.2

Cheers,
Matteo

Report

jbaehr

10 years ago

Nice! Any chances to get support for PGF/TikZ, namely CircuiTikz?
http://home.dei.polimi.it/mredaelli/circuitikz/examples.html

It can be used directly with pdflatex; no M4, no enforced PS step and a much more readable syntax...

Report

C

matteo81

10 years ago

I will consider this for future versions. Thanks for the suggestion!

Report

jirityr

10 years ago

Just for the fun, I have tested all examples from this page:

http://www.ece.uwaterloo.ca/~aplevich/Circuit_macros/html/examples.html

and I have find out that the examples Globe.m4, Incleps.m4, lcct.m4 and recycle.m4 are not displayed.

Second problem is that if there is an index on the right hand side, it is partially cut off (see the PDF export of the example ex18.m4).

Then you could maybe add an option to show the line numbers in the editor.

Report

C

matteo81

10 years ago

Thanks for your comments. I will surely consider them for the next version.

I am also not able to build the examples you mentioned. I will look into this. And I will also fix the problem with the caption on the right side.

The possibility to export to SVG will be included in the next version.

Report

jirityr

10 years ago

What about an export to the SVG?

Report

jirityr

10 years ago

I have made an ebuild for Gentoo users:
http://bugs.gentoo.org/show_bug.cgi?id=275366

For the next release, could you add *.m4 filter into the open dialog?

Cheers,
Jiri

Report

C

matteo81

10 years ago

Actually in the latest version the open dialog should already have the correct behavior and filter *.cir and *.m4 files. Isn't it working for you? Or do you mean that you want a separate filter just for *.m4 files?

Report

jirityr

10 years ago

In my case, there is not filter at all.

Report

C

matteo81

10 years ago

Hmm maybe you are missing some dependencies. In Ubuntu/Kubuntu you need the 'shared-mime-info' package to make the filter work properly. Maybe you don't have this installed in your system. Or maybe the cirkuit.xml file is not copied in the right destination.

When you 'make install' do you get something like this?

Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/bin/dpic
-- Installing: /usr/bin/cirkuit
-- Set runtime path of "/usr/bin/cirkuit" to "/usr/lib"
-- Up-to-date: /usr/share/kde4/apps/cirkuit/cirkuitui.rc
-- Up-to-date: /usr/share/icons/hicolor/64x64/apps/./cirkuit.png
-- Up-to-date: /usr/share/icons/hicolor/32x32/apps/./cirkuit.png
-- Up-to-date: /usr/share/icons/hicolor/48x48/apps/./cirkuit.png
-- Up-to-date: /usr/share/icons/oxygen/scalable/mimetypes/application-x-cirkuit.svgz
-- Up-to-date: /usr/share/applications/kde4/cirkuit.desktop
-- Up-to-date: /usr/share/mime/packages/cirkuit.xml
Unknown media type in type 'all/all'

Report

C

matteo81

10 years ago

Hmm maybe you are missing some dependencies. In Ubuntu/Kubuntu you need the 'shared-mime-info' package to make the filter work properly. Maybe you don't have this installed in your system. Or maybe the cirkuit.xml file is not copied in the right destination.

When you 'make install' do you get something like this?

Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/bin/dpic
-- Installing: /usr/bin/cirkuit
-- Set runtime path of "/usr/bin/cirkuit" to "/usr/lib"
-- Up-to-date: /usr/share/kde4/apps/cirkuit/cirkuitui.rc
-- Up-to-date: /usr/share/icons/hicolor/64x64/apps/./cirkuit.png
-- Up-to-date: /usr/share/icons/hicolor/32x32/apps/./cirkuit.png
-- Up-to-date: /usr/share/icons/hicolor/48x48/apps/./cirkuit.png
-- Up-to-date: /usr/share/icons/oxygen/scalable/mimetypes/application-x-cirkuit.svgz
-- Up-to-date: /usr/share/applications/kde4/cirkuit.desktop
-- Up-to-date: /usr/share/mime/packages/cirkuit.xml
Unknown media type in type 'all/all'

Report

jirityr

10 years ago

I do have installed the shared-mime-info-0.60. The file cirkuit.xml is in the directory /usr/share/mime/packages/, as you have it as well. But there is still no filter at all in the application.

Report

C

matteo81

10 years ago

I will have a look at this. I hope I can find the problem.

Cheers,
Matteo

Report

7 years ago

- 0.4.3
Compatible with KDE SC < 4.7
Improved notifications
Minor bugfixes

- 0.4.2
More informative messages
Fixed wrong reassignment of Save and Save as actions
Fixed bug in upload dialog

- 0.4.1
Include translations in the release
Fixed a crash that could occur on startup
Bugfixes by Laurent Montel (mainly memory leaks)
Other bugfixes

- 0.4
New backend system (heavily inspired by Cantor)
New template system with GHNS (Get Hot New Stuff) support
Added Get Hot New Stuff support
Configurable keyboard shortcuts and toolbars
Much improved preview widget with variable zoom levels
Manuals and examples of each backend can be accessed in the main interface
Improved multi-threading -> Cirkuit generates the previews faster
Improved parsing of log files and error handling
Increased usage of K* instead of Q* classes for a better
Improved integration with the KDE environment
Redesigned configuration dialog
Other bug fixes / improvements

- 0.3.2
Switch from QProcess to KProcess
Download of remote data the KDE way with KIO
Fixed a bug when opening the Circuit Macros manual and examples

- 0.3.1.1
Integration with bugs.kde.org

- 0.3.1
Added possiblity to export to TeX source
Can export to GIF
Fixed a bug that caused wrong syntax highlighting detection in Kate
Correct escaping of mathematical expressions in Gnuplot
Fixed a bug that prevented the user to overwrite an exported file even when the user has confirmed that he wants to overwrite it
Fixed compilation issues
Improved localization
Various minor bugfixes


- 0.3
A lot of new features, pointing out just the most important ones
Multi-thread support
Full Gnuplot support (Lua terminal needed)
Support for different pic interpreters
Support for custom document templates
Improved handling of mime types
Improved error handling
Added more options in the settings

- 0.2.2
Fixed failed configuration of Circuit Macros

- 0.2.1
Experimental support for Gnuplot epslatex terminal
Fixed bug in generation of TikZ previews
Should be compatible with KDE 4.2

- 0.2
Improved text editor, now based on the Kate part
Support for syntax highlighting
Preview generated directly from PDF with LibPoppler
Reworked preview generation
Improved handling of error messages
Added TikZ support
Added CircuiTikz support

- 0.1.2
Faster preview generation
Export to SVG
Line number visualization
Fixed cutting of figures when exporting to EPS/PDF
Fixed CMakeLists.txt
Various bug fixes

- 0.1.1
Fixed a bug which prevented the generation of the preview
Improved auto-configuration of the macros

- 0.1
Initial version

12345678910
12
product-maker MoonBlossom Oct 15 2011 9 excellent
product-maker msledziona Aug 08 2011 9 excellent
product-maker dooder Feb 28 2011 9 excellent
product-maker integr8e Jan 02 2011 9 excellent
product-maker denisq Dec 31 2010 9 excellent
product-maker Genserowski Dec 19 2010 9 excellent
product-maker kinch27 Dec 02 2010 9 excellent
product-maker sefran Oct 11 2010 9 excellent
product-maker losty Oct 09 2010 9 excellent
product-maker bugmenot1234 Oct 08 2010 9 excellent
product-maker YAFU Oct 08 2010 9 excellent
product-maker jrepin Oct 08 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
jamesgreenlinux
Dec 08 2012
MoonBlossom
Oct 15 2011
bugmenot1234
Aug 08 2011
denisq
Dec 31 2010
ctown
Dec 12 2010
Genserowski
Oct 08 2010
ngrocott
Dec 09 2009
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.4.3
updated Dec 31 2011
added Jun 17 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 5
System Tags app software