VirtualBox

Changeset 26352 in vbox


Ignore:
Timestamp:
Feb 9, 2010 10:14:49 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57441
Message:

doc: updated coding style rules for the GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/VBox-CodingGuidelines.cpp

    r25113 r26352  
    2323 *
    2424 * The VBox Coding guidelines are followed by all of VBox with the exception of
    25  * the GUI and qemu. The GUI is using something close to the Qt style. Qemu is
    26  * using whatever the frenchman does.
     25 * qemu. Qemu is using whatever the frenchman does.
    2726 *
    2827 * There are a few compulsory rules and a bunch of optional ones. The following
     
    237236 *
    238237 *
     238 * @subsection sec_vbox_guideline_compulsory_cppqtgui   C++ guidelines for the Qt GUI
     239 *
     240 * The Qt GUI is currently (2010) on its way to become more compatible to the
     241 * rest of VirtualBox coding style wise. From now on, all the coding style
     242 * rules described in this file are also mandatory for the Qt GUI. Additionally
     243 * the following rules should be respected:
     244 *
     245 * - GUI classes which correspond to GUI tasks should be prefixed by UI (no VBox anymore)
     246 *
     247 * - Classes which extents some of the Qt classes should be prefix by QI
     248 *
     249 * - General task classes should be prefixed by C
     250 *
     251 * - Slots are prefixed by slt -> sltName
     252 *
     253 * - Signals are prefixed by sig -> sigName
     254 *
     255 * - Use Qt classes for lists, strings and so on, the use of STL classes should
     256 *   be avoided
     257 *
     258 * - All files like .cpp, .h, .ui, which belong together are located in the
     259 *   same directory and named the same
     260 *
    239261 *
    240262 * @section sec_vbox_guideline_optional         Optional
     
    376398 *      - The 'usz' prefix means zero terminated Unicode string (array of RTUNICP).
    377399 *
    378  *      - The 'str' prefix means C++ string; either a std::string or, in Main, a Utf8Str.
     400 *      - The 'str' prefix means C++ string; either a std::string or, in Main,
     401 *        a Utf8Str or, in Qt, a QString
    379402 *
    380403 *      - The 'bstr' prefix, in Main, means a UTF-16 Bstr.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette