|
@@ -20,6 +20,15 @@ void MainWindow::Init() {
|
|
|
rusification_frame = new RusificationWidget(this);
|
|
|
ui->content_layout->addWidget(rusification_frame);
|
|
|
|
|
|
+ settings_frame = new SettingsWidget(this);
|
|
|
+ ui->content_layout->addWidget(settings_frame);
|
|
|
+
|
|
|
+ news_frame = new NewsWidget(this);
|
|
|
+ ui->content_layout->addWidget(news_frame);
|
|
|
+
|
|
|
+ help_frame = new HelpWidget(this);
|
|
|
+ ui->content_layout->addWidget(help_frame);
|
|
|
+
|
|
|
hideAllContentWidgets();
|
|
|
status_frame->show();
|
|
|
|
|
@@ -65,6 +74,7 @@ void MainWindow::on_menuentry_1_clicked()
|
|
|
void MainWindow::on_menuentry_2_clicked()
|
|
|
{
|
|
|
hideAllContentWidgets();
|
|
|
+ settings_frame->show();
|
|
|
}
|
|
|
|
|
|
void MainWindow::on_menuentry_3_clicked()
|
|
@@ -76,11 +86,13 @@ void MainWindow::on_menuentry_3_clicked()
|
|
|
void MainWindow::on_menuentry_4_clicked()
|
|
|
{
|
|
|
hideAllContentWidgets();
|
|
|
+ news_frame->show();
|
|
|
}
|
|
|
|
|
|
void MainWindow::on_menuentry_5_clicked()
|
|
|
{
|
|
|
hideAllContentWidgets();
|
|
|
+ help_frame->show();
|
|
|
}
|
|
|
|
|
|
void MainWindow::onHoverMenuentry()
|
|
@@ -154,6 +166,9 @@ void MainWindow::hideAllContentWidgets()
|
|
|
{
|
|
|
status_frame->hide();
|
|
|
rusification_frame->hide();
|
|
|
+ settings_frame->hide();
|
|
|
+ news_frame->hide();
|
|
|
+ help_frame->hide();
|
|
|
}
|
|
|
|
|
|
void MainWindow::on_closeButton_clicked()
|