Fixed problems with block; refactored code

This commit is contained in:
Torsten Schulz
2024-02-21 11:08:27 +01:00
parent 19f9595e8b
commit ab8f84f371
5 changed files with 107 additions and 66 deletions

View File

@@ -11,6 +11,7 @@
namespace Magick {
class Image;
class Blob;
}
class App : public Wt::WApplication, public Client {
@@ -140,7 +141,7 @@ private:
void updateUserinfo(Wt::Json::Object data);
std::unique_ptr<Wt::WContainerWidget> createSmileysBar(Wt::WLineEdit *inputLine, std::shared_ptr<int> cursorPosition);
void toggleSmileysBar(Wt::WContainerWidget *smileyBar);
void showSystemMessage(Wt::Json::Object broadcast);
void systemEvent(Wt::Json::Object broadcast);
void addStartChatButton(Wt::WGridLayout *contentGrid, Wt::WLineEdit *userName, Wt::WComboBox *country, Wt::WSpinBox *age, Wt::WComboBox *gender);
Wt::WComboBox *addCountrySelection(Wt::WGridLayout *contentGrid);
Wt::WSpinBox *addAgeInput(Wt::WGridLayout *contentGrid);
@@ -205,6 +206,9 @@ private:
void addLoginTimeView();
void addTimeoutView();
void showPartnerSites();
void sendImage();
void imageUploaded(Wt::WFileUpload *fileWidget, std::shared_ptr<Magick::Image> localImage, Wt::WImage *image, Wt::WPushButton *okButton);
bool isAnimatedGIF(const Magick::Blob &blob);
};
#endif // APP_H