开发者

I want to implement one small software. need suggestion

开发者 https://www.devze.com 2023-01-25 16:56 出处:网络
The software\'s algorithms are all written in C.(gcc compiler). And I need some beautiful and friendly UI for this small software...But I have no idea what language and what library and what tool I sh

The software's algorithms are all written in C.(gcc compiler). And I need some beautiful and friendly UI for this small software...But I have no idea what language and what library and what tool I should use. I need some idea from you guys. than开发者_StackOverflowks indeed! If you can say it more specific, I will thank you more!


It would be better if you are more specific with your question and give more details about your software. Because designing a UI interface depends on a lot of factors.

I am listing some below for your reference:

  1. On what system are people going to use it? (Windows, Linux etc)
  2. Users are novice users or advanced users (You can decide on a CLI for advanced users and more detailed colourful GUI for novice users who need a lot of help)
  3. Do you have any specific requirements like the GUI should be light weight?

So, please determine the requirements first before deciding what language and what library you must use.

For starters, you can look at ncurses library in linux, MFC in Windows. I don't know much about Java, someone else must be able to help you on that.

All the best for your work!


Commonly used libraries for GUIs:

  • Tk which was written in Tcl and has bindings for Python, Perl, Ruby, Lisp and a few others
  • GTK, which is written in C (so you could write your GUI in C) and has bindings for most languages under the sun
  • Qt, which is written in C++ and also has a number of bindings

These are the "big three" for cross-platform toolkits (I know some will disagree). They have their advantages and disadvantages: Tk looks good on some platforms but not others, and there aren't too many bindings for it, GTK looks great on Gnome desktops but so-so elsewhere, and Qt looks good in KDE but okay elsewhere.

You have to ask yourself a few questions: what platform will you be deploying to? What kind of functionality do you need? What languages are you most comfortable writing the interface with?

I'd recommend that whatever language you choose, choose a scripting language of some sort. It's far easier to create interfaces using scripting languages IMO (though Qt makes C++ interface design fairly painless). I'd also recommend you pick a language that will be available on your platform with as few dependencies as possible (so for Linux, Python or Perl would be a good choice).

0

精彩评论

暂无评论...
验证码 换一张
取 消