用于快速开发的 GUI 工具包?
我想为用 C/C++ 编写的应用程序编写一个前端。
我使用 Solaris 10 并计划将应用程序移植到其他一些体系结构(首先是 Windows)。
I want to write a front-end to an application written in C/C++.
I use Solaris 10 and plan to port the application to some other architectures (Windows first).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
Ultimate++ 是一个 C++ 跨平台快速应用程序开发框架。 它专门针对快速开发。 Ultimate++ 网站提供了与提到的其他框架(例如 Qt 和 wxWidgets)的一些比较。
Ultimate++ is a cross platform rapid application development framework for C++. It is aimed specifically at rapid development. The Ultimate++ website provides some comparisons to other frameworks mentioned such as Qt and wxWidgets.
我使用 ASP.NET Web Forms 将 UI 前端制作为命令行集合用传统语言、RESTful-ish Web 服务和 bash 脚本编写的应用程序。
一旦它可以在 Firefox 上运行,它至少也应该可以在其他架构的 Firefox 上运行。 如果您还没有尝试过,您应该尝试一下 ASP.NET (ASP.NET MVC 似乎是当前的趋势)。 与 RAD 不太一样,但它确实为您提供了表单等的视觉设计。
I have used ASP.NET Web Forms to make UI front-end to collection of command line application written in legacy language, RESTful-ish web service, and bash scripts.
Once it works on Firefox, it should work at least on Firefox on other architecture. If you haven't played around with it, you should give ASP.NET a try (ASP.NET MVC seems to be the current trend). Not quite the same as RAD, but it does give you visual design of forms etc.
我自己使用 wxWidgets 。 它很好地利用了C++语言的特性,并使用了智能指针,因此对象和内存管理并不那么困难。 事实上,感觉就像用脚本语言编写一样。
加上对话框编辑器/代码生成器,如 wxFormBuilder 或 < a href="http://www.roebling.de/snap1.gif" rel="nofollow noreferrer">wxDesigner,(链接到屏幕截图)它成为快速开发的一个很好的工具包。
I use wxWidgets myself. It makes good use of the C++ language features and uses smart pointers, so object and memory management is not that hard. In fact, it feels like writing in a scripting language.
Coupled with a dialog editor/code generator like wxFormBuilder or wxDesigner, (links to screenshots) it becomes a good toolkit for rapid development.
查看支持 X11 和 Windows 的 FLTK。
Have a look at FLTK which supports X11 and Windows.
在 Mac 上,这很容易。 在 Objective C 中编程时,Cocoa API 非常有用(它可以很好地编译 C/C++ 文件)。
不然的话,情况就更严峻一些。 至于快速原型,您可能需要检查 CodeGear (Borland/C++ Builder) 工具。 我认为他们的 VCL 库是跨平台的。
否则,您可以与 Ruby 等脚本语言交互,并使用 Shoes 等出色的前端库。 Python 还与 wxWidgets 接口,使编写跨平台前端变得容易。 请记住,这一切都需要花费时间来确保您的 C/C++ 代码可以与脚本语言对话。 这并不是一件小事,所需的工作量取决于代码库的风格。 (天啊。)
最后,你可以只使用 wxWidgets 本身。 这可能是您最好的选择,因为与编写 UI 本身相比,它不需要额外的开销。 也就是说,C++ 并不是设计 UI 的最佳语言。
最后,考虑编写一个代码生成器,将 Shoes 转换为生成相同 Shoes 应用程序所需的任何 wxWidgets 代码。 这样你就可以进行更简单的 UI 设计,但最终仍然获得 C++ 代码。 同样,您可以从 Python/wxWidgets 代码中编写 gen 代码。 然后出售这样的代码生成器。 :-)
On a Mac, this would be easy. The Cocoa API is great when programming in Objective C (which compiles fine with C/C++ files).
Otherwise the situation is a bit more grim. As for Rapid prototype, you might want to check the CodeGear (Borland/C++ Builder) tools. I think their VCL library is cross-platform.
Otherwise, you could interface with a scripting language like Ruby and use fantastic front end libraries like Shoes. Python also interfaces with wxWidgets to make writing cross-platform front ends easy. Keep in mind that this all requires taking time to make sure your C/C++ code can talk to the scripting language. This is not trivial, and the amount of effort required depends upon the style of your code base. (Oh my God.)
Lastly, you could just use wxWidgets itself. This might be your best bet since it requires no additional overhead than coding the UI itself. That said, C++ is not the greatest language for designing UIs.
And super lastly, consider writing a code generator that converts from say Shoes to whatever wxWidgets code is needed to generate the same Shoes app. That way you can do easier UI design but still get C++ code in the end. Likewise, you could code gen off of the Python/wxWidgets code. Then sell such a code generator. :-)
GTK——和格莱德。
这就是 GTK 上的 C++ 绑定
GTK 将在 Windows 上运行(只要看看 GIMP )就可以
在任何地方运行,没有 QT 许可证来扰乱您的数百万美元收入。
GTK-- and Glade.
Thats' the C++ bindings on GTK
GTK will work on windows ( just look at GIMP )
Works everywhere, no QT license to mess with your millions-making.
我建议您查看 wxWidgets 以提供一些可在 Solaris 和 Windows 上运行的跨平台 UI 小部件。
I'd recommend taking a look at wxWidgets to provide some cross platform UI widgets that will work on Solaris and Windows.
Qt 4 是完成这项工作的最佳工具。 如果您想使用其他语言,它还具有 Java 和 Python 的绑定
Qt 4 is the best tool for this job. If you want to work with other languages, it also has bindings for Java and Python