Reorganized includes.

svn path=/trunk/netsurf/; revision=11567
This commit is contained in:
Sven Weidauer 2011-01-31 19:12:00 +00:00
parent 09400943aa
commit 28da79c796
23 changed files with 71 additions and 76 deletions

View File

@ -18,7 +18,7 @@
#import <Cocoa/Cocoa.h>
#import "ScrollableView.h"
#import "cocoa/ScrollableView.h"
@class HistoryView;
@interface BrowserView : ScrollableView {

View File

@ -16,8 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "BrowserView.h"
#import "HistoryView.h"
#import "cocoa/BrowserView.h"
#import "cocoa/HistoryView.h"
#import "cocoa/font.h"
#import "cocoa/plotter.h"
#import "desktop/browser.h"
#import "desktop/history_core.h"
@ -26,9 +28,6 @@
#import "desktop/options.h"
#import "desktop/selection.h"
#import "cocoa/font.h"
#import "cocoa/plotter.h"
@interface BrowserView ()
- (void) scrollHorizontal: (CGFloat) amount;

View File

@ -17,9 +17,9 @@
*/
#import "BrowserViewController.h"
#import "BrowserView.h"
#import "BrowserWindowController.h"
#import "cocoa/BrowserViewController.h"
#import "cocoa/BrowserView.h"
#import "cocoa/BrowserWindowController.h"
#import "desktop/browser.h"
#import "desktop/history_core.h"

View File

@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "BrowserWindowController.h"
#import "cocoa/BrowserWindowController.h"
#import "BrowserViewController.h"
#import "PSMTabBarControl.h"
#import "PSMRolloverButton.h"
#import "URLFieldCell.h"
#import "cocoa/BrowserViewController.h"
#import "cocoa/PSMTabBarControl/PSMTabBarControl.h"
#import "cocoa/PSMTabBarControl/PSMRolloverButton.h"
#import "cocoa/URLFieldCell.h"
#import "cocoa/gui.h"
#import "cocoa/NetsurfApp.h"

View File

@ -16,11 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "DownloadWindowController.h"
#import "cocoa/DownloadWindowController.h"
#import "cocoa/gui.h"
#import "desktop/download.h"
#import "desktop/gui.h"
#import "cocoa/gui.h"
@interface DownloadWindowController ()

View File

@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "FormSelectMenu.h"
#import "cocoa/FormSelectMenu.h"
#import "cocoa/coordinates.h"
#import "render/form.h"
#import "cocoa/coordinates.h"
@interface FormSelectMenu ()

View File

@ -16,14 +16,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "HistoryView.h"
#import "cocoa/HistoryView.h"
#import "cocoa/font.h"
#import "cocoa/coordinates.h"
#import "cocoa/plotter.h"
#import "desktop/browser.h"
#import "desktop/history_core.h"
#import "desktop/plotters.h"
#import "cocoa/font.h"
#import "cocoa/coordinates.h"
#import "cocoa/plotter.h"
static NSRect cocoa_history_rect( struct browser_window *bw )
{

View File

@ -29,7 +29,6 @@
CFLAGS += -I/usr/X11/include
CFLAGS += -I/usr/include/libxml2
CFLAGS += -Icocoa/PSMTabBarControl
CFLAGS += -include cocoa/Prefix.pch
ifneq ($(wildcard /opt/local*),)

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "NetSurfAppDelegate.h"
#import "cocoa/NetSurfAppDelegate.h"
#import "cocoa/SearchWindowController.h"
#import "cocoa/PreferencesWindowController.h"

View File

@ -16,29 +16,28 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "NetsurfApp.h"
#import "cocoa/NetsurfApp.h"
#import "cocoa/gui.h"
#import "cocoa/plotter.h"
#import "desktop/gui.h"
#include "content/urldb.h"
#include "content/fetch.h"
#include "css/utils.h"
#include "desktop/gui.h"
#include "desktop/history_core.h"
#include "desktop/mouse.h"
#include "desktop/netsurf.h"
#include "desktop/options.h"
#include "desktop/plotters.h"
#include "desktop/save_complete.h"
#include "desktop/selection.h"
#include "desktop/textinput.h"
#include "render/html.h"
#include "utils/url.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/utils.h"
#import "content/urldb.h"
#import "content/fetch.h"
#import "css/utils.h"
#import "desktop/gui.h"
#import "desktop/history_core.h"
#import "desktop/mouse.h"
#import "desktop/netsurf.h"
#import "desktop/options.h"
#import "desktop/plotters.h"
#import "desktop/save_complete.h"
#import "desktop/selection.h"
#import "desktop/textinput.h"
#import "render/html.h"
#import "utils/url.h"
#import "utils/log.h"
#import "utils/messages.h"
#import "utils/utils.h"
#import "css/utils.h"
#ifndef NETSURF_HOMEPAGE

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "ScrollableView.h"
#import "cocoa/ScrollableView.h"
@interface ScrollableView ()

View File

@ -18,7 +18,7 @@
#import <Cocoa/Cocoa.h>
#import "ScrollableView.h"
#import "cocoa/ScrollableView.h"
@interface TreeView : ScrollableView {
struct tree *treeHandle;

View File

@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "TreeView.h"
#import "cocoa/TreeView.h"
#import "cocoa/coordinates.h"
#import "desktop/tree.h"
#import "desktop/plotters.h"
#import "desktop/history_global_core.h"
#import "cocoa/coordinates.h"
@implementation TreeView

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "URLFieldCell.h"
#import "cocoa/URLFieldCell.h"
@interface URLFieldCell ()

View File

@ -18,9 +18,10 @@
#import <Cocoa/Cocoa.h>
#import "image/bitmap.h"
#import "cocoa/bitmap.h"
#import "image/bitmap.h"
#define BITS_PER_SAMPLE (8)
#define SAMPLES_PER_PIXEL (4)
#define BITS_PER_PIXEL (BITS_PER_SAMPLE * SAMPLES_PER_PIXEL)

View File

@ -19,6 +19,8 @@
#ifndef COCOA_FONT_H
#define COCOA_FONT_H
#import "desktop/plot_style.h"
void cocoa_draw_string( CGFloat x, CGFloat y, const char *bytes, size_t length, const plot_font_style_t *style );
void cocoa_set_font_scale_factor( float newFactor );

View File

@ -18,17 +18,14 @@
#import <Cocoa/Cocoa.h>
#include <inttypes.h>
#include <assert.h>
#include "css/css.h"
#include "render/font.h"
#include "desktop/options.h"
#import "font.h"
#import "plotter.h"
#import "cocoa/plotter.h"
#import "cocoa/font.h"
#import "css/css.h"
#import "desktop/options.h"
#import "render/font.h"
#import "desktop/plotters.h"
static NSLayoutManager *cocoa_prepare_layout_manager( const char *string, size_t length,
const plot_font_style_t *style );

View File

@ -20,11 +20,10 @@
#import "cocoa/gui.h"
#import "cocoa/plotter.h"
#import "BrowserView.h"
#import "BrowserViewController.h"
#import "BrowserWindowController.h"
#import "FormSelectMenu.h"
#import "cocoa/BrowserView.h"
#import "cocoa/BrowserViewController.h"
#import "cocoa/BrowserWindowController.h"
#import "cocoa/FormSelectMenu.h"
#import "desktop/gui.h"
#import "desktop/netsurf.h"

View File

@ -18,13 +18,13 @@
#include <Cocoa/Cocoa.h>
#include "desktop/plotters.h"
#import "desktop/plot_style.h"
#import "utils/log.h"
#import "cocoa/font.h"
#import "cocoa/plotter.h"
#import "cocoa/bitmap.h"
#import "desktop/plotters.h"
#import "desktop/plot_style.h"
#import "utils/log.h"
#import "css/utils.h"
static void cocoa_plot_render_path(NSBezierPath *path,const plot_style_t *pstyle);

View File

@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "desktop/browser.h"
#import <Cocoa/Cocoa.h>
#import "desktop/browser.h"
@interface ScheduledCallback : NSObject {
void (*callback)( void *userData );
void *userData;

View File

@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import <Cocoa/Cocoa.h>
#import "desktop/browser.h"
#import "desktop/plotters.h"
#import "content/urldb.h"
#import "image/bitmap.h"
#import <Cocoa/Cocoa.h>
/* In platform specific thumbnail.c. */
bool thumbnail_create(struct hlcache_handle *content, struct bitmap *bitmap,
const char *url)

View File

@ -16,12 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import <stdbool.h>
#import <stdlib.h>
#import "utils/url.h"
#import <Cocoa/Cocoa.h>
#import "utils/url.h"
char *url_to_path(const char *url)
{

View File

@ -17,6 +17,7 @@
*/
#import <Cocoa/Cocoa.h>
#import "utils/utils.h"
#import "desktop/tree_url_node.h"