|
@@ -36,12 +36,13 @@ Class MainWindowInstance Extends Window
|
|
_recentFilesMenu=New Menu( "Recent files..." )
|
|
_recentFilesMenu=New Menu( "Recent files..." )
|
|
_closeProjectMenu=New Menu( "Close project..." )
|
|
_closeProjectMenu=New Menu( "Close project..." )
|
|
|
|
|
|
- _docsManager=New DocumentManager( _docsTabView )
|
|
|
|
|
|
+ _docBrowser=New DockingView
|
|
|
|
+
|
|
|
|
+ _docsManager=New DocumentManager( _docsTabView,_docBrowser )
|
|
|
|
|
|
_docsManager.CurrentDocumentChanged+=UpdateKeyView
|
|
_docsManager.CurrentDocumentChanged+=UpdateKeyView
|
|
|
|
|
|
App.FileDropped+=Lambda( path:String )
|
|
App.FileDropped+=Lambda( path:String )
|
|
- Print "Dropped:"+path
|
|
|
|
_docsManager.OpenDocument( path,True )
|
|
_docsManager.OpenDocument( path,True )
|
|
End
|
|
End
|
|
|
|
|
|
@@ -107,7 +108,7 @@ Class MainWindowInstance Extends Window
|
|
For Local f:=Eachin LoadDir( p )
|
|
For Local f:=Eachin LoadDir( p )
|
|
Local src:=stringio.LoadString( p+f )
|
|
Local src:=stringio.LoadString( p+f )
|
|
_newFiles.AddAction( StripExt( f.Replace( "_"," " ) ) ).Triggered=Lambda()
|
|
_newFiles.AddAction( StripExt( f.Replace( "_"," " ) ) ).Triggered=Lambda()
|
|
- Local path:=AllocTmpPath( ExtractExt( f ) )
|
|
|
|
|
|
+ Local path:=AllocTmpPath( "untitled",ExtractExt( f ) )
|
|
If Not path Return
|
|
If Not path Return
|
|
SaveString( src,path )
|
|
SaveString( src,path )
|
|
Local doc:=_docsManager.OpenDocument( path,True )
|
|
Local doc:=_docsManager.OpenDocument( path,True )
|
|
@@ -216,6 +217,7 @@ Class MainWindowInstance Extends Window
|
|
_menuBar.AddMenu( _helpMenu )
|
|
_menuBar.AddMenu( _helpMenu )
|
|
|
|
|
|
_browsersTabView.AddTab( "Files",_projectView,True )
|
|
_browsersTabView.AddTab( "Files",_projectView,True )
|
|
|
|
+ _browsersTabView.AddTab( "Source",_docBrowser,False )
|
|
_browsersTabView.AddTab( "Debug",_debugView,False )
|
|
_browsersTabView.AddTab( "Debug",_debugView,False )
|
|
_browsersTabView.AddTab( "Help",_helpTree,False )
|
|
_browsersTabView.AddTab( "Help",_helpTree,False )
|
|
|
|
|
|
@@ -279,11 +281,12 @@ Class MainWindowInstance Extends Window
|
|
Return future.Get()
|
|
Return future.Get()
|
|
End
|
|
End
|
|
|
|
|
|
- Method AllocTmpPath:String( ext:String )
|
|
|
|
|
|
+ Method AllocTmpPath:String( ident:String,ext:String )
|
|
|
|
|
|
- For Local i:=1 Until 10
|
|
|
|
- Local path:=_tmp+"untitled"+i+ext
|
|
|
|
- If GetFileType( path )=FileType.None Return path
|
|
|
|
|
|
+ For Local i:=1 Until 100
|
|
|
|
+ Local path:=_tmp+ident+i+ext
|
|
|
|
+ If GetFileType( path )<>FileType.None Continue
|
|
|
|
+ If CreateFile( path ) Return path
|
|
Next
|
|
Next
|
|
|
|
|
|
Return ""
|
|
Return ""
|
|
@@ -483,6 +486,7 @@ Class MainWindowInstance Extends Window
|
|
Field _helpView:HtmlView
|
|
Field _helpView:HtmlView
|
|
|
|
|
|
Field _projectView:ProjectView
|
|
Field _projectView:ProjectView
|
|
|
|
+ Field _docBrowser:DockingView
|
|
Field _debugView:DebugView
|
|
Field _debugView:DebugView
|
|
Field _helpTree:HelpTree
|
|
Field _helpTree:HelpTree
|
|
|
|
|