Project directory structure
mardy at users.sourceforge.net
Wed Apr 3 02:35:36 PDT 2013
On 04/03/2013 12:58 AM, Dirk Hohndel wrote:
>> But if you prefer, the project could standardise on underscores for all
>> function names, even in C++.
> I think that would be my STRONG preference.
I would advise against that, at least for class members: because of
inheritance, our MainWindow class would inherit member functions defined
by QWidget and QMainWindow (supposing that we inherit from QMainWindow)
such as setWindowTitle().
Given how tight this UI code would be to Qt, I'd suggest that we keep
the naming of classes and members consistent with Qt (just the naming --
the indentation style can be our own).
In any case, I'd like to propose that C code never calls UI code; we
could make the C parts behave as if it was a library, which we use from Qt.
http://blog.mardy.it <- geek in un lingua international!
More information about the subsurface