author | zecke <zecke> | 2002-10-08 16:37:37 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-08 16:37:37 (UTC) |
commit | 76fb8a57bf9fbae3a7073c8b0be1216f34adf99c (patch) (unidiff) | |
tree | 3f486d66ce474039b1a0fc4ade770e6e8a7c32b3 /noncore/apps/opie-console/profile.h | |
parent | faeb94a4000dc539577af465107b5d10903f92d6 (diff) | |
download | opie-76fb8a57bf9fbae3a7073c8b0be1216f34adf99c.zip opie-76fb8a57bf9fbae3a7073c8b0be1216f34adf99c.tar.gz opie-76fb8a57bf9fbae3a7073c8b0be1216f34adf99c.tar.bz2 |
SzModem:
Make it compile remove = 0 from sendFile
Add a Type to Sz
so it could cover SX,SY too
MetaFactory:
take QCString name
QString uiString
so Carsten will be able to translate
and users can switch Language without losing profiles
Default
It's aware of all Default/BuiltIn Plugins and adds them to the factory
Common
typedef bool BOOL TT is not using bool because it wasn't available at that time
they use uint : 1...
maybe we should change UINT_8 to Q_UINT8...
MainWindow:
give the factory to the config widget
use Default
IOLayer
reload should take Profile not Config
ConfigDialog:
make use of Factory and do not do new MetaFactory.. i should
make the c'tor private and add MainWindow as friend
ProfileEditorDialog:
Huge clean ups to the architecture. I still need to convert
the widgets.
Use the factory right
Diffstat (limited to 'noncore/apps/opie-console/profile.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profile.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/profile.h b/noncore/apps/opie-console/profile.h index 5652ac5..78fe6ab 100644 --- a/noncore/apps/opie-console/profile.h +++ b/noncore/apps/opie-console/profile.h | |||
@@ -19,23 +19,25 @@ public: | |||
19 | White, | 19 | White, |
20 | Gray }; | 20 | Gray }; |
21 | enum Terminal {VT102 = 0 }; | 21 | enum Terminal {VT102 = 0 }; |
22 | enum Font { Micro = 0, Small, Medium }; | 22 | enum Font { Micro = 0, Small, Medium }; |
23 | Profile(); | 23 | Profile(); |
24 | Profile( const QString& name, | 24 | Profile( const QString& name, |
25 | const QString& iolayerName, | 25 | const QCString& iolayerName, |
26 | const QCString& termName, | ||
26 | int background, | 27 | int background, |
27 | int foreground, | 28 | int foreground, |
28 | int terminal); | 29 | int terminal); |
29 | Profile( const Profile& ); | 30 | Profile( const Profile& ); |
30 | Profile &operator=( const Profile& ); | 31 | Profile &operator=( const Profile& ); |
31 | bool operator==( const Profile& prof ); | 32 | bool operator==( const Profile& prof ); |
32 | 33 | ||
33 | ~Profile(); | 34 | ~Profile(); |
34 | QString name()const; | 35 | QString name()const; |
35 | QString ioLayerName()const; | 36 | QCString ioLayerName()const; |
37 | QCString terminalName()const; | ||
36 | int foreground()const; | 38 | int foreground()const; |
37 | int background()const; | 39 | int background()const; |
38 | int terminal()const; | 40 | int terminal()const; |
39 | 41 | ||
40 | /* | 42 | /* |
41 | * config stuff | 43 | * config stuff |
@@ -48,21 +50,22 @@ public: | |||
48 | void writeEntry( const QString& key, const QStringList&, const QChar& ); | 50 | void writeEntry( const QString& key, const QStringList&, const QChar& ); |
49 | QString readEntry( const QString& key, const QString& deflt = QString::null)const; | 51 | QString readEntry( const QString& key, const QString& deflt = QString::null)const; |
50 | int readNumEntry( const QString& key, int = -1 )const; | 52 | int readNumEntry( const QString& key, int = -1 )const; |
51 | bool readBoolEntry( const QString& key, bool = FALSE )const; | 53 | bool readBoolEntry( const QString& key, bool = FALSE )const; |
52 | 54 | ||
53 | void setName( const QString& ); | 55 | void setName( const QString& ); |
54 | void setIOLayer( const QString& ); | 56 | void setIOLayer( const QCString& ); |
57 | void setTerminalName( const QCString& ); | ||
55 | void setBackground( int back ); | 58 | void setBackground( int back ); |
56 | void setForeground( int fore ); | 59 | void setForeground( int fore ); |
57 | void setTerminal( int term ); | 60 | void setTerminal( int term ); |
58 | void setConf( const QMap<QString, QString>& ); | 61 | void setConf( const QMap<QString, QString>& ); |
59 | private: | 62 | private: |
60 | QMap<QString, QString> m_conf; | 63 | QMap<QString, QString> m_conf; |
61 | QString m_name; | 64 | QString m_name; |
62 | QString m_ioLayer; | 65 | QCString m_ioLayer, m_term; |
63 | int m_back; | 66 | int m_back; |
64 | int m_fore; | 67 | int m_fore; |
65 | int m_terminal; | 68 | int m_terminal; |
66 | }; | 69 | }; |
67 | 70 | ||
68 | #endif | 71 | #endif |