Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiterbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index 36fbb9a..eac5d89 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |||
@@ -78,100 +78,100 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f | |||
78 | //--------- NETVIEW TAB -------------- | 78 | //--------- NETVIEW TAB -------------- |
79 | 79 | ||
80 | netview = new MScanListView( ap ); | 80 | netview = new MScanListView( ap ); |
81 | apLayout->addWidget( netview ); | 81 | apLayout->addWidget( netview ); |
82 | 82 | ||
83 | //--------- GRAPH TAB -------------- | 83 | //--------- GRAPH TAB -------------- |
84 | 84 | ||
85 | graphwindow = new MGraphWindow( TabWidget, "Graph" ); | 85 | graphwindow = new MGraphWindow( TabWidget, "Graph" ); |
86 | 86 | ||
87 | //--------- LOG TAB -------------- | 87 | //--------- LOG TAB -------------- |
88 | 88 | ||
89 | logwindow = new MLogWindow( TabWidget, "Log" ); | 89 | logwindow = new MLogWindow( TabWidget, "Log" ); |
90 | 90 | ||
91 | //--------- HEX TAB -------------- | 91 | //--------- HEX TAB -------------- |
92 | 92 | ||
93 | hexwindow = new MHexWindow( TabWidget, "Hex" ); | 93 | hexwindow = new MHexWindow( TabWidget, "Hex" ); |
94 | 94 | ||
95 | //--------- STAT TAB -------------- | 95 | //--------- STAT TAB -------------- |
96 | 96 | ||
97 | statwindow = new MStatWindow( TabWidget, "Stat" ); | 97 | statwindow = new MStatWindow( TabWidget, "Stat" ); |
98 | 98 | ||
99 | //--------- ABOUT TAB -------------- | 99 | //--------- ABOUT TAB -------------- |
100 | 100 | ||
101 | about = new QWidget( TabWidget, "about" ); | 101 | about = new QWidget( TabWidget, "about" ); |
102 | aboutLayout = new QGridLayout( about ); | 102 | aboutLayout = new QGridLayout( about ); |
103 | aboutLayout->setSpacing( 6 ); | 103 | aboutLayout->setSpacing( 6 ); |
104 | aboutLayout->setMargin( 11 ); | 104 | aboutLayout->setMargin( 11 ); |
105 | 105 | ||
106 | PixmapLabel1_3_2 = new QLabel( about, "PixmapLabel1_3_2" ); | 106 | PixmapLabel1_3_2 = new QLabel( about, "PixmapLabel1_3_2" ); |
107 | PixmapLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, PixmapLabel1_3_2->sizePolicy().hasHeightForWidth() ) ); | 107 | PixmapLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, PixmapLabel1_3_2->sizePolicy().hasHeightForWidth() ) ); |
108 | PixmapLabel1_3_2->setFrameShape( QLabel::Panel ); | 108 | PixmapLabel1_3_2->setFrameShape( QLabel::Panel ); |
109 | PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); | 109 | PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); |
110 | PixmapLabel1_3_2->setLineWidth( 2 ); | 110 | PixmapLabel1_3_2->setLineWidth( 2 ); |
111 | PixmapLabel1_3_2->setMargin( 0 ); | 111 | PixmapLabel1_3_2->setMargin( 0 ); |
112 | PixmapLabel1_3_2->setMidLineWidth( 0 ); | 112 | PixmapLabel1_3_2->setMidLineWidth( 0 ); |
113 | PixmapLabel1_3_2->setPixmap( Resource::loadPixmap( "wellenreiter/logo" ) ); | 113 | PixmapLabel1_3_2->setPixmap( Resource::loadPixmap( "wellenreiter/logo" ) ); |
114 | PixmapLabel1_3_2->setScaledContents( TRUE ); | 114 | PixmapLabel1_3_2->setScaledContents( TRUE ); |
115 | PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); | 115 | PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); |
116 | 116 | ||
117 | aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); | 117 | aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); |
118 | 118 | ||
119 | TextLabel1_4_2 = new QLabel( about, "TextLabel1_4_2" ); | 119 | TextLabel1_4_2 = new QLabel( about, "TextLabel1_4_2" ); |
120 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); | 120 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); |
121 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); | 121 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); |
122 | TextLabel1_4_2_font.setPointSize( 10 ); | 122 | TextLabel1_4_2_font.setPointSize( 10 ); |
123 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); | 123 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); |
124 | TextLabel1_4_2->setText( tr( "<p align=center>\n" | 124 | TextLabel1_4_2->setText( tr( "<p align=center>\n" |
125 | "<hr>\n" | 125 | "<hr>\n" |
126 | "Michael 'Mickey' Lauer<br><hr>\n" | ||
126 | "Max Moser<br>\n" | 127 | "Max Moser<br>\n" |
127 | "Martin J. Muench<br>\n" | 128 | "Martin J. Muench<br>\n" |
128 | "Michael Lauer<br><hr>\n" | 129 | "<b>www.wellenreiter.net</b>\n" |
129 | "<b>www.remote-exploit.org</b>\n" | ||
130 | "</p>" ) ); | 130 | "</p>" ) ); |
131 | TextLabel1_4_2->setAlignment( int( QLabel::AlignCenter ) ); | 131 | TextLabel1_4_2->setAlignment( int( QLabel::AlignCenter ) ); |
132 | 132 | ||
133 | aboutLayout->addWidget( TextLabel1_4_2, 1, 0 ); | 133 | aboutLayout->addWidget( TextLabel1_4_2, 1, 0 ); |
134 | 134 | ||
135 | #ifdef QWS | 135 | #ifdef QWS |
136 | TabWidget->addTab( ap, "wellenreiter/networks", tr( "Nets" ) ); | 136 | TabWidget->addTab( ap, "wellenreiter/networks", tr( "Nets" ) ); |
137 | TabWidget->addTab( graphwindow, "wellenreiter/graph", tr( "Graph" ) ); | 137 | TabWidget->addTab( graphwindow, "wellenreiter/graph", tr( "Graph" ) ); |
138 | TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); | 138 | TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); |
139 | TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); | 139 | TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); |
140 | TabWidget->addTab( statwindow, "wellenreiter/stat", tr( "Stat" ) ); | 140 | TabWidget->addTab( statwindow, "wellenreiter/stat", tr( "Stat" ) ); |
141 | TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); | 141 | TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); |
142 | #else | 142 | #else |
143 | TabWidget->addTab( ap, /* "wellenreiter/networks", */ tr( "Networks" ) ); | 143 | TabWidget->addTab( ap, /* "wellenreiter/networks", */ tr( "Networks" ) ); |
144 | TabWidget->addTab( graphwindow, /* "wellenreiter/graph", */ tr( "Graph" ) ); | 144 | TabWidget->addTab( graphwindow, /* "wellenreiter/graph", */ tr( "Graph" ) ); |
145 | TabWidget->addTab( logwindow, /* "wellenreiter/log", */ tr( "Log" ) ); | 145 | TabWidget->addTab( logwindow, /* "wellenreiter/log", */ tr( "Log" ) ); |
146 | TabWidget->addTab( hexwindow, /* "wellenreiter/hex", */ tr( "Hex" ) ); | 146 | TabWidget->addTab( hexwindow, /* "wellenreiter/hex", */ tr( "Hex" ) ); |
147 | TabWidget->addTab( statwindow, /* "wellenreiter/hex", */ tr( "Stat" ) ); | 147 | TabWidget->addTab( statwindow, /* "wellenreiter/hex", */ tr( "Stat" ) ); |
148 | TabWidget->addTab( about, /* "wellenreiter/about", */ tr( "About" ) ); | 148 | TabWidget->addTab( about, /* "wellenreiter/about", */ tr( "About" ) ); |
149 | #endif | 149 | #endif |
150 | WellenreiterBaseLayout->addWidget( TabWidget ); | 150 | WellenreiterBaseLayout->addWidget( TabWidget ); |
151 | 151 | ||
152 | #ifdef QWS | 152 | #ifdef QWS |
153 | TabWidget->setCurrentTab( tr( "Nets" ) ); | 153 | TabWidget->setCurrentTab( tr( "Nets" ) ); |
154 | #endif | 154 | #endif |
155 | 155 | ||
156 | } | 156 | } |
157 | 157 | ||
158 | /* | 158 | /* |
159 | * Destroys the object and frees any allocated resources | 159 | * Destroys the object and frees any allocated resources |
160 | */ | 160 | */ |
161 | WellenreiterBase::~WellenreiterBase() | 161 | WellenreiterBase::~WellenreiterBase() |
162 | { | 162 | { |
163 | // no need to delete child widgets, Qt does it all for us | 163 | // no need to delete child widgets, Qt does it all for us |
164 | } | 164 | } |
165 | 165 | ||
166 | /* | 166 | /* |
167 | * Main event handler. Reimplemented to handle application | 167 | * Main event handler. Reimplemented to handle application |
168 | * font changes | 168 | * font changes |
169 | */ | 169 | */ |
170 | bool WellenreiterBase::event( QEvent* ev ) | 170 | bool WellenreiterBase::event( QEvent* ev ) |
171 | { | 171 | { |
172 | bool ret = QWidget::event( ev ); | 172 | bool ret = QWidget::event( ev ); |
173 | if ( ev->type() == QEvent::ApplicationFontChange ) { | 173 | if ( ev->type() == QEvent::ApplicationFontChange ) { |
174 | //QFont Log_2_font( Log_2->font() ); | 174 | //QFont Log_2_font( Log_2->font() ); |
175 | //Log_2_font.setFamily( "adobe-courier" ); | 175 | //Log_2_font.setFamily( "adobe-courier" ); |
176 | //Log_2_font.setPointSize( 8 ); | 176 | //Log_2_font.setPointSize( 8 ); |
177 | //Log_2->setFont( Log_2_font ); | 177 | //Log_2->setFont( Log_2_font ); |