-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f948792
commit edff130
Showing
25 changed files
with
77 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
1.3.29 | ||
-Improved dconsole text coloring | ||
|
||
1.3.28 | ||
-Moved gsafe pixmaps to resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
@@ -36,7 +36,7 @@ | |
#include "gstexts.h" | ||
|
||
/** The version of gsafe */ | ||
#define GSAFE_VERSION "1.3.28" | ||
#define GSAFE_VERSION "1.3.29" | ||
|
||
// /////////////////////////////////// | ||
// BEGIN - CONFIG/MODIFIERS/MODULES // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2006-2020 Peter Deak ([email protected]) | ||
(C) 2006-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
@@ -56,6 +56,18 @@ void sdebug(QString s) | |
#endif //GSAFE_DISABLE_DEBUG | ||
} | ||
|
||
void ssdebug(QString s,char type) | ||
{ | ||
#ifndef GSAFE_DISABLE_DEBUG | ||
if(HDebugConsole::myself == NULL) | ||
return; | ||
HDebugConsole::debug_typedtxt(s,type); | ||
#else | ||
Q_UNUSED(s); | ||
Q_UNUSED(type); | ||
#endif //GSAFE_DISABLE_DEBUG | ||
} | ||
|
||
void dconsole(void) | ||
{ | ||
#ifndef GSAFE_DISABLE_DEBUG | ||
|
@@ -210,8 +222,6 @@ HDebugConsole::HDebugConsole(QWidget *parent) | |
connect(p->pushClear,SIGNAL(clicked()),p->cf,SLOT(clearText())); | ||
connect(p->cf,SIGNAL(commandEntered(QString)),this,SLOT(execCommand(QString))); | ||
connect(p->cf,SIGNAL(tabPressed(QString)),this,SLOT(tabPressed(QString))); | ||
p->cf->setTextTypeColor(1,QColor(255,150,150)); | ||
p->cf->setTextTypeColor(2,QColor(200,200,200)); | ||
|
||
p->cf->setColor("cursor",Qt::white); | ||
p->cf->setColor("cmdtext",QColor(0,255,0)); | ||
|
@@ -221,6 +231,11 @@ HDebugConsole::HDebugConsole(QWidget *parent) | |
p->cf->setTextTypeColor(DCONSOLE_TYPE_RESULT ,QColor(100,100,255)); | ||
p->cf->setTextTypeColor(DCONSOLE_TYPE_CMD ,QColor(0,230,0)); | ||
p->cf->setTextTypeColor(DCONSOLE_TYPE_QTDEBUG ,QColor(255,127,30)); | ||
p->cf->setTextTypeColor(DCONSOLE_TYPE_TXTALT_A,QColor(0,250,250)); | ||
p->cf->setTextTypeColor(DCONSOLE_TYPE_TXTALT_B,QColor(240,120,1)); | ||
p->cf->setTextTypeColor(DCONSOLE_TYPE_TXTALT_C,QColor(60,120,120)); | ||
p->cf->setTextTypeColor(DCONSOLE_TYPE_TXTALT_D,QColor(188,18,107)); | ||
p->cf->setTextTypeColor(DCONSOLE_TYPE_TXTALT_E,QColor(255,45,45)); | ||
|
||
p->cf->addText("START",DCONSOLE_TYPE_MESSAGE); | ||
|
||
|
@@ -356,8 +371,14 @@ void HDebugConsole::add_text(QString s,int type) | |
|
||
#endif // DCONSOLE_NO_SQL | ||
|
||
if(p->pushText->isChecked() && type == DCONSOLE_TYPE_TEXT) | ||
p->cf->addText(s,DCONSOLE_TYPE_TEXT); | ||
if(p->pushText->isChecked() && ( | ||
type == DCONSOLE_TYPE_TEXT || | ||
type == DCONSOLE_TYPE_TXTALT_A || | ||
type == DCONSOLE_TYPE_TXTALT_B || | ||
type == DCONSOLE_TYPE_TXTALT_C || | ||
type == DCONSOLE_TYPE_TXTALT_D || | ||
type == DCONSOLE_TYPE_TXTALT_E)) | ||
p->cf->addText(s,type); | ||
|
||
if(type == DCONSOLE_TYPE_QTDEBUG) | ||
p->cf->addText(s,DCONSOLE_TYPE_QTDEBUG); | ||
|
@@ -385,6 +406,12 @@ void HDebugConsole::debug_txt(QString s) | |
myself->add_text(s,DCONSOLE_TYPE_TEXT); | ||
} | ||
|
||
void HDebugConsole::debug_typedtxt(QString s,char type) | ||
{ | ||
if(myself != NULL) | ||
myself->add_text(s,type); | ||
} | ||
|
||
int HDebugConsole::execCommand(QString query) | ||
{ | ||
if(p->disabled) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2006-2020 Peter Deak ([email protected]) | ||
(C) 2006-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
@@ -53,6 +53,11 @@ void sqldebug(QString s); | |
* @see HDebugConsole*/ | ||
void sdebug(QString s); | ||
|
||
/** Puts a debug/info text as special text. | ||
* If there is no started HDebugConsole this function does nothing. | ||
* @see HDebugConsole*/ | ||
void ssdebug(QString s,char type); | ||
|
||
/** Starts/Popup the HDebugConsole. | ||
* If the console already run this function does nothing. | ||
* @see HDebugConsole */ | ||
|
@@ -93,6 +98,17 @@ void clear_dconsole_commands(); | |
#define DCONSOLE_TYPE_RESULT 3 | ||
#define DCONSOLE_TYPE_CMD 4 | ||
#define DCONSOLE_TYPE_QTDEBUG 5 | ||
#define DCONSOLE_TYPE_TXTALT_A 6 | ||
#define DCONSOLE_TYPE_TXTALT_B 7 | ||
#define DCONSOLE_TYPE_TXTALT_C 8 | ||
#define DCONSOLE_TYPE_TXTALT_D 9 | ||
#define DCONSOLE_TYPE_TXTALT_E 10 | ||
|
||
#define DCONSOLE_TYPE_TXTALT_CYAN DCONSOLE_TYPE_TXTALT_A | ||
#define DCONSOLE_TYPE_TXTALT_CORAL DCONSOLE_TYPE_TXTALT_B | ||
#define DCONSOLE_TYPE_TXTALT_TEAL DCONSOLE_TYPE_TXTALT_C | ||
#define DCONSOLE_TYPE_TXTALT_PURPLE DCONSOLE_TYPE_TXTALT_D | ||
#define DCONSOLE_TYPE_TXTALT_RED DCONSOLE_TYPE_TXTALT_E | ||
|
||
#ifndef COMPILED_WITH_QT4X | ||
void dconsoleMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg); | ||
|
@@ -209,6 +225,8 @@ class HDebugConsole : public QWidget | |
#endif // DCONSOLE_NO_SQL | ||
/** Write a normal text to the console */ | ||
static void debug_txt(QString s); | ||
/** Write a special typed text to the console */ | ||
static void debug_typedtxt(QString s,char type); | ||
/** Popups a warning text */ | ||
static void popup(QString title,QString str); | ||
/** You can disable the command excution if this function called with FALSE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
gSAFE - LIB | ||
general Sql dAtabase FrontEnd | ||
(C) 2010-2020 Peter Deak ([email protected]) | ||
(C) 2010-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2005-2020 Peter Deak ([email protected]) | ||
(C) 2005-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2010-2020 Peter Deak ([email protected]) | ||
(C) 2010-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.28 | ||
1.3.29 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
gSAFE - LIB | ||
general Sql dAtabase FrontEnd | ||
(C) 2011-2020 Peter Deak ([email protected]) | ||
(C) 2011-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
gSAFE - LIB | ||
general Sql dAtabase FrontEnd | ||
(C) 2011-2020 Peter Deak ([email protected]) | ||
(C) 2011-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
gSAFE - LIB | ||
general Sql dAtabase FrontEnd | ||
(C) 2011-2020 Peter Deak ([email protected]) | ||
(C) 2011-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
gSAFE - LIB | ||
general Sql dAtabase FrontEnd | ||
(C) 2011-2020 Peter Deak ([email protected]) | ||
(C) 2011-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2011-2020 Peter Deak ([email protected]) | ||
(C) 2011-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
general Sql dAtabase FrontEnd | ||
http://hyperprog.com/gsafe/ | ||
(C) 2011-2020 Peter Deak ([email protected]) | ||
(C) 2011-2021 Peter Deak ([email protected]) | ||
License: LGPLv2.1 | ||
|