Bug 61375

Summary: Add possibility to configure linebreak before opening brace in C++
Product: [Applications] umbrello Reporter: Unknown <null>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: CONFIRMED ---    
Severity: wishlist CC: okellogg
Priority: NOR    
Version: 1.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sean Farrell 2003-07-17 23:39:53 UTC
Version:           1.1 (using KDE KDE 3.1.3KDE 1.2)
Installed from:    Compiled From Sources0Compiled From Sources
OS:          Linux

It would be nice if the one could set if/or not umbrello code generation wizard makes a linebreak before open brakets, since many people use this style to write C++ code 
or using templets or so. (But nothing to hurry)

But in general, great job!
Comment 1 Stephan Kulow 2004-06-01 19:12:43 UTC
Replaced drfnbee@wanadoo.fr with null@kde.org due to bounces by reporter
Comment 2 Gavin C. Flower 2005-08-02 11:16:20 UTC
I would also use this in C and Java code.
Comment 3 Paulo Roberto Rodrigues Sehn 2005-08-02 16:01:43 UTC
I would like to suggest that we use some kind of code formater to be
applyed during code generation. Users could select their settings and
Umbrello will use this to generate code. I guess it'll be a more
complete solution for this kind of issue.

On 2 Aug 2005 09:16:21 -0000, Gavin C. Flower <GavinFlower@yahoo.com> wrote:
[bugs.kde.org quoted mail]
Comment 4 Gavin C. Flower 2005-08-03 02:31:08 UTC
public class Agent 
    extends Human
    implements Employee,
               Insured,
               CompanyRepresentative
{
    ...
    public getOpenJobs(Date pAfterDate )
        throws IOException,
               SQLException
    {
        ...
    }
    ...
}


I would options to control formatting to allow the above style:

A - align brackets on left hand side consistently

B - indent extends

C - indent implements

D - indent subsequent interfaces in line with first one

E - indent throws

F - indent subsequent exceptions in line with first one

G - force if/else blocks to be enclosed in brackets

H - add blank line between methods 
    (excluding the one before the closing bracket of the class)

I - add prefix to generated parameters (eg pAfterDate)