1 /**
2  * UGENE - Integrated Bioinformatics Tools.
3  * Copyright (C) 2008-2021 UniPro <ugene@unipro.ru>
4  * http://ugene.net
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  */
21 
22 #ifndef _U2_TREE_SETTINGS_H_
23 #define _U2_TREE_SETTINGS_H_
24 
25 #include <QDialog>
26 #include <QFontInfo>
27 #include <QMap>
28 #include <QVariant>
29 
30 namespace U2 {
31 enum TREE_TYPE { DEFAULT,
32                  PHYLOGRAM,
33                  CLADOGRAM };
34 
35 enum TreeLayout {
36     RECTANGULAR_LAYOUT,
37     CIRCULAR_LAYOUT,
38     UNROOTED_LAYOUT
39 };
40 
41 enum TreeViewOption {
42     BRANCHES_TRANSFORMATION_TYPE,
43     TREE_LAYOUT,
44     WIDTH_COEF,
45     HEIGHT_COEF,
46 
47     LABEL_COLOR,
48     LABEL_FONT_TYPE,
49     LABEL_FONT_SIZE,
50     LABEL_FONT_BOLD,
51     LABEL_FONT_ITALIC,
52     LABEL_FONT_UNDERLINE,
53 
54     BRANCH_COLOR,
55     BRANCH_THICKNESS,
56 
57     NODE_COLOR,
58     NODE_RADIUS,
59 
60     SHOW_LABELS,
61     SHOW_DISTANCES,
62     SHOW_NODE_LABELS,
63     ALIGN_LABELS,
64 
65     SCALEBAR_RANGE,
66     SCALEBAR_FONT_SIZE,
67     SCALEBAR_LINE_WIDTH,
68 
69     OPTION_ENUM_END
70 };
71 
72 typedef QMap<TreeViewOption, QVariant> OptionsMap;
73 }  // namespace U2
74 #endif
75