author | mickeyl <mickeyl> | 2005-06-11 12:22:30 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-06-11 12:22:30 (UTC) |
commit | d13a1a3345270ea71215d421627665a40f16454c (patch) (unidiff) | |
tree | 58aa21f57fd6d08547756a9e68e78282ce554568 | |
parent | 9fe80ebf4fbe9b31d9f91a33e4cfc163b7236a62 (diff) | |
download | opie-d13a1a3345270ea71215d421627665a40f16454c.zip opie-d13a1a3345270ea71215d421627665a40f16454c.tar.gz opie-d13a1a3345270ea71215d421627665a40f16454c.tar.bz2 |
- read default profile fixed font specs from qpe.conf, if profile doesn't exist
- fix initial background color
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.cpp | 20 |
2 files changed, 18 insertions, 3 deletions
@@ -3,24 +3,25 @@ | |||
3 | 3 | ||
4 | New Features | 4 | New Features |
5 | ------------ | 5 | ------------ |
6 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) | 6 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) |
7 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) | 7 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) |
8 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) | 8 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) |
9 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) | 9 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) |
10 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) | 10 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) |
11 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) | 11 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) |
12 | * Checkbook - added configuration option to use smaller font for checkbook transaction tab (hrw) | 12 | * Checkbook - added configuration option to use smaller font for checkbook transaction tab (hrw) |
13 | * ZSafe - make UI conform to Opie standards (drw) | 13 | * ZSafe - make UI conform to Opie standards (drw) |
14 | * Today Addressbook plugin - fix configuration to show/not show birthdays, use checkboxes for selection (hrw) | 14 | * Today Addressbook plugin - fix configuration to show/not show birthdays, use checkboxes for selection (hrw) |
15 | * Opie-Console: read initial fixed font configuration from qpe.conf (mickeyl) | ||
15 | 16 | ||
16 | Fixed Bugs | 17 | Fixed Bugs |
17 | ---------- | 18 | ---------- |
18 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) | 19 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) |
19 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) | 20 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) |
20 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) | 21 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) |
21 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) | 22 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) |
22 | * #1665 - Opie-IRC diplays the host prepended to the message when peer is using and ipv6 address (skyhusker) | 23 | * #1665 - Opie-IRC diplays the host prepended to the message when peer is using and ipv6 address (skyhusker) |
23 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) | 24 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) |
24 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) | 25 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) |
25 | * n.a.- always show volume and wireless applet popups inside visible screen (deller) | 26 | * n.a.- always show volume and wireless applet popups inside visible screen (deller) |
26 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) | 27 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) |
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index 986ae8d..2087f57 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp | |||
@@ -1,18 +1,22 @@ | |||
1 | #include "TEmuVt102.h" | 1 | #include "TEmuVt102.h" |
2 | #include "profile.h" | 2 | #include "profile.h" |
3 | #include "emulation_handler.h" | 3 | #include "emulation_handler.h" |
4 | #include "script.h" | 4 | #include "script.h" |
5 | #include "logger.h" | 5 | #include "logger.h" |
6 | 6 | ||
7 | /* OPIE */ | ||
8 | #include <qpe/config.h> | ||
9 | |||
10 | /* QT */ | ||
7 | #include <qfile.h> | 11 | #include <qfile.h> |
8 | #include <qtextstream.h> | 12 | #include <qtextstream.h> |
9 | 13 | ||
10 | EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const char* name ) | 14 | EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const char* name ) |
11 | : QObject(0, name ) | 15 | : QObject(0, name ) |
12 | { | 16 | { |
13 | m_teWid = new TEWidget( parent, "TerminalMain"); | 17 | m_teWid = new TEWidget( parent, "TerminalMain"); |
14 | // use setWrapAt(0) for classic behaviour (wrap at screen width, no scrollbar) | 18 | // use setWrapAt(0) for classic behaviour (wrap at screen width, no scrollbar) |
15 | // use setWrapAt(80) for normal console with scrollbar | 19 | // use setWrapAt(80) for normal console with scrollbar |
16 | setWrap(prof.readNumEntry("Wrap", 80) ? 0 : 80); | 20 | setWrap(prof.readNumEntry("Wrap", 80) ? 0 : 80); |
17 | m_teWid->setMinimumSize(150, 70 ); | 21 | m_teWid->setMinimumSize(150, 70 ); |
18 | m_script = 0; | 22 | m_script = 0; |
@@ -35,30 +39,40 @@ TEmulation* EmulationHandler::emulation() { | |||
35 | return m_teEmu; | 39 | return m_teEmu; |
36 | } | 40 | } |
37 | EmulationHandler::~EmulationHandler() { | 41 | EmulationHandler::~EmulationHandler() { |
38 | if (isRecording()) | 42 | if (isRecording()) |
39 | clearScript(); | 43 | clearScript(); |
40 | delete m_teEmu; | 44 | delete m_teEmu; |
41 | delete m_teWid; | 45 | delete m_teWid; |
42 | delete m_log; | 46 | delete m_log; |
43 | } | 47 | } |
44 | 48 | ||
45 | void EmulationHandler::load( const Profile& prof) { | 49 | void EmulationHandler::load( const Profile& prof) { |
46 | 50 | ||
47 | // m_teWid->setVTFont( font( prof.readNumEntry("Font") ) ); | 51 | // try to read the fontconfig from the profile |
48 | QFont font( prof.readEntry("Font"), prof.readNumEntry( "FontSize" ), QFont::Normal ); | 52 | QString aFont = prof.readEntry( "Font" ); |
53 | int aFontSize = prof.readNumEntry( "FontSize" ); | ||
54 | // use defaults from qpe.conf if no profile yet | ||
55 | if ( ( aFontSize == -1 ) || ( aFont == QString::null ) ) | ||
56 | { | ||
57 | Config c( "qpe" ); | ||
58 | c.setGroup( "Appearance" ); | ||
59 | aFont = c.readEntry( "FixedFontFamily", "Fixed" ); | ||
60 | aFontSize = c.readNumEntry( "FixedFontSize", 7 ); | ||
61 | } | ||
62 | QFont font( aFont, aFontSize ); | ||
49 | font.setFixedPitch( TRUE ); | 63 | font.setFixedPitch( TRUE ); |
50 | m_teWid->setVTFont( font ); | 64 | m_teWid->setVTFont( font ); |
51 | 65 | ||
52 | int num = prof.readNumEntry("Color"); | 66 | int num = prof.readNumEntry("Color", 0); |
53 | setColor( foreColor(num), backColor(num) ); | 67 | setColor( foreColor(num), backColor(num) ); |
54 | m_teWid->setBackgroundColor(backColor(num) ); | 68 | m_teWid->setBackgroundColor(backColor(num) ); |
55 | 69 | ||
56 | int term = prof.readNumEntry("Terminal", 0) ; | 70 | int term = prof.readNumEntry("Terminal", 0) ; |
57 | switch(term) { | 71 | switch(term) { |
58 | default: | 72 | default: |
59 | case Profile::VT102: | 73 | case Profile::VT102: |
60 | case Profile::VT100: | 74 | case Profile::VT100: |
61 | m_teEmu->setKeytrans("vt100.keytab"); | 75 | m_teEmu->setKeytrans("vt100.keytab"); |
62 | break; | 76 | break; |
63 | case Profile::Linux: | 77 | case Profile::Linux: |
64 | m_teEmu->setKeytrans("linux.keytab"); | 78 | m_teEmu->setKeytrans("linux.keytab"); |