More indentation!

See https://sourceforge.net/p/tuxpaint/mailman/message/36077409/
This commit is contained in:
Bill Kendrick 2019-04-13 12:23:47 -07:00
parent cb8c885433
commit a4d213178d
4 changed files with 1804 additions and 1797 deletions

1
osk/.indent.pro vendored Symbolic link
View file

@ -0,0 +1 @@
../src/.indent.pro

View file

@ -39,11 +39,11 @@
class PrintView:public BView class PrintView:public BView
{ {
public: public:
PrintView( BBitmap *bitmap) PrintView(BBitmap * bitmap):BView(bitmap->Bounds(), "TuxPaint Print", B_FOLLOW_NONE, B_WILL_DRAW)
: BView( bitmap->Bounds(), "TuxPaint Print", B_FOLLOW_NONE, B_WILL_DRAW)
{ {
b = bitmap; b = bitmap;
}; };
~PrintView() ~PrintView()
{ {
delete b; delete b;
@ -110,6 +110,7 @@ int IsPrinterAvailable( void )
DIR *d; DIR *d;
struct dirent *f = NULL; struct dirent *f = NULL;
int num_files = 0; int num_files = 0;
d = opendir("/boot/home/config/settings/printers"); d = opendir("/boot/home/config/settings/printers");
if (d != NULL) if (d != NULL)
{ {
@ -125,12 +126,16 @@ int IsPrinterAvailable( void )
int SurfacePrint(SDL_Surface * surf) int SurfacePrint(SDL_Surface * surf)
{ {
BWindow *window = new BWindow( BRect( 0, 0, surf->w, surf->h), "TuxPaint Print", B_NO_BORDER_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL, B_NOT_MOVABLE | B_NOT_CLOSABLE | B_NOT_ZOOMABLE | B_NOT_RESIZABLE | B_AVOID_FRONT | B_AVOID_FOCUS); BWindow *window =
new BWindow(BRect(0, 0, surf->w, surf->h), "TuxPaint Print", B_NO_BORDER_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL,
B_NOT_MOVABLE | B_NOT_CLOSABLE | B_NOT_ZOOMABLE | B_NOT_RESIZABLE | B_AVOID_FRONT | B_AVOID_FOCUS);
PrintView *view = new PrintView(SurfaceToBBitmap(surf)); PrintView *view = new PrintView(SurfaceToBBitmap(surf));
window->AddChild(view); window->AddChild(view);
window->Run(); window->Run();
BPrintJob job("TuxPaint"); BPrintJob job("TuxPaint");
if (job.ConfigPage() == B_OK) if (job.ConfigPage() == B_OK)
{ {
if (job.ConfigJob() == B_OK) if (job.ConfigJob() == B_OK)

1
win32/.indent.pro vendored Symbolic link
View file

@ -0,0 +1 @@
../src/.indent.pro