Bug 298341 - Inclusions appear in the alphabetical order in the Files and Projects tab
Summary: Inclusions appear in the alphabetical order in the Files and Projects tab
Status: REPORTED
Alias: None
Product: kile
Classification: Applications
Component: user interface (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-18 09:05 UTC by Loic Petit
Modified: 2015-11-13 15:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Proposed patch viable in the 2.1 branch (2.38 KB, patch)
2012-06-08 16:04 UTC, Loic Petit
Details

Note You need to log in before you can comment on or make changes to this bug.
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.