1 /* 2 * Copyright 2006, 2013 Stephan Aßmus <superstippi@gmx.de> 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef SUPPORT_H 7 #define SUPPORT_H 8 9 #include <Rect.h> 10 11 12 class BMessage; 13 class BResources; 14 class BView; 15 class BWindow; 16 17 18 status_t load_settings(BMessage* message, const char* fileName, 19 const char* folder = NULL); 20 21 status_t save_settings(const BMessage* message, const char* fileName, 22 const char* folder = NULL); 23 24 bool make_sure_frame_is_on_screen(BRect& frame, float borderWidth = 5.0f, 25 float tabHeight = 20.0f, BWindow* window = NULL); 26 27 status_t get_app_resources(BResources& resources); 28 29 void set_small_font(BView* view); 30 31 #endif // SUPPORT_H 32