summaryrefslogtreecommitdiffstats
path: root/perl-install/share/wizard.rc
blob: cad898c2ab585ace2a82d5c85f9120bf3d04484d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
style "button"
{
  bg[NORMAL] = "#909090"
}

style "window" 
{
}

style "any"
{
  base[NORMAL]	  = { 0.2, 0.2, 0.4 }
  bg[NORMAL]      = { 0.2, 0.2, 0.4 }
  bg[INSENSITIVE] = { 0.6, 0.6, 0.8 }
  base[INSENSITIVE]={ 0.6, 0.6, 0.8 }
  bg[ACTIVE]      = { 0.6, 0.6, 0.8 }
  bg[PRELIGHT]    = { 0.4, 0.4, 0.6 }
  
  text[NORMAL]	  = { 1.0, 1.0, 1.0 }
  fg[NORMAL]  	  = { 1.0, 1.0, 1.0 }
  fg[INSENSITIVE] = { 0.0, 0.0, 0.0 }
  text[INSENSITIVE]={ 1.0, 1.0, 1.0 }
  fg[ACTIVE]  	  = { 0.8, 0.8, 1.0 }
  fg[PRELIGHT]    = { 1.0, 1.0, 1.0 }

  bg[SELECTED] = { 1.0, 1.0, 1.0 }
  fg[SELECTED] = { 0.2, 0.2, 0.4 }
}

style "entry"
{
  base[NORMAL] = { 0.4, 0.4, 0.6 }
  base[ACTIVE] = { 0.4, 0.4, 0.6 }
  fg[NORMAL]   = { 1.0, 1.0, 1.0 }
}

style "notebook"
{
  bg[NORMAL]      = { 0.4, 0.4, 0.6 }
  bg[ACTIVE]      = { 0.2, 0.2, 0.4 }
  fg[NORMAL]      = { 1.0, 1.0, 1.0 }
}

style "button" = "any"
{
  bg[NORMAL] = { 0.4, 0.4, 0.6 }
  fg[NORMAL] = { 1.0, 1.0, 1.0 }
  bg[PRELIGHT] = { 0.36, 0.36, 0.56 }
  fg[PRELIGHT] = { 0.8, 0.8, 1.0 }
}

style "background"
{
  bg[NORMAL] = { 0.6, 0.6, 0.8 }
  bg[PRELIGHT] = { 0.8, 0.8, 0.99 }
}

widget_class "GtkWindow" style "window"
widget_class "*" style "any"
widget_class "*GtkSpin*" style "entry"
widget_class "*GtkEntry*" style "entry"
widget_class "*Gtk*List*" style "entry"
widget_class "*GtkCTree*" style "entry"
widget_class "*GtkNotebook*" style "notebook"
widget "*GtkButton" style "button"
widget "*background*" style "background"


#  style "font"
#  {
#    fontset = "-*-*-medium-r-normal-*-8-*-*-*-*-*-iso8859-1,*-r-*"
#  }

#  style "any"
#  {
#    bg[NORMAL] = { 0.7, 0.8, 0.2 }
#    bg[PRELIGHT] = { 0.9, 0.9, 0.9 }
#  }

#  #  style "any"
#  #  {
#  #  #  fontset = "-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1"
#  #    bg[NORMAL] = { 1.0, 1.0, 1.0 }
#  #    bg[SELECTED] = { 0.0, 0.8, 0.3 }
#  #    bg[INSENSITIVE] = { 1.0, 1.0, 1.0 }
#  #    bg[ACTIVE] = { 1.0, 1.0, 1.0 }
#  #    bg[PRELIGHT] = { 1.0, 1.0, 1.0 }

#  #    base[NORMAL] = { 1.0, 1.0, 1.0 }
#  #    base[SELECTED] = { 1.0, 1.0, 1.0 }
#  #    base[INSENSITIVE] = { 1.0, 1.0, 1.0 }
#  #    base[ACTIVE] = { 1.0, 1.0, 1.0 }
#  #    base[PRELIGHT] = { 1.0, 1.0, 1.0 }

#  #    text[NORMAL] = { 0.0, 0.0, 0.0 }
#  #    text[SELECTED] = { 0.0, 0.0, 0.0 }
#  #    text[INSENSITIVE] = { 0.0, 0.0, 0.0 }
#  #    text[ACTIVE] = { 0.0, 0.0, 0.0 }
#  #    text[PRELIGHT] = { 0.0, 0.0, 0.0 }

#  #    fg[NORMAL] = { 0.0, 0.0, 0.0 }
#  #    fg[SELECTED] = { 0.8, 0.8, 0.8 }
#  #    fg[INSENSITIVE] = { 1.0, 1.0, 0.0 }
#  #    fg[ACTIVE] = { 1.0, 1.0, 0.0 }
#  #    fg[PRELIGHT] = { 0.0, 0.3, 0.8 }

#  #  }

#  style "area" = "font"
#  {
#    bg[NORMAL] = { 1.0, 1.0, 1.0 }
#    bg[PRELIGHT] = { 0.8, 0.8, 0.8 }
#  }

#  style "red" = "font"
#  {
#    bg[NORMAL] = { 1.0, 0, 0 }
#    bg[PRELIGHT] = { 0.9, 0, 0 }
#  }
#  style "darkred" = "font"
#  {
#    bg[NORMAL] = { 0.7, 0, 0 }
#    bg[PRELIGHT] = { 0.6, 0, 0 }
#  }
#  style "green" = "font"
#  {
#    bg[NORMAL] = { 0, 1.0, 0 }
#    bg[PRELIGHT] = { 0, 0.9, 0 }
#    fg[NORMAL] = { 0, 0, 0 }
#  }
#  style "blue" = "font"
#  {
#    bg[NORMAL] = { 0, 0, 1.0 }
#    bg[PRELIGHT] = { 0, 0, 0.9 }
#  }
#  style "white" = "font"
#  {
#    bg[NORMAL] = { 1.0, 1.0, 1.0 }
#    bg[PRELIGHT] = { 0.67, 0.67, 0.67 }
#    fg[NORMAL] = { 0, 0, 0 }
#  }

#  #widget_class "GtkWindow" style "window"
#  #widget_class "*abel*" style "any"
#  widget_class "*" style "any"
#  widget_class "*Area*" style "area"
#  #widget_class "*GtkSpin*" style "entry"
#  #widget_class "*GtkEntry*" style "entry"
#  #widget_class "*Gtk*List*" style "entry"
#  #widget_class "*GtkCTree*" style "entry"
#  #widget_class "*GtkNotebook*" style "notebook"
#  #widget "*GtkButton" style "button"
#  #widget "*background*" style "background"

#  #class "GtkRadioButton" style "checkradiobutton"
#  #class "GtkCheckButton" style "checkradiobutton"


#  #widget_class "GtkWindow" style "window"
#  #widget_class "*Area*" style "any"
#  #widget_class "*abel*" style "any"
#  #class "*" style "any"
#  #widget_class "*GtkSpin*" style "entry"
#  #widget_class "*GtkEntry*" style "entry"
#  #widget_class "*Gtk*List*" style "entry"
#  #widget_class "*GtkCTree*" style "entry"
#  #widget_class "*GtkNotebook*" style "notebook"
#  #widget "*GtkButton" style "button"
#  #widget "*background*" style "background"

#  #class "GtkRadioButton" style "checkradiobutton"
#  #class "GtkCheckButton" style "checkradiobutton"
f='#n343'>343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
package fs::type; # $Id: type.pm 269283 2010-05-24 15:31:58Z pterjan $

use diagnostics;
use strict;

use common;
use devices;


our @ISA = qw(Exporter);
our @EXPORT = qw(
   isEmpty isExtended isTrueLocalFS isTrueFS isDos isSwap isOtherAvailableFS isRawLVM isRawRAID isRawLUKS isRAID isLVM isLUKS isMountableRW isNonMountable isPartOfLVM isPartOfRAID isPartOfLoopback isLoopback isMounted isBusy isSpecial isApple isAppleBootstrap isWholedisk isFat_or_NTFS isRecovery
   maybeFormatted set_isFormatted defaultFS
);


my (%type_name2pt_type, %type_name2fs_type, %fs_type2pt_type, %pt_type2fs_type, %type_names);

{
    my @list_types = (
	important => [
  0x82 => 'swap',     'Linux swap',
  0x83 => 'ext2',     'Linux native',
  0x83 => 'ext3',     'Journalised FS: ext3',
  0x83 => 'ext4',     'Journalised FS: ext4',
  0x83 => 'reiserfs', 'Journalised FS: ReiserFS',
if_(arch() =~ /ppc|i.86|ia64|x86_64/, 
  0x83 => 'xfs',      'Journalised FS: XFS',
),
if_(arch() =~ /ppc|i.86|x86_64/, 
  0x83 => 'jfs',      'Journalised FS: JFS',
),
if_(arch() =~ /i.86|ia64|x86_64/,
  0x0b => 'vfat',     'FAT32',
  0x07 => 'ntfs-3g',  'NTFS-3G',
  0x07 => 'ntfs',     'NTFS',
),
if_(arch() =~ /ppc/,
  0x401	=> '',         'Apple Bootstrap',
  0x402	=> 'hfs',      'Apple HFS Partition',
  0x41  => '',         'PPC PReP Boot',
),
	],

        non_fs_type => [
  0x83 => '',         'Encrypted',
  0x8e => '',         'Linux Logical Volume Manager',
  0xfd => '',         'Linux RAID',
	],

	special => [
  0x0  => '',         'Empty',
  0x05 => '',         'Extended',
  0x0f => '',         'W95 Extended (LBA)',
  0x85 => '',         'Linux extended',
	],

	other => [
 if_(arch() =~ /^ia64/,
  0x100 => '',         'Various',
), if_(arch() =~ /^ppc/,
  0x401	=> 'apple',    'Apple Partition',