PDA

View Full Version : Create a skin for Command Prompt


Jh_
28th October 2006, 19:39
Hello,

I'm actually wondering if there is a similar application as Command Prompt (cmd.exe in Windows), but with some cooler (graphical) style?

Something like this:
http://www.home.no/f00b/bilder/CMD.gif

Anyway, is this possible to make this with QT Designer? I was thinking of something like making a skin for Command Prompt, then e.g. write myskin.exe xcopy C:\test C:\ in cmd to call the commands in my own skin (or window if you like).

jacek
28th October 2006, 19:58
Anyway, is this possible to make this with QT Designer?
Qt Designer is just a designer, you can't code in it, but should be doable with Qt (you'll need QProcess to communicate with cmd.exe).

Jh_
29th October 2006, 01:31
Qt Designer is just a designer, you can't code in it, but should be doable with Qt (you'll need QProcess to communicate with cmd.exe).I see, havent really used QT Designer myself. I'm just considering if it's worth paying someone to create this, if it doesnt already exists :) (What do you think?)
But I'm just curious, do you think you would have had to re-create the standard cmd.exe itself, and then implement it with your GUI? Or would it be possible to implement the standard cmd.exe with your own GUI some way?

Thanks for the answere by the way :)

wysota
29th October 2006, 01:46
But I'm just curious, do you think you would have had to re-create the standard cmd.exe itself, and then implement it with your GUI? Or would it be possible to implement the standard cmd.exe with your own GUI some way?

You would spawn and attach to cmd.exe instance from within your gui application and "talk" to it (send it some commands and fetch output from it).

Jh_
29th October 2006, 01:54
You would spawn and attach to cmd.exe instance from within your gui application and "talk" to it (send it some commands and fetch output from it).Ah, it shouln't be so hard then :) (Am I right? :rolleyes: )

wysota
29th October 2006, 02:09
No, it shouldn't. Of course it depends what you intend to do with it.

VireX
19th March 2007, 02:04
Yes, I know old thread, but as further input, you can include <stdio.h> and <stdlib.h> and use the system() command which is basically what cmd.exe does. Design a command prompt with designer, and then connect your chat box to the system command. Then print the results by connecting to the console window.

It's quite difficult, I would think, unless you do what these guys are saying and use like a communication protocol through windows with cmd.exe.

However, my question is how do we make stylesheets or whatever, to skin a program?
I hope I won't have to edit every control with like QPainter or something. I been looking at the Style and StyleSheet tutorial, but since they don't explain what things like .qss .qrc do, I cannot tell how to do it. Is there a simpler example?

wysota
19th March 2007, 10:37
If your question is different then why do you ask it in this thread?

VireX
19th March 2007, 16:43
Because, obviously I am asking about skinning, which is the TOPIC of this thread, so instead of wasting space and making a completely new thread; I chose to write it in the same thread where if someone had found it, they would find the answer to this question also and it would help many people out. Anyway, regardless, I already figured out the answer in the docs...

jacek
19th March 2007, 23:45
Because, obviously I am asking about skinning, which is the TOPIC of this thread, so instead of wasting space and making a completely new thread; I chose to write it in the same thread where if someone had found it, they would find the answer to this question also and it would help many people out. Anyway, regardless, I already figured out the answer in the docs...
Actually this thread is about creating a GUI for a cmd.exe. IMO "wrapper" would be a more appropriate word than "skin", but certainly it doesn't have anything to do with skins and stylesheets.

We believe that it is better to have a single thread for each problem, than mixing several loosely connected problems in one thread, so unless you have exactly the same problem, please, post it in a new thread (you can always add a link to original thread: "I have a simmilar problem that was discussed in this thread (http://www.qtcentre.org/forum/f-qt-programming-2/t-create-a-skin-for-command-prompt-4212-post31995.html#post31995), but what I'm trying to do is...").

VireX
20th March 2007, 03:03
Considering that this is the ONLY SINGLE topic that comes up when searching for skinning... and it had it in the title, and if someone didn't know about stylesheets or styles that I recently learned about, they would say this is the only thread directly connected with stylesheets.

Next time, I will post a new thread, you guys don't have to be so pissed off about it.

wysota
20th March 2007, 10:37
We're not pissed off. We just want to keep it clean here and we want you to understand why. Under other circumstances we'd probably split the thread and don't even bother you, but we can't do it without changing the contents of your post (otherwise the post won't make sense).