Bug 298341

Summary: Inclusions appear in the alphabetical order in the Files and Projects tab
Product: [Applications] kile Reporter: Loic Petit <loic.petit>
Component: user interfaceAssignee: Michel Ludwig <michel.ludwig>
Status: REPORTED ---    
Severity: wishlist CC: nikopasanen.me
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Proposed patch viable in the 2.1 branch

Description Loic Petit 2012-04-18 09:05:00 UTC
When using \input or \include in a tex file, the files and projects tab shows the mentioned files in the alphabetical order. It would be more convenient to list them in the same order as they are mentioned in the file. This way it reflects the structure (that can be seen in the structure tab).

Reproducible: Always

Steps to Reproduce:
Make a project with a master file and two inclusions A.tex and B.tex
the master file content:
\input{B}
\input{A}
Actual Results:  
The Files and Projects tab shows :
master.tex
   |--- A.tex
   \--- B.tex

Expected Results:  
The Files and Projects tab should show :
master.tex
   |--- B.tex
   \--- A.tex
Comment 1 Loic Petit 2012-06-08 16:04:42 UTC
Created attachment 71669 [details]
Proposed patch viable in the 2.1 branch
Comment 2 Loic Petit 2012-06-08 16:04:57 UTC
Hi,

I made the following patch to fix the problem in the 2.1 branch of the git. Basically, I set an integer in the KileProjectView that corresponds to the index in the dependencies array of the docinfo.
Then, the operator < in ProjectViewItem reacts to it, if it is set.
Note : the master branch is working weird as it has a lot of problems to build the hierarchy.

LP
Comment 3 Niko Pasanen 2015-11-13 15:17:28 UTC
The problem exist also in the Kile 2.9.60 (KDE 4.10.2). I am using Windows 7 64-bit. Does anyone know any workaround for this? It would be really useful to put the files in chronological order rather than alphabetical order.