mirror of
https://github.com/KDE/konsole.git
synced 2026-05-06 21:53:55 -04:00
fullscreen mode introduced.
svn path=/trunk/kdebase/konsole/; revision=39211
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
25 Jan 2000
|
||||
- improved console8x16. This merged from the iso[01..10].f16.pcf
|
||||
as distributed in the console fonts package.
|
||||
- Fullscreen mode add. Not yet perfect, but together Linux colors,
|
||||
and the Linux font, it gives a pretty console lookalike.
|
||||
19 Jan 2000
|
||||
- fixed a size problem with OSF/1 v3.2
|
||||
16 Jan 2000
|
||||
|
||||
1
NEWS
1
NEWS
@@ -4,6 +4,7 @@ New in 0.9.12
|
||||
- Font selection, sort of
|
||||
- Arbitrary long history
|
||||
- Change to GPL2
|
||||
- Fullscreen mode
|
||||
|
||||
New in 0.9.11
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ public:
|
||||
TEDemo(const QString& name, QStrList & _args, int login_shell, int histon);
|
||||
~TEDemo();
|
||||
void setColLin(int columns, int lines);
|
||||
void setFullScreen(bool on);
|
||||
|
||||
private slots:
|
||||
void configureRequest(TEWidget*,int,int,int);
|
||||
@@ -130,6 +131,9 @@ private:
|
||||
|
||||
QStrList args;
|
||||
|
||||
bool b_fullscreen;
|
||||
QRect _saveGeometry;
|
||||
|
||||
public:
|
||||
|
||||
QString title;
|
||||
|
||||
26
src/main.C
26
src/main.C
@@ -142,6 +142,7 @@ TEDemo::TEDemo(const QString& name, QStrList & _args, int login_shell, int histo
|
||||
rootxpm = 0L;
|
||||
menubar = menuBar();
|
||||
b_scroll = histon;
|
||||
b_fullscreen = FALSE;
|
||||
|
||||
// create terminal emulation framework ////////////////////////////////////
|
||||
|
||||
@@ -402,9 +403,11 @@ void TEDemo::makeMenu()
|
||||
m_options->insertItem( i18n("&History"), 3 );
|
||||
m_options->insertItem( i18n("Scroll&bar"), m_scrollbar);
|
||||
m_options->insertSeparator();
|
||||
m_options->insertItem( i18n("&Fullscreen"), 5);
|
||||
m_options->setItemChecked(5,b_fullscreen);
|
||||
m_options->insertSeparator();
|
||||
m_options->insertItem( i18n("BS sends &DEL"), 4 );
|
||||
m_options->setItemChecked(4,b_bshack);
|
||||
|
||||
m_options->insertSeparator();
|
||||
m_options->insertItem( i18n("&Font"), m_font);
|
||||
m_options->insertItem( i18n("&Size"), m_size);
|
||||
@@ -461,6 +464,7 @@ void TEDemo::saveProperties(KConfig* config)
|
||||
config->writeEntry("history",b_scroll);
|
||||
config->writeEntry("has frame",b_framevis);
|
||||
config->writeEntry("BS hack",b_bshack);
|
||||
config->writeEntry("Fullscreen",b_fullscreen);
|
||||
config->writeEntry("font",n_font);
|
||||
config->writeEntry("defaultfont", defaultFont);
|
||||
config->writeEntry("schema",s_schema);
|
||||
@@ -487,6 +491,7 @@ void TEDemo::readProperties(KConfig* config)
|
||||
b_framevis = config->readBoolEntry("has frame",TRUE);
|
||||
b_scroll = config->readBoolEntry("history",TRUE);
|
||||
b_bshack = config->readBoolEntry("BS hack",TRUE);
|
||||
b_fullscreen = config->readBoolEntry("Fullscreen",FALSE);
|
||||
n_font = QMIN(config->readUnsignedNumEntry("font",3),TOPFONT);
|
||||
n_scroll = QMIN(config->readUnsignedNumEntry("scrollbar",TEWidget::SCRRIGHT),2);
|
||||
s_schema = config->readEntry("schema","");
|
||||
@@ -698,6 +703,8 @@ void TEDemo::opt_menu_activated(int item)
|
||||
break;
|
||||
case 4: setBsHack(!b_bshack);
|
||||
break;
|
||||
case 5: setFullScreen(!b_fullscreen);
|
||||
break;
|
||||
case 8: saveProperties(kapp->config());
|
||||
break;
|
||||
}
|
||||
@@ -1068,8 +1075,23 @@ int main(int argc, char* argv[])
|
||||
m->show();
|
||||
}
|
||||
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
void TEDemo::setFullScreen(bool on)
|
||||
{
|
||||
if (on == b_fullscreen) return;
|
||||
if (on)
|
||||
{
|
||||
_saveGeometry = geometry();
|
||||
setGeometry(kapp->desktop()->geometry());
|
||||
}
|
||||
else
|
||||
{
|
||||
setGeometry(_saveGeometry);
|
||||
}
|
||||
b_fullscreen = on;
|
||||
m_options->setItemChecked(5,b_fullscreen);
|
||||
}
|
||||
|
||||
#include "main.moc"
|
||||
|
||||
Reference in New Issue
Block a user