Page 1 of 1

Project files ordering, tab colors for files in project

Posted: Fri Jan 25, 2013 1:08 pm
by luis
I would like the ability to change the order of the files in the project window, maybe through drag and drop or a simpler move up/move down couple of buttons. At the moment the only way I see to do this is through manual editing of the .pbp file.

Or at least the ability to sort them in ascending order (using appropriate naming I would obtain the grouping characteristics I try to achieve anyway).

Both the possibilities would be the top! :mrgreen:

And talking about projects, I would also like to be able to select the tab color for the files inside a project.
Currently is fixed to a light purple-ish color. Maybe could go together with the other editor colors in files -> preferences -> editor -> coloring.

Thank you.

Re: Project files ordering, tab colors for files in project

Posted: Mon Jan 28, 2013 6:22 pm
by uwekel
+1!

Re: Project files ordering, tab colors for files in project

Posted: Wed Feb 13, 2013 12:23 pm
by User_Russian
luis wrote:I would like the ability to change the order of the files in the project window, maybe through drag and drop or a simpler move up/move down couple of buttons.
Drag and drop items to ListIconGadget(), do quite easily.
I hope that this will be implemented in IDE.

Code: Select all

If OpenWindow(0, 100, 100, 300, 200, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ListIconGadget(0, 5, 5, 290, 190, "Name", 270, #PB_ListIcon_FullRowSelect|#PB_ListIcon_AlwaysShowSelection)
  
  For i=1 To 10
    AddGadgetItem(0, -1, Str(i))
  Next i
  
  
  EnableGadgetDrop(0, #PB_Drop_Private, #PB_Drag_Move, 2)
  
  
  Repeat
    Event = WaitWindowEvent()
    
    If Event = #PB_Event_Gadget And EventType() = #PB_EventType_DragStart
      Select EventGadget()
        Case 0
          sItem = GetGadgetState( 0)
          If sItem >=0
            DragPrivate( 2, #PB_Drag_Move )
          EndIf
      EndSelect
      
    ElseIf Event = #PB_Event_GadgetDrop
      If EventGadget()=0
        
        tItem = GetGadgetState( 0 )
        
        If sItem <> tItem And tItem>=0 And sItem>=0
          If tItem<CountGadgetItems(0)-1
            NItem=tItem+1
          Else
            NItem=tItem-1
          EndIf
          sText.s = GetGadgetItemText( 0, sItem )
          RemoveGadgetItem(0, sItem)
          AddGadgetItem(0, tItem, sText)
          SetGadgetState(0, tItem)
        EndIf
        
      EndIf
    EndIf
    
  Until Event = #PB_Event_CloseWindow
EndIf

Re: Project files ordering, tab colors for files in project

Posted: Thu Feb 14, 2013 7:16 pm
by eesau
The hard-coded purple color for the tabs is an eyesore, so a customizable color would be nice.

Re: Project files ordering, tab colors for files in project

Posted: Wed Feb 20, 2013 10:03 am
by uwekel
Every hard-coded color is a bad habbit, because it depends on the taste of the programmer and not of the user :-(

Re: Project files ordering, tab colors for files in project

Posted: Fri Mar 22, 2013 12:25 am
by Tenaja
+1 to the Project Files

+1 to the tab colors

Re: Project files ordering, tab colors for files in project

Posted: Fri Mar 22, 2013 8:40 am
by davido
+1

Re: Project files ordering, tab colors for files in project

Posted: Mon Aug 26, 2013 6:04 pm
by User_Russian
I agree, the color of the tab of the project, to change, because the dark purple, looks bad and it is difficult to consider the names of the files (they are black).

Additionally, Please change color asterisks indicating that contents of file changed but not saved on the disk. It is better if it was a bright red color (bold font) to make it visible.