mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
2021-06-21 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDMainWindow' to rdlogmanager(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -21942,3 +21942,5 @@
|
||||
* Added 'RDMainWindow' to rdcartslots(1).
|
||||
2021-06-21 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added 'RDMainWindow' to rdlogin(1).
|
||||
2021-06-21 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added 'RDMainWindow' to rdlogmanager(1).
|
||||
|
||||
@@ -39,7 +39,7 @@ QString *clock_filter;
|
||||
bool skip_db_check=false;
|
||||
|
||||
MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
: RDWidget(c,parent)
|
||||
: RDMainWindow("rdlogmanager",c)
|
||||
{
|
||||
QString err_msg;
|
||||
|
||||
@@ -146,6 +146,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
log_close_button->setText(tr("Close"));
|
||||
log_close_button->setDefault(true);
|
||||
connect(log_close_button,SIGNAL(clicked()),this,SLOT(quitMainWidget()));
|
||||
|
||||
loadSettings(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -161,6 +163,12 @@ QSizePolicy MainWidget::sizePolicy() const
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::closeEvent(QCloseEvent *e)
|
||||
{
|
||||
quitMainWidget();
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::userData()
|
||||
{
|
||||
//
|
||||
@@ -219,6 +227,7 @@ void MainWidget::reportsData()
|
||||
|
||||
void MainWidget::quitMainWidget()
|
||||
{
|
||||
saveSettings();
|
||||
exit(RDApplication::ExitOk);
|
||||
}
|
||||
|
||||
@@ -261,8 +270,6 @@ int gui_main(int argc,char *argv[])
|
||||
RDConfig *config=new RDConfig();
|
||||
config->load();
|
||||
MainWidget *w=new MainWidget(config);
|
||||
w->setGeometry(QRect(QPoint(w->geometry().x(),w->geometry().y()),
|
||||
w->sizeHint()));
|
||||
w->show();
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <qpushbutton.h>
|
||||
|
||||
#include <rdlog_line.h>
|
||||
#include <rdmainwindow.h>
|
||||
#include <rdwidget.h>
|
||||
|
||||
#define RDLOGMANAGER_USAGE "[OPTIONS]\n"
|
||||
@@ -39,14 +40,17 @@ extern int RunReportOperation(int argc,char *argv[],const QString &rptname,
|
||||
bool protect_existing,int start_offset,
|
||||
int end_offset);
|
||||
|
||||
class MainWidget : public RDWidget
|
||||
class MainWidget : public RDMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MainWidget(RDConfig *c,QWidget *parent=0);
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *e);
|
||||
|
||||
private slots:
|
||||
void userData();
|
||||
void eventsData();
|
||||
|
||||
Reference in New Issue
Block a user