summaryrefslogtreecommitdiff
path: root/noncore/apps
authorharlekin <harlekin>2002-10-24 12:01:14 (UTC)
committer harlekin <harlekin>2002-10-24 12:01:14 (UTC)
commit41c59e994e023f5c236502538f54d0f3fce8435a (patch) (unidiff)
treeb49bda3a92fd74e3da8e2fcf2a1121e2e743fc0a /noncore/apps
parent667da4143ff65ac9502d55fb09ca8223b16a8994 (diff)
downloadopie-41c59e994e023f5c236502538f54d0f3fce8435a.zip
opie-41c59e994e023f5c236502538f54d0f3fce8435a.tar.gz
opie-41c59e994e023f5c236502538f54d0f3fce8435a.tar.bz2
set VT102 as default terminal type and set medium font size as default font size
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/terminalwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/terminalwidget.cpp b/noncore/apps/opie-console/terminalwidget.cpp
index eae94c3..fc0f3ce 100644
--- a/noncore/apps/opie-console/terminalwidget.cpp
+++ b/noncore/apps/opie-console/terminalwidget.cpp
@@ -110,80 +110,81 @@ TerminalWidget::~TerminalWidget() {
110} 110}
111void TerminalWidget::load( const Profile& prof ) { 111void TerminalWidget::load( const Profile& prof ) {
112 int term = prof.readNumEntry("Terminal"); 112 int term = prof.readNumEntry("Terminal");
113 int color = prof.readNumEntry("Color"); 113 int color = prof.readNumEntry("Color");
114 int fontsize = prof.readNumEntry("Font"); 114 int fontsize = prof.readNumEntry("Font");
115 int opt_echo = prof.readNumEntry("Echo"); 115 int opt_echo = prof.readNumEntry("Echo");
116 int opt_wrap = prof.readNumEntry("Wrap"); 116 int opt_wrap = prof.readNumEntry("Wrap");
117 int opt_inbound = prof.readNumEntry("Inbound"); 117 int opt_inbound = prof.readNumEntry("Inbound");
118 int opt_outbound = prof.readNumEntry("Outbound"); 118 int opt_outbound = prof.readNumEntry("Outbound");
119 119
120 switch( term ) { 120 switch( term ) {
121 case Profile::VT100: 121 case Profile::VT100:
122 m_terminalBox->setCurrentItem(id_term_vt100 ); 122 m_terminalBox->setCurrentItem(id_term_vt100 );
123 break; 123 break;
124 case Profile::VT102: 124 case Profile::VT102:
125 m_terminalBox->setCurrentItem(id_term_vt102 ); 125 m_terminalBox->setCurrentItem(id_term_vt102 );
126 break; 126 break;
127 case Profile::Linux: 127 case Profile::Linux:
128 m_terminalBox->setCurrentItem(id_term_linux ); 128 m_terminalBox->setCurrentItem(id_term_linux );
129 break; 129 break;
130 case Profile::XTerm: 130 case Profile::XTerm:
131 m_terminalBox->setCurrentItem(id_term_xterm ); 131 m_terminalBox->setCurrentItem(id_term_xterm );
132 break; 132 break;
133 default: 133 default:
134 m_terminalBox->setCurrentItem(id_term_vt102 );
134 break; 135 break;
135 }; 136 };
136 137
137 switch( color ) { 138 switch( color ) {
138 case Profile::Black: 139 case Profile::Black:
139 m_colorCmb->setCurrentItem(id_term_black ); 140 m_colorCmb->setCurrentItem(id_term_black );
140 break; 141 break;
141 case Profile::White: 142 case Profile::White:
142 m_colorCmb->setCurrentItem(id_term_white ); 143 m_colorCmb->setCurrentItem(id_term_white );
143 break; 144 break;
144 case Profile::Green: 145 case Profile::Green:
145 m_colorCmb->setCurrentItem(id_term_green ); 146 m_colorCmb->setCurrentItem(id_term_green );
146 break; 147 break;
147 case Profile::Orange: 148 case Profile::Orange:
148 m_colorCmb->setCurrentItem(id_term_orange ); 149 m_colorCmb->setCurrentItem(id_term_orange );
149 break; 150 break;
150 default: 151 default:
151 break; 152 break;
152 }; 153 };
153 154
154 switch( fontsize ) { 155 switch( fontsize ) {
155 case Profile::Micro: 156 case Profile::Micro:
156 m_sizeSmall->setChecked(true ); 157 m_sizeSmall->setChecked(true );
157 break; 158 break;
158 case Profile::Small: 159 case Profile::Small:
159 m_sizeMedium->setChecked(true ); 160 m_sizeMedium->setChecked(true );
160 break; 161 break;
161 case Profile::Medium: 162 case Profile::Medium:
162 m_sizeLarge->setChecked( true ); 163 m_sizeLarge->setChecked( true );
163 break; 164 break;
164 m_sizeSmall->setChecked(true);
165 default: 165 default:
166 m_sizeMedium->setChecked(true );
166 break; 167 break;
167 }; 168 };
168 169
169 if (opt_echo) m_optionEcho->setChecked( true ); 170 if (opt_echo) m_optionEcho->setChecked( true );
170 if (opt_wrap) m_optionWrap->setChecked( true ); 171 if (opt_wrap) m_optionWrap->setChecked( true );
171 if (opt_inbound) m_convInbound->setChecked( true ); 172 if (opt_inbound) m_convInbound->setChecked( true );
172 if (opt_outbound) m_convOutbound->setChecked( true ); 173 if (opt_outbound) m_convOutbound->setChecked( true );
173 174
174} 175}
175void TerminalWidget::save( Profile& profile ) { 176void TerminalWidget::save( Profile& profile ) {
176 switch(m_terminalBox->currentItem() ) { 177 switch(m_terminalBox->currentItem() ) {
177 case id_term_vt100: 178 case id_term_vt100:
178 profile.writeEntry("Terminal", Profile::VT100 ); 179 profile.writeEntry("Terminal", Profile::VT100 );
179 break; 180 break;
180 case id_term_vt102: 181 case id_term_vt102:
181 profile.writeEntry("Terminal", Profile::VT102 ); 182 profile.writeEntry("Terminal", Profile::VT102 );
182 break; 183 break;
183 case id_term_linux: 184 case id_term_linux:
184 profile.writeEntry("Terminal", Profile::Linux ); 185 profile.writeEntry("Terminal", Profile::Linux );
185 break; 186 break;
186 case id_term_xterm: 187 case id_term_xterm:
187 profile.writeEntry("Terminal", Profile::XTerm ); 188 profile.writeEntry("Terminal", Profile::XTerm );
188 break; 189 break;
189 //case id_term_ansi: 190 //case id_term_ansi: