[scite] Javascript properties file

2007-08-20 Thread CieNTi
Hi all .. where can i find the javascript.properties file ? Or where can i 
modify the apperance of my js files ?

Thanks in advance, CieNTi___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest


Re: [scite] How would you suggest I distribute my Scite Extension?

2007-08-20 Thread Robert Roessler

Hans Joseph Solbrig wrote:

I have written scite extension (for win32 only for
now) that I would like to distribute. Because of the
way extensions work, some scite files need to be
modified to build the thing. 


So, should I just distribute the whole scite code
along with my changes or does anyone care?


A clue as what your extension is/does might help... ;)

For objects like new Scintilla lexers or Lua scripts, there are already 
numerous examples for integration/distribution (for example).


Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest


Re: [scite] Javascript properties file

2007-08-20 Thread Robert Roessler

CieNTi wrote:
Hi all .. where can i find the javascript.properties file ? Or where can 
i modify the apperance of my js files ?


JavaScript support is in the cpp.properties file (look for .js).

For JavaScript in HTML files, see the html.properties file.

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest


Re: [scite] Javascript properties file

2007-08-20 Thread CieNTi

Thanks a lot :D

- Original Message - 
From: Robert Roessler [EMAIL PROTECTED]

To: Discussion of the SciTE editor scite-interest@lyra.org
Sent: Monday, August 20, 2007 10:56 AM
Subject: Re: [scite] Javascript properties file



CieNTi wrote:
Hi all .. where can i find the javascript.properties file ? Or where can 
i modify the apperance of my js files ?


JavaScript support is in the cpp.properties file (look for .js).

For JavaScript in HTML files, see the html.properties file.

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest 




__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest


Re: [scite] [PATCH] SciTE 1.74 GTK+: layout based on native GtkPaned widget

2007-08-20 Thread Stanislav Maslovski
Hello,

A new version of the patch is ready.
  - focus issues fixed.
  - problem with cursors solved.

Please check.

-- 
Stanislav


On Sun, Aug 19, 2007 at 12:15:23PM +1000, Neil Hodgson wrote:
Hi Stanislav,
 
- cursorLast and the related code was removed because it did not work
  with dynamically destroyed/created windows. This removal should
  not affect the win32 code.
 
There are several other platforms (OS/X, wxWidgets, QT, ...) so
 published APIs like this should not change. It would also be better to
 get this code working on GTK+ to avoid unnecessary calls to
 gdk_window_set_cursor. This may now be optimized but I think there was
 flickering on old versions of GTK+.
 
There are new focus issues when switching between horizontal and
 vertical layouts. The focus seems to go nowhere so typing has no
 effect.
diff -urN scite-1.74-orig/scintilla/gtk/PlatGTK.cxx scite-1.74/scintilla/gtk/PlatGTK.cxx
--- scite-1.74-orig/scintilla/gtk/PlatGTK.cxx	2007-06-15 15:24:38.0 +0400
+++ scite-1.74/scintilla/gtk/PlatGTK.cxx	2007-08-20 19:21:05.0 +0400
@@ -1841,6 +1841,8 @@
 	cursorLast = curs;
 	GdkCursor *gdkCurs;
 	switch (curs) {
+	case cursorInvalid:
+		return;
 	case cursorText:
 		gdkCurs = gdk_cursor_new(GDK_XTERM);
 		break;
diff -urN scite-1.74-orig/scintilla/gtk/ScintillaGTK.cxx scite-1.74/scintilla/gtk/ScintillaGTK.cxx
--- scite-1.74-orig/scintilla/gtk/ScintillaGTK.cxx	2007-06-12 07:55:11.0 +0400
+++ scite-1.74/scintilla/gtk/ScintillaGTK.cxx	2007-08-20 19:21:45.0 +0400
@@ -568,6 +568,9 @@
 	gtk_widget_unmap(PWidget(wText));
 	gtk_widget_unmap(PWidget(scrollbarh));
 	gtk_widget_unmap(PWidget(scrollbarv));
+	wText.SetCursor(Window::cursorInvalid);
+	scrollbarv.SetCursor(Window::cursorInvalid);
+	scrollbarh.SetCursor(Window::cursorInvalid);
 }
 
 void ScintillaGTK::UnMap(GtkWidget *widget) {
diff -urN scite-1.74-orig/scite/gtk/SciTEGTK.cxx scite-1.74/scite/gtk/SciTEGTK.cxx
--- scite-1.74-orig/scite/gtk/SciTEGTK.cxx	2007-06-13 18:09:09.0 +0400
+++ scite-1.74/scite/gtk/SciTEGTK.cxx	2007-08-20 17:55:32.0 +0400
@@ -307,11 +307,9 @@
 
 protected:
 
-	Window wDivider;
+	GtkWidget *splitPane;
 	Point ptOld;
 	GdkGC *xor_gc;
-	bool focusEditor;
-	bool focusOutput;
 
 	guint sbContextID;
 	Window wToolBarBox;
@@ -497,11 +495,6 @@
 	static gint MousePress(GtkWidget *widget, GdkEventButton *event, SciTEGTK *scitew);
 	gint Mouse(GdkEventButton *event);
 
-	void DividerXOR(Point pt);
-	static gint DividerExpose(GtkWidget *widget, GdkEventExpose *ose, SciTEGTK *scitew);
-	static gint DividerMotion(GtkWidget *widget, GdkEventMotion *event, SciTEGTK *scitew);
-	static gint DividerPress(GtkWidget *widget, GdkEventButton *event, SciTEGTK *scitew);
-	static gint DividerRelease(GtkWidget *widget, GdkEventButton *event, SciTEGTK *scitew);
 	static void DragDataReceived(GtkWidget *widget, GdkDragContext *context,
 	 gint x, gint y, GtkSelectionData *selection_data, guint info, guint time, SciTEGTK *scitew);
 
@@ -538,6 +531,7 @@
 	  int startID = 0, const char *radioStart = 0);
 	void CreateMenu();
 	void CreateUI();
+	void LayoutUI();
 	void Run(int argc, char *argv[]);
 	void ProcessExecute();
 	virtual void Execute();
@@ -595,6 +589,8 @@
 	btnBuild = 0;
 	btnStop = 0;
 	itemFactory = 0;
+	splitPane = 0;
+	heightBar = 0;
 
 	fileSelectorWidth = 580;
 	fileSelectorHeight = 480;
@@ -835,6 +831,13 @@
 		SizeSubWindows();
 		CheckMenus();
 		break;
+	// override base class
+	case IDM_SPLITVERTICAL:
+		splitVertical = !splitVertical;
+		heightBar = 0;
+		LayoutUI();
+		CheckMenus();
+		break;
 
 	default:
 		SciTEBase::MenuCommand(cmdID, menuSource);
@@ -888,30 +891,45 @@
 }
 
 void SciTEGTK::SizeContentWindows() {
-	PRectangle rcClient = GetClientRectangle();
-#if GTK_MAJOR_VERSION  2
-	int left = 0;
-	int top = 0;
-#else
-	int left = rcClient.left;
-	int top = rcClient.top;
-#endif
-	int w = rcClient.right - rcClient.left;
-	int h = rcClient.bottom - rcClient.top;
-	heightOutput = NormaliseSplit(heightOutput);
+//	printf(SizeContentWindows: heightOutput = %d, prevHeightOutput = %d, heightBar = %d\n,
+//			heightOutput, previousHeightOutput, heightBar);
+	// we come here when receiving resizing signals
+	int height, bar;
 	if (splitVertical) {
-		wEditor.SetPosition(PRectangle(left, top, w - heightOutput - heightBar + left, h + top));
-		wDivider.SetPosition(PRectangle(w - heightOutput - heightBar + left, top, w - heightOutput + left, h + top));
-		wOutput.SetPosition(PRectangle(w - heightOutput + left, top, w + left, h + top));
+		height = PWidget(wOutput)-allocation.width;
+		bar = splitPane-allocation.width - PWidget(wEditor)-allocation.width - height;
 	} else {
-		wEditor.SetPosition(PRectangle(left, top, w + left, h - heightOutput - heightBar + top));
-		wDivider.SetPosition(PRectangle(left, h - heightOutput - heightBar + top, w + left, h - heightOutput + top));
-		wOutput.SetPosition(PRectangle(left, h - 

Re: [scite] [PATCH] SciTE 1.74 GTK+: layout based on native GtkPaned widget

2007-08-20 Thread Stanislav Maslovski
On Mon, Aug 20, 2007 at 07:48:32PM +0400, Stanislav Maslovski wrote:
 Hello,
 
 A new version of the patch is ready.
   - focus issues fixed.

Oops, not all of them. When the output window is opened to
the maximum width the focus goes nowhere...

-- 
Stanislav
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest


[scite] javascript.api good file ?

2007-08-20 Thread CieNTi
Im looking for a nice javascript.api file .. i have one, but none of the 
functions have descriptions, and is a nice help to program. Someone have or 
knows where to get it?

Thanks in advance___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest


Re: [scite] for your consideration, a patch to OpenSelected()

2007-08-20 Thread Neil Hodgson
April White:

 I am unsure whether to change SciTE.rc:
 MENUITEM Open Selected Filename\tCtrl+Shift+O,IDM_OPENSELECTED
 to
 MENUITEM Open Selected Filename or Folder\tCtrl+Shift+O,
 IDM_OPENSELECTED

   Its not really opening a folder: IIRC EMACS has sort of
directory-editing mode and I wouldn't want this command to be confused
with something like that.

 BTW I noticed that scite/scripts/commandsdoc.py has this line:
 !--Generated by scite/scripts/scommandsdoc.py --
 notice the 's' preceding commandsdoc.py

   Fixed now.

   Neil
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest


Re: [scite] [PATCH] SciTE 1.74 GTK+: layout based on native GtkPaned widget

2007-08-20 Thread Neil Hodgson
Stanislav Maslovski:

   - problem with cursors solved.

   Using cursorInvalid in this way is good.

- focus issues fixed.

 Oops, not all of them. When the output window is opened to
 the maximum width the focus goes nowhere...

   Its OK to be a bit heavy-handed, forcing the focus into a visible
window even if it doesn't seem to be currently associated with an
editing pane. That's better than any situation where typing goes
nowhere.

  Neil
___
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest